1 Some misconfigured APs broadcast NULL BSSIDs, which can confuse the STA
2 Ignore those when scanning.
4 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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;
12 + /* workaround for broken APs that broadcast NULL BSSIDs */
13 + if (memcmp(wh->i_addr3, "\x00\x00\x00\x00\x00\x00", 6) == 0)
16 hash = STA_HASH(macaddr);
17 SCAN_STA_LOCK_IRQ(st);
18 LIST_FOREACH(se, &st->st_hash[hash], se_hash)