iwlwifi: mvm: update power after phy_ctxt is NULL when unassigning chanctx
authorLuciano Coelho <luciano.coelho@intel.com>
Wed, 14 May 2014 07:01:14 +0000 (10:01 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 19 May 2014 13:37:30 +0000 (16:37 +0300)
commit3b0077226733fac0eba4abaa65636901522bc6bf
tree138fb8d60637000a1fd425d4d3f67c6c39f6b27a
parentaf7c603eb476216f1c27d82b802f0ce879c54ab3
iwlwifi: mvm: update power after phy_ctxt is NULL when unassigning chanctx

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>
drivers/net/wireless/iwlwifi/mvm/mac80211.c