]> 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)
commit705d6022603d3baa215d9ec66b7f6b7dc10c0ee9
tree71eb37f4fb57c0592943b2de96a91448fc0dc763
parent947e66f0f4f90d8642b976ea929f552647cee9fe
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: b1b24c1ac4c4 ("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