lantiq: remove unmaintained code
[openwrt.git] / package / kernel / mac80211 / patches / 904-wlcore-AP-don-t-start-mac80211-PS-on-non-peer-HLIDs.patch
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.
4
5 Prevent the driver from considering PSM changes for any non-peer HLIDs.
6
7 Signed-off-by: Arik Nemtsov <arik@wizery.com>
8 Signed-off-by: Eliad Peller <eliad@wizery.com>
9
10 ---
11 drivers/net/wireless/ti/wlcore/ps.c | 6 +++++-
12  1 file changed, 5 insertions(+), 1 deletion(-)
13
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);
19  
20 -       if (test_bit(hlid, &wl->ap_ps_map))
21 +       if (WARN_ON_ONCE(wlvif->bss_type != BSS_TYPE_AP_BSS))
22 +               return;
23 +
24 +       if (!test_bit(hlid, wlvif->ap.sta_hlid_map) ||
25 +           test_bit(hlid, &wl->ap_ps_map))
26                 return;
27  
28         wl1271_debug(DEBUG_PSM, "start mac80211 PSM on hlid %d pkts %d "