]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: change WEP key protection to use mutex
authorJohannes Berg <johannes.berg@intel.com>
Fri, 19 Feb 2010 19:42:32 +0000 (11:42 -0800)
committerReinette Chatre <reinette.chatre@intel.com>
Wed, 10 Mar 2010 00:12:08 +0000 (16:12 -0800)
commit497f054150179ea6425d3ae49a30ab6d533919a7
tree9e0435e3fba955ea598b637ac53fe8f0b879d22f
parent7128b0ea11655c2e4ea240cef5c5d93a79b8076e
iwlwifi: change WEP key protection to use mutex

For later station notification support we would like WEP key setting to be
done synchronously always. Currently all places from which WEP key is set
can sleep, but the usage of sta_lock prevents it to do so. Modify the
locking to use priv->mutex instead and thus enable this call to sleep.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-sta.c
drivers/net/wireless/iwlwifi/iwl3945-base.c