aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-05-29 17:09:53 (GMT)
committerJouni Malinen <j@w1.fi>2018-05-29 20:34:22 (GMT)
commit8d660a4bac1a20097b14945841fe97feb445e4be (patch)
tree9a362d961ee8a67ec2068c01664497659277109a /hostapd/config_file.c
parent0fe3ede0a4f6fe984bbaad90f1a9d9e8decc155d (diff)
downloadhostap-8d660a4bac1a20097b14945841fe97feb445e4be.zip
hostap-8d660a4bac1a20097b14945841fe97feb445e4be.tar.gz
hostap-8d660a4bac1a20097b14945841fe97feb445e4be.tar.bz2
HS 2.0: Allow OSEN connection to be enabled in an RSN BSS
This allows a single BSS/SSID to be used for both data connection and OSU. Instead of hostapd configuration osen=1, wpa_key_mgmt=OSEN (or more likely, wpa_key_mgmt=WPA-EAP OSEN) is used to enable this new option. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
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 ebd1c49..412f61f 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -813,6 +813,10 @@ static int hostapd_config_parse_key_mgmt(int line, const char *value)
else if (os_strcmp(start, "DPP") == 0)
val |= WPA_KEY_MGMT_DPP;
#endif /* CONFIG_DPP */
+#ifdef CONFIG_HS20
+ else if (os_strcmp(start, "OSEN") == 0)
+ val |= WPA_KEY_MGMT_OSEN;
+#endif /* CONFIG_HS20 */
else {
wpa_printf(MSG_ERROR, "Line %d: invalid key_mgmt '%s'",
line, start);