Message ID | 1718009524-5579-4-git-send-email-quic_vjakkam@quicinc.com |
---|---|
State | New |
Headers | show |
Series | wifi: cfg80211: fix per-STA profile BSS entry issues | expand |
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 2850718..37ebe5a 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -1891,6 +1891,10 @@ __cfg80211_bss_update(struct cfg80211_registered_device *rdev, found = rb_find_bss(rdev, tmp, BSS_CMP_REGULAR); if (found) { + if (tmp->bss_source == BSS_SOURCE_STA_PROFILE && + found->bss_source != BSS_SOURCE_STA_PROFILE) + goto free_ies; + if (!cfg80211_update_known_bss(rdev, found, tmp, signal_valid)) return NULL; } else {
Skip overriding BSS information generated from MBSSID or direct source with BSS information generated from per-STA profile source to avoid loosing actual signal strength and information elements such as RNR and Basic ML elements. Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com> --- net/wireless/scan.c | 4 ++++ 1 file changed, 4 insertions(+)