[package] base-files: cached state vars after scan_interfaces might be out of sync...
[openwrt.git] / package / madwifi / patches / 358-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 @@ sta_add(struct ieee80211_scan_state *ss,
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)
This page took 0.037407 seconds and 5 git commands to generate.