From 2e88032f1b2b177278f1be4ca6716e6cd783b8b3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 17 Apr 2018 16:21:36 +0300 Subject: [PATCH] HS 2.0: OSU client to send HomeSP/RoamingConsortiumOI to wpa_supplicant This adds mapping of the PPS MO HomeSP/RoamingConsortiumOI leaf node value into the wpa_supplicant cred block parameter roaming_consortiums. Signed-off-by: Jouni Malinen --- hs20/client/osu_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c index 1a1cd5f3f..f0ba9ab7d 100644 --- a/hs20/client/osu_client.c +++ b/hs20/client/osu_client.c @@ -1308,7 +1308,9 @@ static void set_pps_cred_home_sp_roaming_consortium_oi( if (str == NULL) return; wpa_printf(MSG_INFO, "- HomeSP/RoamingConsortiumOI = %s", str); - /* TODO: Set to wpa_supplicant */ + if (set_cred_quoted(ctx->ifname, id, "roaming_consortiums", + str) < 0) + wpa_printf(MSG_INFO, "Failed to set cred roaming_consortiums"); xml_node_get_text_free(ctx->xml, str); }