]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: ignore non-TX BSSs in per-STA profile
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 18 Mar 2024 16:53:29 +0000 (18:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Mar 2024 14:38:15 +0000 (15:38 +0100)
commit97f8df4db4c8ef50b659d8b228c1f42fe111e7c8
tree591213656250231cad00223a762dcec8dec3ec0b
parentc7378d7d8be0b44d03c990a2686e64d038c694a5
wifi: cfg80211: ignore non-TX BSSs in per-STA profile

If a non-TX BSS is included in a per-STA profile, then we cannot set
transmitted_bss for it. Even worse, if we do things properly we should
be configuring both bssid_index and max_bssid_indicator correctly. We do
not actually have both pieces of information (and, some APs currently
do not include either).

So, ignore any per-STA profile where the RNR says that the BSS is not
transmitted. Also fix transmitted_bss to never be set for per-STA
profiles.

This fixes issues where mac80211 was setting the reference BSSID to an
incorrect value.

Fixes: 2481b5da9c6b ("wifi: cfg80211: handle BSS data contained in ML probe responses")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240318184907.6a0babed655a.Iad447fea417c63f683da793556b97c31d07a4aab@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c