Search Linux Wireless

[RFC] cfg80211: skip checking of SSID for maintaining scan list

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

 



From: Mohammed Shafi Shajakhan <mshajakhan@xxxxxxxxxxx>

when we connect to hidden SSID AP's we maintain two entries
for the same AP and we update all the parameters for the hidden
SSID entry rather than the associated entry, this is because we
have the SSID check in updating/adding new entries in scanlist.
by skipping the SSID check we will maintain a single entry for
the hidden SSID and also update the associated entry for the
same.
  will this break something if I skip SSID check for the sake
of hidden SSID AP's or is there someother IE's I can check for.

Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@xxxxxxxxxxx>
---
 net/wireless/scan.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index 7a6c676..eace508 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -348,15 +348,8 @@ static int cmp_bss(struct cfg80211_bss *a,
 			       b->len_information_elements);
 	}
 
-	r = memcmp(a->bssid, b->bssid, ETH_ALEN);
-	if (r)
-		return r;
-
-	return cmp_ies(WLAN_EID_SSID,
-		       a->information_elements,
-		       a->len_information_elements,
-		       b->information_elements,
-		       b->len_information_elements);
+	return memcmp(a->bssid, b->bssid, ETH_ALEN);
+
 }
 
 struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy,
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux