1 It seems the wl18xx FW sometimes sends spurious changes on the PSM state
2 of the broadcast HLID. This causes us to search for a station on a
3 non-peer link and fail, causing warnings in our log.
5 Prevent the driver from considering PSM changes for any non-peer HLIDs.
7 Signed-off-by: Arik Nemtsov <arik@wizery.com>
8 Signed-off-by: Eliad Peller <eliad@wizery.com>
11 drivers/net/wireless/ti/wlcore/ps.c | 6 +++++-
12 1 file changed, 5 insertions(+), 1 deletion(-)
14 --- a/drivers/net/wireless/ti/wlcore/ps.c
15 +++ b/drivers/net/wireless/ti/wlcore/ps.c
16 @@ -280,7 +280,11 @@ void wl12xx_ps_link_start(struct wl1271
17 struct ieee80211_sta *sta;
18 struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
20 - if (test_bit(hlid, &wl->ap_ps_map))
21 + if (WARN_ON_ONCE(wlvif->bss_type != BSS_TYPE_AP_BSS))
24 + if (!test_bit(hlid, wlvif->ap.sta_hlid_map) ||
25 + test_bit(hlid, &wl->ap_ps_map))
28 wl1271_debug(DEBUG_PSM, "start mac80211 PSM on hlid %d pkts %d "