diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2009-04-30 22:56:31 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-04 22:22:10 +0200 |
commit | 299f5462087f3bc2141e6bc83ba7e2b15d8a07d2 (patch) | |
tree | f8fc9314b473a49e88d4130bc160fda09dc10c1f /net/wireless | |
parent | cfg80211: fix truncated IEs (diff) | |
download | linux-299f5462087f3bc2141e6bc83ba7e2b15d8a07d2.tar.xz linux-299f5462087f3bc2141e6bc83ba7e2b15d8a07d2.zip |
iwlwifi: update key flags at time key is set
We need to be symmetrical in what is done when key is set and cleared.
This is important wrt the key flags as they are used during key
clearing and if they are not set when the key is set the key cannot be
cleared completely.
This addresses the many occurences of the WARN found in
iwl_set_tkip_dynamic_key_info() and tracked in
http://www.kerneloops.org/searchweek.php?search=iwl_set_dynamic_key
If calling iwl_set_tkip_dynamic_key_info()/iwl_remove_dynamic_key()
pair a few times in a row will cause that we run out of key space.
This is because the index stored in the key flags is used by
iwl_remove_dynamic_key() to decide if it should remove the key.
Unfortunately the key flags, and hence the key index is currently only
set at the time the key is written to the device (in
iwl_update_tkip_key()) and _not_ in iwl_set_tkip_dynamic_key_info().
Fix this by setting flags in iwl_set_tkip_dynamic_key_info().
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions