mac80211: fix enabling 4-address mode on a sta vif after assoc
authorFelix Fietkau <nbd@nbd.name>
Fri, 2 Jul 2021 05:01:11 +0000 (07:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Aug 2021 10:46:42 +0000 (12:46 +0200)
commitac038f4152efd8b4ad86e50df913bd318dc6daa8
tree3bd4b8191dbb6128eb300e6404c1d690b5a1086f
parent076bc6ebce48e8144ba9d73c4f37f3a7b7ea66bf
mac80211: fix enabling 4-address mode on a sta vif after assoc

[ Upstream commit a5d3cbdb09ff1f52cbe040932e06c8b9915c6dad ]

Notify the driver about the 4-address mode change and also send a nulldata
packet to the AP to notify it about the change

Fixes: 1ff4e8f2dec8 ("mac80211: notify the driver when a sta uses 4-address mode")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20210702050111.47546-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c