]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: Fix hs20-osu-client handling of HomeSP/HomeOIList/<X+>/HomeOI
authorJouni Malinen <jouni@codeaurora.org>
Thu, 2 Aug 2018 13:15:14 +0000 (16:15 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 2 Aug 2018 13:15:14 +0000 (16:15 +0300)
This node was mapped to a SET_CRED roaming_consortium command with
quotation marks even though this is a hexdump of the OI. Remove the
quotation marks to allow this to be set correctly in the wpa_supplicant
credential.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hs20/client/osu_client.c

index b0567039f4998d3684531ccef2cac8f81af1bc7f..a7ddd19110369ed215128f674cd08cd9267ed56e 100644 (file)
@@ -1232,8 +1232,7 @@ static void set_pps_cred_home_sp_oi(struct hs20_osu_client *ctx, int id,
                             homeoi) < 0)
                        wpa_printf(MSG_INFO, "Failed to set cred required_roaming_consortium");
        } else {
-               if (set_cred_quoted(ctx->ifname, id, "roaming_consortium",
-                                   homeoi) < 0)
+               if (set_cred(ctx->ifname, id, "roaming_consortium", homeoi) < 0)
                        wpa_printf(MSG_INFO, "Failed to set cred roaming_consortium");
        }