]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ath10k: fix dtim period with beacon templates
authorMichal Kazior <michal.kazior@tieto.com>
Sat, 24 Jan 2015 10:14:51 +0000 (12:14 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 Jan 2015 14:18:34 +0000 (16:18 +0200)
Firmware supporting beacon templates (i.e. wmi-tlv
for qca6174) doesn't implicitly take dtim period
from the template. Instead it requires vdev param
to be set accordingly.

This fixes dtim period being stuck at 3.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c

index 9524bc59997f83bdd66bce9aac9c50fa992ddb36..99af537598bb9b536fb615b3496c90ae1196f4ab 100644 (file)
@@ -3435,7 +3435,7 @@ static void ath10k_bss_info_changed(struct ieee80211_hw *hw,
                                    arvif->vdev_id, ret);
        }
 
-       if (changed & BSS_CHANGED_BEACON_INFO) {
+       if (changed & (BSS_CHANGED_BEACON_INFO | BSS_CHANGED_BEACON)) {
                arvif->dtim_period = info->dtim_period;
 
                ath10k_dbg(ar, ATH10K_DBG_MAC,