diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 40c795eaabac..c8e7adfe414a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -3802,6 +3802,8 @@ static void iwl4965_update_ps_mode(struct iwl4965_priv *priv, u16 ps_bit, u8 *ad | |||
3802 | } | 3802 | } |
3803 | } | 3803 | } |
3804 | 3804 | ||
3805 | #define IWL_DELAY_NEXT_SCAN_AFTER_ASSOC (HZ*6) | ||
3806 | |||
3805 | /* Called for REPLY_4965_RX (legacy ABG frames), or | 3807 | /* Called for REPLY_4965_RX (legacy ABG frames), or |
3806 | * REPLY_RX_MPDU_CMD (HT high-throughput N frames). */ | 3808 | * REPLY_RX_MPDU_CMD (HT high-throughput N frames). */ |
3807 | static void iwl4965_rx_reply_rx(struct iwl4965_priv *priv, | 3809 | static void iwl4965_rx_reply_rx(struct iwl4965_priv *priv, |
@@ -3973,6 +3975,12 @@ static void iwl4965_rx_reply_rx(struct iwl4965_priv *priv, | |||
3973 | struct ieee80211_mgmt *mgnt = | 3975 | struct ieee80211_mgmt *mgnt = |
3974 | (struct ieee80211_mgmt *)header; | 3976 | (struct ieee80211_mgmt *)header; |
3975 | 3977 | ||
3978 | /* We have just associated, give some | ||
3979 | * time for the 4-way handshake if | ||
3980 | * any. Don't start scan too early. */ | ||
3981 | priv->next_scan_jiffies = jiffies + | ||
3982 | IWL_DELAY_NEXT_SCAN_AFTER_ASSOC; | ||
3983 | |||
3976 | priv->assoc_id = (~((1 << 15) | (1 << 14)) | 3984 | priv->assoc_id = (~((1 << 15) | (1 << 14)) |
3977 | & le16_to_cpu(mgnt->u.assoc_resp.aid)); | 3985 | & le16_to_cpu(mgnt->u.assoc_resp.aid)); |
3978 | priv->assoc_capability = | 3986 | priv->assoc_capability = |