diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 143c12a29fd8..79aff1fb85a1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -182,6 +182,21 @@ int iwl_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx) | |||
182 | 182 | ||
183 | iwl_set_rxon_hwcrypto(priv, ctx, !priv->cfg->mod_params->sw_crypto); | 183 | iwl_set_rxon_hwcrypto(priv, ctx, !priv->cfg->mod_params->sw_crypto); |
184 | 184 | ||
185 | if (new_assoc) { | ||
186 | if (WARN_ON(!ctx->vif)) | ||
187 | return -EINVAL; | ||
188 | /* | ||
189 | * First of all, before setting associated, we need to | ||
190 | * send RXON timing so the device knows about the DTIM | ||
191 | * period and other timing values | ||
192 | */ | ||
193 | ret = iwl_send_rxon_timing(priv, ctx->vif); | ||
194 | if (ret) { | ||
195 | IWL_ERR(priv, "Error setting RXON timing!\n"); | ||
196 | return ret; | ||
197 | } | ||
198 | } | ||
199 | |||
185 | /* Apply the new configuration | 200 | /* Apply the new configuration |
186 | * RXON unassoc clears the station table in uCode so restoration of | 201 | * RXON unassoc clears the station table in uCode so restoration of |
187 | * stations is needed after it (the RXON command) completes | 202 | * stations is needed after it (the RXON command) completes |
@@ -3355,6 +3370,7 @@ static int iwl_mac_setup_register(struct iwl_priv *priv, | |||
3355 | /* Tell mac80211 our characteristics */ | 3370 | /* Tell mac80211 our characteristics */ |
3356 | hw->flags = IEEE80211_HW_SIGNAL_DBM | | 3371 | hw->flags = IEEE80211_HW_SIGNAL_DBM | |
3357 | IEEE80211_HW_AMPDU_AGGREGATION | | 3372 | IEEE80211_HW_AMPDU_AGGREGATION | |
3373 | IEEE80211_HW_NEED_DTIM_PERIOD | | ||
3358 | IEEE80211_HW_SPECTRUM_MGMT; | 3374 | IEEE80211_HW_SPECTRUM_MGMT; |
3359 | 3375 | ||
3360 | if (!priv->cfg->broken_powersave) | 3376 | if (!priv->cfg->broken_powersave) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index fb9173b1e5aa..04d7894e0004 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -536,6 +536,8 @@ int iwl_send_rxon_timing(struct iwl_priv *priv, struct ieee80211_vif *vif) | |||
536 | rem = do_div(tsf, interval_tm); | 536 | rem = do_div(tsf, interval_tm); |
537 | ctx->timing.beacon_init_val = cpu_to_le32(interval_tm - rem); | 537 | ctx->timing.beacon_init_val = cpu_to_le32(interval_tm - rem); |
538 | 538 | ||
539 | ctx->timing.dtim_period = vif->bss_conf.dtim_period; | ||
540 | |||
539 | IWL_DEBUG_ASSOC(priv, | 541 | IWL_DEBUG_ASSOC(priv, |
540 | "beacon interval %d beacon timer %d beacon tim %d\n", | 542 | "beacon interval %d beacon timer %d beacon tim %d\n", |
541 | le16_to_cpu(ctx->timing.beacon_interval), | 543 | le16_to_cpu(ctx->timing.beacon_interval), |