]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: do not drop tx nulldata packets on encrypted links
authorFelix Fietkau <nbd@nbd.name>
Fri, 18 Dec 2020 19:15:25 +0000 (20:15 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jan 2021 21:26:10 +0000 (22:26 +0100)
commitfba0cf3407d51706d177ec11d20d241c6a085325
tree71eb37f4fb57c0592943b2de96a91448fc0dc763
parentf129bd4a2fa4391169ff4c6d87271c16bf268d63
mac80211: do not drop tx nulldata packets on encrypted links

ieee80211_tx_h_select_key drops any non-mgmt packets without a key when
encryption is used. This is wrong for nulldata packets that can't be
encrypted and are sent out for probing clients and indicating 4-address
mode.

Reported-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Fixes: d593c1a28afb ("mac80211: drop data frames without key on encrypted links")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20201218191525.1168-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c