aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2014-07-07 11:20:55 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-25 22:23:46 (GMT)
commitea6bf29ea3fb5abcaafb85ed5f0a26356ecb225a (patch)
tree23e0481a31341b2fbc2de6004f9af163e339425b /src
parent0a4435805584dd409a5a1bf4647744018823a443 (diff)
downloadhostap-ea6bf29ea3fb5abcaafb85ed5f0a26356ecb225a.zip
hostap-ea6bf29ea3fb5abcaafb85ed5f0a26356ecb225a.tar.gz
hostap-ea6bf29ea3fb5abcaafb85ed5f0a26356ecb225a.tar.bz2
nl80211: Add indoor only and GO concurrent flags
Add the following channel flags: * INDOOR_ONLY: The channel can be used if and only if there is a clear assessment that the device is operating in an indoor environment, i.e., it is AC power. * CONCURRENT_GO: The channel can be used for instantiating a GO if and only if there is an additional station interface that is currently connected to an AP on the same channel or on the same U-NII band (assuming that the AP is an authorized master). Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver.h3
-rw-r--r--src/drivers/driver_nl80211.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 0928305..369c8d2 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -41,6 +41,9 @@
#define HOSTAPD_CHAN_VHT_50_30 0x00002000
#define HOSTAPD_CHAN_VHT_70_10 0x00004000
+#define HOSTAPD_CHAN_INDOOR_ONLY 0x00010000
+#define HOSTAPD_CHAN_GO_CONCURRENT 0x00020000
+
enum reg_change_initiator {
REGDOM_SET_BY_CORE,
REGDOM_SET_BY_USER,
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index a256fd1..cd66eef 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -6675,6 +6675,10 @@ static void phy_info_freq(struct hostapd_hw_modes *mode,
chan->flag |= HOSTAPD_CHAN_NO_IR;
if (tb_freq[NL80211_FREQUENCY_ATTR_RADAR])
chan->flag |= HOSTAPD_CHAN_RADAR;
+ if (tb_freq[NL80211_FREQUENCY_ATTR_INDOOR_ONLY])
+ chan->flag |= HOSTAPD_CHAN_INDOOR_ONLY;
+ if (tb_freq[NL80211_FREQUENCY_ATTR_GO_CONCURRENT])
+ chan->flag |= HOSTAPD_CHAN_GO_CONCURRENT;
if (tb_freq[NL80211_FREQUENCY_ATTR_DFS_STATE]) {
enum nl80211_dfs_state state =