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)
commit72e15d71b02a21fd7b94ee1af4ba3a41f722b1f3
tree9e0435e3fba955ea598b637ac53fe8f0b879d22f
parent4967c31677cf3c6c49aadf205f1a31d15d7610da
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