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)
commit2463ec86cd0338a2c2edbfb0b9d50c52ff76ff43
tree71eb37f4fb57c0592943b2de96a91448fc0dc763
parentb101dd2d22f45d203010b40c739df346a0cbebef
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: a0761a301746 ("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