Search Linux Wireless

[PATCH 3/4] wifi: cfg80211: skip overriding direct/MBSSID BSS with per-STA profile BSS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux