aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_config.c
diff options
context:
space:
mode:
authorBeni Lev <beni.lev@intel.com>2017-08-21 16:43:53 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-01 16:18:50 (GMT)
commit076f1ea1d9d78a2ecca678e3a7dddec128ff19fc (patch)
tree1c286b2629c213510e9716d35da25348a75dc81c /src/ap/ap_config.c
parent19677b77c3a48116eb2fa5db06966da7220cd76d (diff)
downloadhostap-076f1ea1d9d78a2ecca678e3a7dddec128ff19fc.zip
hostap-076f1ea1d9d78a2ecca678e3a7dddec128ff19fc.tar.gz
hostap-076f1ea1d9d78a2ecca678e3a7dddec128ff19fc.tar.bz2
OCE: Add RSSI based association rejection support (AP)
An AP might reject a STA association request due to low RSSI. In such case, the AP informs the STA the desired RSSI improvement and a retry timeout. The STA might retry to associate even if the RSSI hasn't improved if the retry timeout expired. Signed-off-by: Beni Lev <beni.lev@intel.com>
Diffstat (limited to 'src/ap/ap_config.c')
-rw-r--r--src/ap/ap_config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index 68abb8e..95a3476 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -241,6 +241,9 @@ struct hostapd_config * hostapd_config_defaults(void)
* environments for the current frequency band in the country. */
conf->country[2] = ' ';
+ conf->rssi_reject_assoc_rssi = 0;
+ conf->rssi_reject_assoc_timeout = 30;
+
return conf;
}