aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 273762769767..970d0b322659 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2568,8 +2568,6 @@ static void iwl4965_post_associate(struct iwl_priv *priv)
2568 iwl_chain_noise_reset(priv); 2568 iwl_chain_noise_reset(priv);
2569 priv->start_calib = 1; 2569 priv->start_calib = 1;
2570 2570
2571 /* we have just associated, don't start scan too early */
2572 priv->next_scan_jiffies = jiffies + IWL_DELAY_NEXT_SCAN;
2573} 2571}
2574 2572
2575static int iwl4965_mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf); 2573static int iwl4965_mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf);
@@ -3171,6 +3169,10 @@ static void iwl4965_bss_info_changed(struct ieee80211_hw *hw,
3171 priv->power_data.dtim_period = bss_conf->dtim_period; 3169 priv->power_data.dtim_period = bss_conf->dtim_period;
3172 priv->timestamp = bss_conf->timestamp; 3170 priv->timestamp = bss_conf->timestamp;
3173 priv->assoc_capability = bss_conf->assoc_capability; 3171 priv->assoc_capability = bss_conf->assoc_capability;
3172
3173 /* we have just associated, don't start scan too early
3174 * leave time for EAPOL exchange to complete
3175 */
3174 priv->next_scan_jiffies = jiffies + 3176 priv->next_scan_jiffies = jiffies +
3175 IWL_DELAY_NEXT_SCAN_AFTER_ASSOC; 3177 IWL_DELAY_NEXT_SCAN_AFTER_ASSOC;
3176 mutex_lock(&priv->mutex); 3178 mutex_lock(&priv->mutex);