45 lines
1.8 KiB
Diff
45 lines
1.8 KiB
Diff
From ca3bd0e9ecb1b84a629a7aa4d58026f4642aebbd Mon Sep 17 00:00:00 2001
|
|
From: Patrick Walther <patrick.walther@netmodule.com>
|
|
Date: Tue, 28 Jan 2020 15:14:35 +0100
|
|
|
|
---
|
|
src/drivers/driver_nl80211_capa.c | 2 ++
|
|
src/drivers/nl80211_copy.h | 1 +
|
|
2 files changed, 3 insertions(+)
|
|
|
|
diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c
|
|
index a0803bad0..2aeb4d984 100644
|
|
--- a/src/drivers/driver_nl80211_capa.c
|
|
+++ b/src/drivers/driver_nl80211_capa.c
|
|
@@ -1578,6 +1578,9 @@ static void phy_info_freq(struct hostapd_hw_modes *mode,
|
|
if (tb_freq[NL80211_FREQUENCY_ATTR_GO_CONCURRENT])
|
|
chan->flag |= HOSTAPD_CHAN_GO_CONCURRENT;
|
|
|
|
+ if (tb_freq[NL80211_FREQUENCY_ATTR_SRD_CHANNEL])
|
|
+ chan->flag |= HOSTAPD_CHAN_DISABLED;
|
|
+
|
|
if (tb_freq[NL80211_FREQUENCY_ATTR_NO_10MHZ])
|
|
chan->allowed_bw &= ~HOSTAPD_CHAN_WIDTH_10;
|
|
if (tb_freq[NL80211_FREQUENCY_ATTR_NO_20MHZ])
|
|
diff --git a/src/drivers/nl80211_copy.h b/src/drivers/nl80211_copy.h
|
|
index 0568a7909..1d5bbab23 100644
|
|
--- a/src/drivers/nl80211_copy.h
|
|
+++ b/src/drivers/nl80211_copy.h
|
|
@@ -4009,6 +4009,8 @@ enum nl80211_wmm_rule {
|
|
* as the primary or any of the secondary channels isn't possible
|
|
* @NL80211_FREQUENCY_ATTR_NO_EHT: EHT operation is not allowed on this channel
|
|
* in current regulatory domain.
|
|
+ * @NL80211_FREQUENCY_ATTR_SRD_CHANNEL: short range devices mode
|
|
+ * on this channel in current regulatory domain.
|
|
* @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
|
|
* currently defined
|
|
* @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
|
|
@@ -4047,6 +4049,7 @@ enum nl80211_frequency_attr {
|
|
NL80211_FREQUENCY_ATTR_16MHZ,
|
|
NL80211_FREQUENCY_ATTR_NO_320MHZ,
|
|
NL80211_FREQUENCY_ATTR_NO_EHT,
|
|
+ NL80211_FREQUENCY_ATTR_SRD_CHANNEL,
|
|
|
|
/* keep last */
|
|
__NL80211_FREQUENCY_ATTR_AFTER_LAST,
|