diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-13 15:31:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-13 15:31:51 -0400 |
commit | 815868e7b5c207ba42d5b317ccc51f8112732268 (patch) | |
tree | c0531faf1c8925ba36fc2cb6e9ac17b1ce0f35d5 /drivers/net/wireless/iwlwifi/iwl-sta.h | |
parent | 084cb0fe773dc3dbe2bb08039dbd0e9e93d103ce (diff) | |
parent | f8036965ccec4d786d8bf09bf57b793542cb3dce (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-sta.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.h b/drivers/net/wireless/iwlwifi/iwl-sta.h index ba95b1a590a5..d38a350ba0bd 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.h +++ b/drivers/net/wireless/iwlwifi/iwl-sta.h | |||
@@ -98,6 +98,17 @@ static inline void iwl_clear_driver_stations(struct iwl_priv *priv) | |||
98 | spin_lock_irqsave(&priv->sta_lock, flags); | 98 | spin_lock_irqsave(&priv->sta_lock, flags); |
99 | memset(priv->stations, 0, sizeof(priv->stations)); | 99 | memset(priv->stations, 0, sizeof(priv->stations)); |
100 | priv->num_stations = 0; | 100 | priv->num_stations = 0; |
101 | |||
102 | /* | ||
103 | * Remove all key information that is not stored as part of station | ||
104 | * information since mac80211 may not have had a | ||
105 | * chance to remove all the keys. When device is reconfigured by | ||
106 | * mac80211 after an error all keys will be reconfigured. | ||
107 | */ | ||
108 | priv->ucode_key_table = 0; | ||
109 | priv->key_mapping_key = 0; | ||
110 | memset(priv->wep_keys, 0, sizeof(priv->wep_keys)); | ||
111 | |||
101 | spin_unlock_irqrestore(&priv->sta_lock, flags); | 112 | spin_unlock_irqrestore(&priv->sta_lock, flags); |
102 | } | 113 | } |
103 | 114 | ||