]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 10 Oct 2022 07:51:34 +0000 (09:51 +0200)
commitf7cc18a1b705e2579b40915d4647b3e050cf5281
tree9aefd55d0b1205879119e9ed443c6847968017a3
parent3d04d91fe28b9cda1dfcf3a71452b2face6135d3
wifi: cfg80211: update hidden BSSes to avoid WARN_ON

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: ac2a324087a0 ("cfg80211: Parsing of Multiple BSSID information in scanning")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c