]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
iwlwifi: mvm: set MAC_FILTER_IN_11AX in AP mode
authorShaul Triebitz <shaul.triebitz@intel.com>
Wed, 8 Aug 2018 10:20:45 +0000 (13:20 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 23 Nov 2018 11:01:07 +0000 (13:01 +0200)
In AP mode, if AP supports 11ax, add the MAC_FILTER_IN_11AX
flag in MAC_CTXT command (needed for various 11ax stuff).

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c

index 990ebf89f3423da7fcaa72b2c0826bf9a251d7f1..e049d34a355336e16bcf8bc702ad8c48bac5c2f2 100644 (file)
@@ -1194,6 +1194,9 @@ static void iwl_mvm_mac_ctxt_cmd_fill_ap(struct iwl_mvm *mvm,
                IWL_DEBUG_HC(mvm, "No need to receive beacons\n");
        }
 
+       if (vif->bss_conf.he_support && !iwlwifi_mod_params.disable_11ax)
+               cmd->filter_flags |= cpu_to_le32(MAC_FILTER_IN_11AX);
+
        ctxt_ap->bi = cpu_to_le32(vif->bss_conf.beacon_int);
        ctxt_ap->dtim_interval = cpu_to_le32(vif->bss_conf.beacon_int *
                                             vif->bss_conf.dtim_period);