linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] mac80211: check requested flags in ieee80211_tx_prepare_skb()
@ 2016-01-05 10:35 Janusz Dziedzic
  2016-01-05 10:35 ` [PATCH v2 2/2] ath9k: use min rate when MCC and nullfunc Janusz Dziedzic
  2016-01-06 10:44 ` [PATCH v2 1/2] mac80211: check requested flags in ieee80211_tx_prepare_skb() Johannes Berg
  0 siblings, 2 replies; 5+ messages in thread
From: Janusz Dziedzic @ 2016-01-05 10:35 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, j, Janusz Dziedzic

In case driver already set info->flags (eg. IEEE80211_TX_CTL_NO_CCK_RATE
in ath9k driver), before this patch we skip this requested flags.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
---
 net/mac80211/tx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index a512c4b..6ea1c65 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1532,6 +1532,7 @@ bool ieee80211_tx_prepare_skb(struct ieee80211_hw *hw,
 	struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
 	struct ieee80211_tx_data tx;
 	struct sk_buff *skb2;
+	unsigned int flags = info->flags;
 
 	if (ieee80211_tx_prepare(sdata, &tx, NULL, skb) == TX_DROP)
 		return false;
@@ -1539,6 +1540,7 @@ bool ieee80211_tx_prepare_skb(struct ieee80211_hw *hw,
 	info->band = band;
 	info->control.vif = vif;
 	info->hw_queue = vif->hw_queue[skb_get_queue_mapping(skb)];
+	info->flags |= flags;
 
 	if (invoke_tx_handlers(&tx))
 		return false;
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-21 13:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05 10:35 [PATCH v2 1/2] mac80211: check requested flags in ieee80211_tx_prepare_skb() Janusz Dziedzic
2016-01-05 10:35 ` [PATCH v2 2/2] ath9k: use min rate when MCC and nullfunc Janusz Dziedzic
2016-01-21 13:11   ` Kalle Valo
2016-01-06 10:44 ` [PATCH v2 1/2] mac80211: check requested flags in ieee80211_tx_prepare_skb() Johannes Berg
2016-01-07  6:17   ` Janusz Dziedzic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).