aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorKanchanapally, Vidyullatha <vkanchan@qti.qualcomm.com>2017-03-06 11:46:00 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-06 22:34:14 (GMT)
commitaf8bc24da37c340e17417317d7d97f1ea2ef0dc3 (patch)
tree9a5598d82f2e69eef3d3eff4659ba734c92d8890 /wpa_supplicant/config.c
parent3ab484928a892d806a2c1349606eed47a8eccd40 (diff)
downloadhostap-af8bc24da37c340e17417317d7d97f1ea2ef0dc3.zip
hostap-af8bc24da37c340e17417317d7d97f1ea2ef0dc3.tar.gz
hostap-af8bc24da37c340e17417317d7d97f1ea2ef0dc3.tar.bz2
MBO: Add support for transition reject reason code
Add support for rejecting a BSS transition request using MBO reject reason codes. A candidate is selected or rejected based on whether it is found acceptable by both wpa_supplicant and the driver. Also accept any candidate meeting a certain threshold if disassoc imminent is set in BTM Request frame. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/config.c')
-rw-r--r--wpa_supplicant/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 58ecf19..00c5ff0 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -3742,6 +3742,8 @@ struct wpa_config * wpa_config_alloc_empty(const char *ctrl_interface,
#ifdef CONFIG_MBO
config->mbo_cell_capa = DEFAULT_MBO_CELL_CAPA;
+ config->disassoc_imminent_rssi_threshold =
+ DEFAULT_DISASSOC_IMMINENT_RSSI_THRESHOLD;
#endif /* CONFIG_MBO */
if (ctrl_interface)
@@ -4453,6 +4455,7 @@ static const struct global_parse_data global_fields[] = {
{ STR(non_pref_chan), 0 },
{ INT_RANGE(mbo_cell_capa, MBO_CELL_CAPA_AVAILABLE,
MBO_CELL_CAPA_NOT_SUPPORTED), 0 },
+ { INT_RANGE(disassoc_imminent_rssi_threshold, -120, 0), 0 },
#endif /*CONFIG_MBO */
{ INT(gas_address3), 0 },
{ INT_RANGE(ftm_responder, 0, 1), 0 },