From: Johannes Berg Date: Sun, 14 Jul 2013 20:39:20 +0000 (+0300) Subject: mac80211: make active monitor injection work w/ HW queue X-Git-Tag: v3.12-rc1~132^2~84^2^2~6^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c82b5a74cc739385db6e4275fe504a0e9469bf01;p=platform%2Fkernel%2Flinux-exynos.git mac80211: make active monitor injection work w/ HW queue When a driver (like hwsim) uses HW queue control an active monitor vif needs to be used for the queues, make the code do that. Otherwise we'd bail out and drop the frames. Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index f82301b..be4d3ca 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1272,6 +1272,10 @@ static bool __ieee80211_tx(struct ieee80211_local *local, switch (sdata->vif.type) { case NL80211_IFTYPE_MONITOR: + if (sdata->u.mntr_flags & MONITOR_FLAG_ACTIVE) { + vif = &sdata->vif; + break; + } sdata = rcu_dereference(local->monitor_sdata); if (sdata) { vif = &sdata->vif;