diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2017-10-08 09:23:00 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2017-10-08 14:12:35 (GMT) |
commit | ea079153f41a38bfee92f192f1bd97a7c716fe93 (patch) | |
tree | 350c689507b0432a6c212fbe0f05c67aa0ec5ff7 /hostapd | |
parent | e45f2e8ad56eb1bba4c7632ac4ccfc47fd491baa (diff) | |
download | hostap-ea079153f41a38bfee92f192f1bd97a7c716fe93.zip hostap-ea079153f41a38bfee92f192f1bd97a7c716fe93.tar.gz hostap-ea079153f41a38bfee92f192f1bd97a7c716fe93.tar.bz2 |
OWE: Add AP support for transition mode
The new owe_transition_bssid and owe_transition_ssid parameters can be
used to configure hostapd to advertise the OWE Transition Mode element.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/config_file.c | 22 | ||||
-rw-r--r-- | hostapd/hostapd.conf | 6 |
2 files changed, 28 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 5f1032f..d80fb08 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -3773,6 +3773,28 @@ static int hostapd_config_fill(struct hostapd_config *conf, } else if (os_strcmp(buf, "dpp_csign_expiry") == 0) { bss->dpp_csign_expiry = strtol(pos, NULL, 0); #endif /* CONFIG_DPP */ +#ifdef CONFIG_OWE + } else if (os_strcmp(buf, "owe_transition_bssid") == 0) { + if (hwaddr_aton(pos, bss->owe_transition_bssid)) { + wpa_printf(MSG_ERROR, + "Line %d: invalid owe_transition_bssid", + line); + return 1; + } + } else if (os_strcmp(buf, "owe_transition_ssid") == 0) { + size_t slen; + char *str = wpa_config_parse_string(pos, &slen); + + if (!str || slen < 1 || slen > SSID_MAX_LEN) { + wpa_printf(MSG_ERROR, "Line %d: invalid SSID '%s'", + line, pos); + os_free(str); + return 1; + } + os_memcpy(bss->owe_transition_ssid, str, slen); + bss->owe_transition_ssid_len = slen; + os_free(str); +#endif /* CONFIG_OWE */ } else { wpa_printf(MSG_ERROR, "Line %d: unknown configuration item '%s'", diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index 7ad3206..2c5fa7c 100644 --- a/hostapd/hostapd.conf +++ b/hostapd/hostapd.conf @@ -1407,6 +1407,12 @@ own_ip_addr=127.0.0.1 # 1-65535 DH Group to use for FILS PFS #fils_dh_group=0 +# OWE transition mode configuration +# Pointer to the matching open/OWE BSS +#owe_transition_bssid=<bssid> +# SSID in same format as ssid2 described above. +#owe_transition_ssid=<SSID> + # DHCP server for FILS HLP # If configured, hostapd will act as a DHCP relay for all FILS HLP requests # that include a DHCPDISCOVER message and send them to the specific DHCP |