mac80211: propagate beacon tx mode to the driver
authorJohn Crispin <john@phrozen.org>
Sat, 30 May 2020 11:32:32 +0000 (13:32 +0200)
committerJohn Crispin <john@phrozen.org>
Sat, 6 Jun 2020 09:21:34 +0000 (11:21 +0200)
Now that we can set the beacon xmit mode via nl80211 we want to also
propagate that info to the device driver. This patch sets the field
inside bss_config.

Signed-off-by: John Crispin <john@phrozen.org>
include/net/mac80211.h
net/mac80211/cfg.c

index d7dce78e261e737f37368965068684375dff9d7f..053a0d1eb0c97422f8d14cde6ba378659ff152ef 100644 (file)
@@ -608,6 +608,7 @@ struct ieee80211_ftm_responder_params {
  * @he_obss_pd: OBSS Packet Detection parameters.
  * @he_bss_color: BSS coloring settings, if BSS supports HE
  * @multi_bssid: the multi bssid settings of the AP.
+ * @beacon_tx_mode: the beacon tx mode. This can be staggered or burst.
  */
 struct ieee80211_bss_conf {
        const u8 *bssid;
@@ -676,6 +677,7 @@ struct ieee80211_bss_conf {
        struct ieee80211_he_obss_pd he_obss_pd;
        struct cfg80211_he_bss_color he_bss_color;
        struct ieee80211_multi_bssid multi_bssid;
+       enum nl80211_beacon_tx_mode beacon_tx_mode;
 };
 
 /**
index 40833499304587e9f2fe911dbba79125d2affe12..5d6df6c2780e0dcab98d6c719acb1e8806888cb1 100644 (file)
@@ -1071,6 +1071,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
 
        prev_beacon_int = sdata->vif.bss_conf.beacon_int;
        sdata->vif.bss_conf.beacon_int = params->beacon_interval;
+       sdata->vif.bss_conf.beacon_tx_mode = params->beacon_tx_mode;
 
        if (params->he_cap && params->he_oper) {
                sdata->vif.bss_conf.he_support = true;