aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-10-05 18:02:29 (GMT)
committerJouni Malinen <j@w1.fi>2018-10-05 18:03:46 (GMT)
commit2fd8984b05a5edc1ec9a08f07f946e64ee916561 (patch)
tree998781a7ba0c384cd0d3e590f605482b00c4e587 /hs20
parent6bf62f7fc44a470e0d5476488d8f542e9752db77 (diff)
downloadhostap-2fd8984b05a5edc1ec9a08f07f946e64ee916561.zip
hostap-2fd8984b05a5edc1ec9a08f07f946e64ee916561.tar.gz
hostap-2fd8984b05a5edc1ec9a08f07f946e64ee916561.tar.bz2
HS 2.0: Reject OSU connection for Single SSID case without OSU_NAI
The Single SSID case can only use OSEN, so reject the case where OSU_NAI is not set and open OSU connection would be used since that connection cannot succeed. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/client/osu_client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index 02bde2f..17c5ba1 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -2193,6 +2193,10 @@ static int osu_connect(struct hs20_osu_client *ctx, const char *bssid,
set_network_quoted(ifname, id, "identity", osu_nai) < 0 ||
set_network_quoted(ifname, id, "ca_cert", fname) < 0)
return -1;
+ } else if (ssid2) {
+ wpa_printf(MSG_INFO, "No OSU_NAI set for RSN[OSEN]");
+ write_summary(ctx, "No OSU_NAI set for RSN[OSEN]");
+ return -1;
} else {
if (set_network(ifname, id, "key_mgmt", "NONE") < 0)
return -1;