From: Reinette Chatre Date: Wed, 28 Jan 2009 17:38:30 +0000 (-0800) Subject: iwlwifi: clean key table in iwl_clear_stations_table X-Git-Tag: v2.6.29-rc4~24^2~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e46882e2ecacd2ebd1bfba3caaa4a25ffbcb94d;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git iwlwifi: clean key table in iwl_clear_stations_table Cleans uCode key table bit map iwl_clear_stations_table since all stations are cleared also the key table must be. Since the keys are not removed properly on suspend by mac80211 this may result in exhausting key table on resume leading to memory corruption during removal Signed-off-by: Tomas Winkler Signed-off-by: Reinette Chatre Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index 412f66b..70a8b21 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c @@ -480,6 +480,9 @@ void iwl_clear_stations_table(struct iwl_priv *priv) priv->num_stations = 0; memset(priv->stations, 0, sizeof(priv->stations)); + /* clean ucode key table bit map */ + priv->ucode_key_table = 0; + spin_unlock_irqrestore(&priv->sta_lock, flags); } EXPORT_SYMBOL(iwl_clear_stations_table);