Commit 8c9a5e8e authored by Benjamin Berg's avatar Benjamin Berg Committed by Carlos Llamas
Browse files

UPSTREAM: 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: 2481b5da ("wifi: cfg80211: handle BSS data contained in ML probe responses")
Signed-off-by: default avatarBenjamin Berg <benjamin.berg@intel.com>
Reviewed-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240318184907.6a0babed655a.Iad447fea417c63f683da793556b97c31d07a4aab@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>

Bug: 338806915
Change-Id: Ib275e37a136d26df3b509fd71ee111d8cd98f10e
(cherry picked from commit 97f8df4d)
Signed-off-by: default avatarVeerendranath Jakkam <quic_vjakkam@quicinc.com>
parent 9671d066
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment