iwlwifi: mvm: remove d0i3 ref correctly during AP start
authorArik Nemtsov <arik@wizery.com>
Sun, 8 Mar 2015 10:19:42 +0000 (12:19 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 26 Mar 2015 07:11:36 +0000 (09:11 +0200)
The AP_START d0i3 reference was never removed if the AP started correctly.
This has the unpleasant side-effect of preventing D0i3 on Android if the
WiFi hotspot was ever started on the device.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c

index a3a84d1523bcace1943ae81d072c13dd655668ef..b4e28ff596bff7c5c2e7d95c618d43c6b8418b5e 100644 (file)
@@ -2215,8 +2215,7 @@ static int iwl_mvm_start_ap_ibss(struct ieee80211_hw *hw,
        if (iwl_mvm_phy_ctx_count(mvm) > 1)
                iwl_mvm_teardown_tdls_peers(mvm);
 
-       mutex_unlock(&mvm->mutex);
-       return 0;
+       goto out_unlock;
 
 out_quota_failed:
        iwl_mvm_power_update_mac(mvm);