]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: OSU client to send HomeSP/RoamingConsortiumOI to wpa_supplicant
authorJouni Malinen <jouni@codeaurora.org>
Tue, 17 Apr 2018 13:21:36 +0000 (16:21 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 17 Apr 2018 13:40:47 +0000 (16:40 +0300)
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 <jouni@codeaurora.org>
hs20/client/osu_client.c

index 1a1cd5f3ffe5456ba12cff5c6b45c339e7d20b79..f0ba9ab7d289e32563298539b978a1a5d3996ccd 100644 (file)
@@ -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);
 }