]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS20: Use required_home_ois in hs20-osu-client
authorDamien Dejean <damiendejean@chromium.org>
Thu, 15 Sep 2022 08:02:13 +0000 (08:02 +0000)
committerJouni Malinen <j@w1.fi>
Sat, 26 Nov 2022 15:58:57 +0000 (17:58 +0200)
Move from the now deprecated roaming_consortium and
required_roaming_consortium credential parameters to home_ois and
required_home_ois.

Signed-off-by: Damien Dejean <damiendejean@chromium.org>
hs20/client/osu_client.c

index 01e7b7553ff418dc6edd4db686232e9dc6db2520..2ca85f96ce3f8cd77282c204b418a1e0c30e06af 100644 (file)
@@ -1231,12 +1231,13 @@ static void set_pps_cred_home_sp_oi(struct hs20_osu_client *ctx, int id,
                   homeoi, required);
 
        if (required) {
-               if (set_cred(ctx->ifname, id, "required_roaming_consortium",
-                            homeoi) < 0)
-                       wpa_printf(MSG_INFO, "Failed to set cred required_roaming_consortium");
+               if (set_cred_quoted(ctx->ifname, id, "required_home_ois",
+                                   homeoi) < 0)
+                       wpa_printf(MSG_INFO,
+                                  "Failed to set cred required_home_ois");
        } else {
-               if (set_cred(ctx->ifname, id, "roaming_consortium", homeoi) < 0)
-                       wpa_printf(MSG_INFO, "Failed to set cred roaming_consortium");
+               if (set_cred_quoted(ctx->ifname, id, "home_ois", homeoi) < 0)
+                       wpa_printf(MSG_INFO, "Failed to set cred home_ois");
        }
 
        xml_node_get_text_free(ctx->xml, homeoi);