mac80211: refuse aggregations sessions before authorized
authorJohannes Berg <johannes.berg@intel.com>
Thu, 3 Feb 2022 19:15:29 +0000 (20:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Mar 2022 12:47:48 +0000 (13:47 +0100)
commitc98afa0db3a3fd32b97fa2bd6e4670b45c8af2bd
tree7c0df3850bdf05f3f84479ab4d491ff94f729a38
parent84ecddbc9888e38f248922a288571197f76971b8
mac80211: refuse aggregations sessions before authorized

[ Upstream commit a6bce78262f5dd4b50510f0aa47f3995f7b185f3 ]

If an MFP station isn't authorized, the receiver will (or
at least should) drop the action frame since it's a robust
management frame, but if we're not authorized we haven't
installed keys yet. Refuse attempts to start a session as
they'd just time out.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20220203201528.ff4d5679dce9.I34bb1f2bc341e161af2d6faf74f91b332ba11285@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/agg-tx.c