]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cfg80211: update hidden BSSes to avoid WARN_ON
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Oct 2022 21:11:43 +0000 (23:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Oct 2022 06:02:58 +0000 (08:02 +0200)
commitdbd8cc654b5bb03ee6c06e2a3cb1bac981a675ad
tree826656bdf062b45b4a0b973cf4c36bd87e098a6a
parent8ed62f2df8ebcf79c185f1bc3e4f346ea0905da6
wifi: cfg80211: update hidden BSSes to avoid WARN_ON

commit c90b93b5b782891ebfda49d4e5da36632fefd5d1 upstream.

When updating beacon elements in a non-transmitted BSS,
also update the hidden sub-entries to the same beacon
elements, so that a future update through other paths
won't trigger a WARN_ON().

The warning is triggered because the beacon elements in
the hidden BSSes that are children of the BSS should
always be the same as in the parent.

Reported-by: Sönke Huster <shuster@seemoo.tu-darmstadt.de>
Tested-by: Sönke Huster <shuster@seemoo.tu-darmstadt.de>
Fixes: 0b8fb8235be8 ("cfg80211: Parsing of Multiple BSSID information in scanning")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/scan.c