aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.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 /hostapd/config_file.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 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index cb8d26f..19ccb30 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -4156,6 +4156,10 @@ static int hostapd_config_fill(struct hostapd_config *conf,
}
bss->multi_ap = val;
+ } else if (os_strcmp(buf, "rssi_reject_assoc_rssi") == 0) {
+ conf->rssi_reject_assoc_rssi = atoi(pos);
+ } else if (os_strcmp(buf, "rssi_reject_assoc_timeout") == 0) {
+ conf->rssi_reject_assoc_timeout = atoi(pos);
} else {
wpa_printf(MSG_ERROR,
"Line %d: unknown configuration item '%s'",