Backported r12989 for 8.09
[openwrt/svn-archive/archive.git] / package / madwifi / patches-testing / 322-ignore_broken_bssid.patch
1 Some misconfigured APs broadcast NULL BSSIDs, which can confuse the STA
2 Ignore those when scanning.
3
4 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5
6 --- a/net80211/ieee80211_scan_sta.c
7 +++ b/net80211/ieee80211_scan_sta.c
8 @@ -242,6 +242,10 @@
9 struct ieee80211_scan_entry *ise;
10 int hash;
11
12 + /* workaround for broken APs that broadcast NULL BSSIDs */
13 + if (memcmp(wh->i_addr3, "\x00\x00\x00\x00\x00\x00", 6) == 0)
14 + return 0;
15 +
16 hash = STA_HASH(macaddr);
17 SCAN_STA_LOCK_IRQ(st);
18 LIST_FOREACH(se, &st->st_hash[hash], se_hash)