From: Ben Greear <greearb@xxxxxxxxxxxxxxx> For instance, setting up VRFs and such might take a small bit of extra time. Signed-off-by: Ben Greear <greearb@xxxxxxxxxxxxxxx> --- hs20/client/oma_dm_client.c | 2 ++ hs20/client/osu_client.c | 5 +++++ hs20/client/spp_client.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/hs20/client/oma_dm_client.c b/hs20/client/oma_dm_client.c index 78b46341a..ad5724525 100644 --- a/hs20/client/oma_dm_client.c +++ b/hs20/client/oma_dm_client.c @@ -1211,6 +1211,8 @@ int cmd_oma_dm_sim_prov(struct hs20_osu_client *ctx, const char *url) if (wait_ip_addr(ctx->ifname, 15) < 0) { wpa_printf(MSG_INFO, "Could not get IP address for WLAN - try connection anyway"); } + /* Give a bit more time in case external tools are still configuring things, like VRF. */ + os_sleep(1, 0); write_summary(ctx, "OMA-DM SIM provisioning"); check_dns_file(ctx); diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c index ff6e5b1c0..3b579f14f 100644 --- a/hs20/client/osu_client.c +++ b/hs20/client/osu_client.c @@ -2285,6 +2285,8 @@ static int osu_connect(struct hs20_osu_client *ctx, const char *bssid, wpa_printf(MSG_INFO, "Could not get IP address for WLAN - try connection anyway"); } + /* Give a bit more time in case external tools are still configuring things, like VRF. */ + os_sleep(1, 0); check_dns_file(ctx); if (no_prod_assoc) { @@ -2730,6 +2732,9 @@ static int cmd_sub_rem(struct hs20_osu_client *ctx, const char *address, if (wait_ip_addr(ctx->ifname, 15) < 0) { wpa_printf(MSG_INFO, "Could not get IP address for WLAN - try connection anyway"); } + + /* Give a bit more time in case external tools are still configuring things, like VRF. */ + os_sleep(1, 0); check_dns_file(ctx); if (spp) diff --git a/hs20/client/spp_client.c b/hs20/client/spp_client.c index 4144189b0..48a8f6457 100644 --- a/hs20/client/spp_client.c +++ b/hs20/client/spp_client.c @@ -1000,6 +1000,8 @@ int cmd_sim_prov(struct hs20_osu_client *ctx, const char *url) wpa_printf(MSG_INFO, "Could not get IP address for WLAN - try connection anyway"); } + /* Give a bit more time in case external tools are still configuring things, like VRF. */ + os_sleep(1, 0); check_dns_file(ctx); if (soap_init_client(ctx->http, url, ctx->ca_fname, NULL, NULL, NULL, -- 2.20.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap