ath11k: set beacon tx mode
authorJohn Crispin <john@phrozen.org>
Sat, 30 May 2020 11:39:33 +0000 (13:39 +0200)
committerJohn Crispin <john@phrozen.org>
Sat, 6 Jun 2020 09:21:34 +0000 (11:21 +0200)
The beacon can be sent out in staggered or burst mode. Set this mode
according to what mac80211 tells us to use whenever the beacon changes.

Signed-off-by: John Crispin <john@phrozen.org>
drivers/net/wireless/ath/ath11k/mac.c

index daca5b476dce49177433f5dfdde2b91949ba350c..2cc414717f108abd7ceabdc00a94102318cd3482 100644 (file)
@@ -1792,6 +1792,8 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,
        if (changed & BSS_CHANGED_BEACON) {
                param_id = WMI_PDEV_PARAM_BEACON_TX_MODE;
                param_value = WMI_BEACON_STAGGERED_MODE;
+               if (info->beacon_tx_mode == NL80211_BEACON_TX_MODE_BURST)
+                       param_value = WMI_BEACON_BURST_MODE;
                ret = ath11k_wmi_pdev_set_param(ar, param_id,
                                                param_value, ar->pdev->pdev_id);
                if (ret)