aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2019-04-16 12:34:01 (GMT)
committerJouni Malinen <j@w1.fi>2019-04-25 09:15:36 (GMT)
commit2ec71488b5a380d7c1e4e733ebc408246671baff (patch)
treee0b4008077bcf39f082ca56dfd5bfa6b0c70bcea /hostapd
parent2fde3caa3a26f3f8bd139d5578326cf8249c0e53 (diff)
downloadhostap-2ec71488b5a380d7c1e4e733ebc408246671baff.zip
hostap-2ec71488b5a380d7c1e4e733ebc408246671baff.tar.gz
hostap-2ec71488b5a380d7c1e4e733ebc408246671baff.tar.bz2
HE: Add Spatial Reuse Parameter Set element to the Beacon frames
SPR allows us to detect OBSS overlaps and allows us to do adaptive CCA thresholds. For this to work the AP needs to broadcast the element first. Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com> Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c8
-rw-r--r--hostapd/hostapd.conf6
2 files changed, 14 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 3f61cb6..dce6557 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3556,6 +3556,14 @@ static int hostapd_config_fill(struct hostapd_config *conf,
} else if (os_strcmp(buf, "he_mu_edca_ac_vo_timer") == 0) {
conf->he_mu_edca.he_mu_ac_vo_param[HE_MU_AC_PARAM_TIMER_IDX] =
atoi(pos) & 0xff;
+ } else if (os_strcmp(buf, "he_srp_sr_control") == 0) {
+ conf->spr.sr_control = atoi(pos) & 0xff;
+ } else if (os_strcmp(buf, "he_srp_non_srg_obss_pd_max_offset") == 0) {
+ conf->spr.non_srg_obss_pd_max_offset = atoi(pos);
+ } else if (os_strcmp(buf, "he_srp_srg_obss_pd_min_offset") == 0) {
+ conf->spr.srg_obss_pd_min_offset = atoi(pos);
+ } else if (os_strcmp(buf, "he_srp_srg_obss_pd_max_offset") == 0) {
+ conf->spr.srg_obss_pd_max_offset = atoi(pos);
#endif /* CONFIG_IEEE80211AX */
} else if (os_strcmp(buf, "max_listen_interval") == 0) {
bss->max_listen_interval = atoi(pos);
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index f8caa56..2087b52 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -825,6 +825,12 @@ wmm_ac_vo_acm=0
#he_mu_edca_ac_vo_ecwmax=15
#he_mu_edca_ac_vo_timer=255
+# Spatial Reuse Parameter Set
+#he_srp_sr_control
+#he_srp_non_srg_obss_pd_max_offset
+#he_srp_srg_obss_pd_min_offset
+#he_srp_srg_obss_pd_max_offset
+
##### IEEE 802.1X-2004 related configuration ##################################
# Require IEEE 802.1X authorization