iwlwifi: mvm: use atomic interface iteration to avoid deadlock
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 11 Feb 2013 13:56:01 +0000 (15:56 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 12 Feb 2013 15:07:14 +0000 (16:07 +0100)
commit5360cfb2bcbdd7a906cf290036bd406985973e88
treeb7b4220cfa4df37a368840899a11150ba836a7d5
parenta3777e0fdd4abb2f04202580c236d64ecdaac6f2
iwlwifi: mvm: use atomic interface iteration to avoid deadlock

Using the non-atomic version creates a dependency between
mac80211's iflist_mtx and mvm->mutex. Use the atomic version
instead which doesn't take iflist_mtx but can't sleep, so
send the HCMD in ASYNC.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/power.c