iwlwifi: mvm: refactor resume from WoWLAN code
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Aug 2013 16:28:26 +0000 (18:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 16 Aug 2013 10:11:20 +0000 (12:11 +0200)
commit7abc4632bf1259a491188266a9aaa82ddeb55ff3
tree165e704dbb0183901fcdacbdd1fcfbd286d74ad4
parent3571ac3370ef4e81ed5d60d810682c7b7bd95264
iwlwifi: mvm: refactor resume from WoWLAN code

To be able to add more logic to the resume code, refactor it a bit,
moving some status checking/reporting logic into a new function.
The locking becomes a bit odd (one of the new functions now unlocks
the mutex) but this will be required to call new mac80211 APIs in
there later.

Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/d3.c