]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: cfg80211: don't allow multi-BSSID in S1G
authorJohannes Berg <johannes.berg@intel.com>
Fri, 25 Nov 2022 11:36:58 +0000 (12:36 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Nov 2022 11:43:14 +0000 (12:43 +0100)
commit7b8e2d8b3e1c1baac4bcb92464b642ffbc452f14
treecd02f73bf5c370090c7361b441da1101f3e4c0eb
parent8865e6bb8f0e711630a040c73036a1895b761641
wifi: cfg80211: don't allow multi-BSSID in S1G

In S1G beacon frames there shouldn't be multi-BSSID elements
since that's not supported, remove that to avoid a potential
integer underflow and/or misparsing the frames due to the
different length of the fixed part of the frame.

While at it, initialize non_tx_data so we don't send garbage
values to the user (even if it doesn't seem to matter now.)

Reported-and-tested-by: Sönke Huster <shuster@seemoo.tu-darmstadt.de>
Fixes: f7decdd59a3f ("cfg80211: convert S1G beacon to scan results")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c