From: Rajkumar Manoharan Date: Thu, 26 Jun 2014 11:24:40 +0000 (+0530) Subject: ath9k: Cache beacon config after association X-Git-Tag: v4.14-rc1~7092^2~12^2~179^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9198cf4a84249f5eed8be1f02b17245b7d763477;p=platform%2Fkernel%2Flinux-rpi.git ath9k: Cache beacon config after association The beacon configurations are not cached properly after the station associates with AP. Not handling BEACON_INFO, is failing to update dtim period and also it is causing below warning message. WARNING: CPU: 1 PID: 0 at drivers/net/wireless/ath/ath9k/recv.c:548 ath_rx_tasklet+0xc89/0xca0 [ath9k]() Call Trace: [] dump_stack+0x48/0x69 [] warn_slowpath_common+0x82/0xa0 [] ? ath_rx_tasklet+0xc89/0xca0 [ath9k] [] ? ath_rx_tasklet+0xc89/0xca0 [ath9k] Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index f5727c7..e6ac8d2 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -1787,7 +1787,8 @@ static void ath9k_bss_info_changed(struct ieee80211_hw *hw, } if ((changed & BSS_CHANGED_BEACON_ENABLED) || - (changed & BSS_CHANGED_BEACON_INT)) { + (changed & BSS_CHANGED_BEACON_INT) || + (changed & BSS_CHANGED_BEACON_INFO)) { if (changed & BSS_CHANGED_BEACON_ENABLED) ath9k_calculate_summary_state(sc, avp->chanctx); ath9k_beacon_config(sc, vif, changed);