Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c82b5a74 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 5fd91aac
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;