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 <[email protected]>
---
net/wireless/scan.c | 4 ++++
1 file changed, 4 insertions(+)
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 {
--
2.7.4