|
@@ -1262,12 +1262,15 @@ static int __iwl_mvm_suspend(struct ieee80211_hw *hw,
|
|
|
iwl_trans_d3_suspend(mvm->trans, test, !unified_image);
|
|
|
out:
|
|
|
if (ret < 0) {
|
|
|
- iwl_mvm_ref(mvm, IWL_MVM_REF_UCODE_DOWN);
|
|
|
- if (mvm->restart_fw > 0) {
|
|
|
- mvm->restart_fw--;
|
|
|
- ieee80211_restart_hw(mvm->hw);
|
|
|
- }
|
|
|
iwl_mvm_free_nd(mvm);
|
|
|
+
|
|
|
+ if (!unified_image) {
|
|
|
+ iwl_mvm_ref(mvm, IWL_MVM_REF_UCODE_DOWN);
|
|
|
+ if (mvm->restart_fw > 0) {
|
|
|
+ mvm->restart_fw--;
|
|
|
+ ieee80211_restart_hw(mvm->hw);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
out_noreset:
|
|
|
mutex_unlock(&mvm->mutex);
|