aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethoc.c
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2009-04-30 13:56:31 -0700
committerJohn W. Linville <linville@tuxdriver.com>2009-05-04 16:22:10 -0400
commit299f5462087f3bc2141e6bc83ba7e2b15d8a07d2 (patch)
treef8fc9314b473a49e88d4130bc160fda09dc10c1f /drivers/net/ethoc.c
parentc0f0aac05fa84b37ed46db8cf6c8bee9a67bbcca (diff)
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 'drivers/net/ethoc.c')
0 files changed, 0 insertions, 0 deletions