From: Pontus Fuchs Date: Wed, 12 Feb 2014 19:04:48 +0000 (+0000) Subject: wcn36xx: Update dtim period before starting BSS X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=908628db148ed542fcfde1bff9e5d4607f684b73;p=openwrt%2Fstaging%2Fblogic.git wcn36xx: Update dtim period before starting BSS The dtim period sent to FW was 0 because the dtim period was never set. This caused an incorrect dtim count to be sent in beacons. Signed-off-by: Pontus Fuchs Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index dca21ee69a62..4ab5370ab7a6 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -708,6 +708,7 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, bss_conf->enable_beacon); if (bss_conf->enable_beacon) { + vif_priv->dtim_period = bss_conf->dtim_period; vif_priv->bss_index = 0xff; wcn36xx_smd_config_bss(wcn, vif, NULL, vif->addr, false);