]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/wireless/iwlwifi/mvm/mac80211.c
iwlwifi: mvm: check for d0i3 fw capability
[mirror_ubuntu-artful-kernel.git] / drivers / net / wireless / iwlwifi / mvm / mac80211.c
index d74cc43ca593575dbc1f87bfbc75f23d21a66783..41b9e65f6a3f7b7a0a15773bc69b7aef67089922 100644 (file)
@@ -205,7 +205,7 @@ static const struct iwl_fw_bcast_filter iwl_mvm_default_bcast_filters[] = {
 
 void iwl_mvm_ref(struct iwl_mvm *mvm, enum iwl_mvm_ref_type ref_type)
 {
-       if (!mvm->trans->cfg->d0i3)
+       if (!iwl_mvm_is_d0i3_supported(mvm))
                return;
 
        IWL_DEBUG_RPM(mvm, "Take mvm reference - type %d\n", ref_type);
@@ -215,7 +215,7 @@ void iwl_mvm_ref(struct iwl_mvm *mvm, enum iwl_mvm_ref_type ref_type)
 
 void iwl_mvm_unref(struct iwl_mvm *mvm, enum iwl_mvm_ref_type ref_type)
 {
-       if (!mvm->trans->cfg->d0i3)
+       if (!iwl_mvm_is_d0i3_supported(mvm))
                return;
 
        IWL_DEBUG_RPM(mvm, "Leave mvm reference - type %d\n", ref_type);
@@ -228,7 +228,7 @@ iwl_mvm_unref_all_except(struct iwl_mvm *mvm, enum iwl_mvm_ref_type ref)
 {
        int i;
 
-       if (!mvm->trans->cfg->d0i3)
+       if (!iwl_mvm_is_d0i3_supported(mvm))
                return;
 
        for_each_set_bit(i, mvm->ref_bitmap, IWL_MVM_REF_COUNT) {