brcmsmac: AP mode: update beacon when TIM changes
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
Wed, 3 Oct 2018 16:21:39 +0000 (19:21 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 13 Oct 2018 17:00:42 +0000 (20:00 +0300)
commit2258ee58baa554609a3cc3996276e4276f537b6d
treed62bde9c80242d3780305f3922f2c435d6200990
parentc894696188d5c2af1e636e458190e80c53fb893d
brcmsmac: AP mode: update beacon when TIM changes

Beacons are not updated to reflect TIM changes. This is not compliant with
power-saving client stations as the beacons do not have valid TIM and can
cause the network to stall at random occasions and to have highly variable
latencies.
Fix it by updating beacon templates on mac80211 set_tim callback.

Addresses an issue described in:
https://marc.info/?i=20180911163534.21312d08%20()%20manjaro

Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h