wifi: mac80211: reset multiple BSSID options in stop_ap()
authorAloka Dixit <quic_alokad@quicinc.com>
Wed, 21 Dec 2022 18:56:16 +0000 (10:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:32 +0000 (07:24 +0100)
commitb8d1d53bef5e536fe92369886264ad75d569bdb7
tree417221232da44915113ee0637f4660ee1bd3f018
parent10644c9828c8e1024e4a41dd2efd707e748f7fbc
wifi: mac80211: reset multiple BSSID options in stop_ap()

commit 0eb38842ada035d71bb06fb9116f26f24ee0f998 upstream.

Reset multiple BSSID options when all AP related configurations are
reset in ieee80211_stop_ap().

Stale values result in HWSIM test failures (e.g. p2p_group_cli_invalid),
if run after 'he_ap_ema'.

Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Link: https://lore.kernel.org/r/20221221185616.11514-1-quic_alokad@quicinc.com
Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/cfg.c