aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-20 19:24:48 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-20 19:30:43 (GMT)
commit2a93ecc8cad10a29bb09567d7f96b986b9d71047 (patch)
treed8d92d6c86c34da3064c3f54b1cc3e533873ebea /wpa_supplicant/ctrl_iface.c
parent7488e0ade6dffb6df4c1fb6526a9f3ede0eb18ef (diff)
downloadhostap-2a93ecc8cad10a29bb09567d7f96b986b9d71047.zip
hostap-2a93ecc8cad10a29bb09567d7f96b986b9d71047.tar.gz
hostap-2a93ecc8cad10a29bb09567d7f96b986b9d71047.tar.bz2
Expose Multi-BSS STA capability through wpa_supplicant control interface
Indicate whether the driver advertises support for Multi-BSS STA functionality with "GET_CAPABILITY multibss" (returns "MULTIBSS-STA" if supported). Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index a742949..951989a 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -4388,6 +4388,13 @@ static int wpa_supplicant_ctrl_iface_get_capability(
}
#endif /* CONFIG_FILS */
+ if (os_strcmp(field, "multibss") == 0 && wpa_s->multi_bss_support) {
+ res = os_snprintf(buf, buflen, "MULTIBSS-STA");
+ if (os_snprintf_error(buflen, res))
+ return -1;
+ return res;
+ }
+
wpa_printf(MSG_DEBUG, "CTRL_IFACE: Unknown GET_CAPABILITY field '%s'",
field);