]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: never drop injected frames even if normally not allowed
authorMathy Vanhoef <Mathy.Vanhoef@kuleuven.be>
Thu, 23 Jul 2020 10:01:48 +0000 (14:01 +0400)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jul 2020 07:27:00 +0000 (09:27 +0200)
commit02f4d16799f8de74c4456789ecb5474e8cfd69ed
tree54124eb8e846e0aac3595c1ae33774160b8f8118
parent69ed5f67f6b0ae0b5e3a14183b0dc6afb7bc9cfe
mac80211: never drop injected frames even if normally not allowed

In ieee80211_tx_dequeue there is a check to see if the dequeued frame
is allowed in the current state. Injected frames that are normally
not allowed are being be dropped here. Fix this by checking if a
frame was injected and if so always allowing it.

Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@kuleuven.be>
Link: https://lore.kernel.org/r/20200723100153.31631-1-Mathy.Vanhoef@kuleuven.be
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c