Skip to content

Commit

Permalink
iwlwifi: mvm: update power after phy_ctxt is NULL when unassigning ch…
Browse files Browse the repository at this point in the history
…anctx

iwl_mvm_power_update_mac() (more specifically
iwl_mvm_power_iterator()) relies on the phy_ctxt setting to decide
whether the vif is active or not.  When unassigning a chanctx, we
should therefore call iwl_mvm_power_update_mac() after setting
phy_chanctx to NULL.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
  • Loading branch information
Luciano Coelho authored and Emmanuel Grumbach committed May 19, 2014
1 parent af7c603 commit 3b00772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/mvm/mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2299,10 +2299,10 @@ static void iwl_mvm_unassign_vif_chanctx(struct ieee80211_hw *hw,
}

iwl_mvm_binding_remove_vif(mvm, vif);
iwl_mvm_power_update_mac(mvm, vif);

out_unlock:
mvmvif->phy_ctxt = NULL;
iwl_mvm_power_update_mac(mvm, vif);
mutex_unlock(&mvm->mutex);
}

Expand Down

0 comments on commit 3b00772

Please sign in to comment.