iwlwifi: mvm: update QoS parameters when they change
authorJohannes Berg <johannes.berg@intel.com>
Tue, 9 Sep 2014 13:49:19 +0000 (15:49 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 14 Sep 2014 19:02:23 +0000 (22:02 +0300)
The QoS parameters can change during the lifetime of the BSS,
and more importantly hostapd only sets up the correct ones
after having started the AP/GO. Resend the MAC context when
the parameters change, with the updated parameters.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c

index e4d62f21a04707b0188bb693e271a34b2b9e4ce5..56901f86ba3d40ce32d54952624f42a902d4b0d4 100644 (file)
@@ -1739,7 +1739,7 @@ iwl_mvm_bss_info_changed_ap_ibss(struct iwl_mvm *mvm,
                return;
 
        if (changes & (BSS_CHANGED_ERP_CTS_PROT | BSS_CHANGED_HT |
-                      BSS_CHANGED_BANDWIDTH) &&
+                      BSS_CHANGED_BANDWIDTH | BSS_CHANGED_QOS) &&
            iwl_mvm_mac_ctxt_changed(mvm, vif, false, NULL))
                IWL_ERR(mvm, "failed to update MAC %pM\n", vif->addr);