From patchwork Fri Feb 7 09:10:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Greear X-Patchwork-Id: 1234806 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=candelatech.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=YL5q4Fxo; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=candelatech.com header.i=@candelatech.com header.a=rsa-sha256 header.s=default header.b=oz5ov8uY; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48DV0s6Fq2z9sRR for ; Fri, 7 Feb 2020 20:11:41 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nANHC4SFgyFkMC8kuYQaZqkJNj5rC+iRNMxaAQyqC/4=; b=YL5q4FxovQFdgL G4sbHuXVdyWsiSV9IXQb+WYDpITA5JgRwwhz0HSUTRoZ/auPJTZHKrA2Iil1fLKT/Sa6j5BtXXdpy o7gQRMN+f/vKrGqwek49xSEUsYAan1nTsCfqMIwZkNTfzQCMkal0vgzM8xv1SNWsmg4Gb3t3pZADm 7AkNRJztRUxs02UCGVPAsDtrPZNy7eEC8jca1PyibXFp1nnYLcmjR7EtRotjTsmMosTR1W7IrakXf zB8fmyem/ngcnJwUgZYLtuvH5+QcHHcDYM7smEqXPrqA0GoGozVSgV7lY/JHWXZ3Czkkilm+ossFw Fmo9SobobWPFwO756wHg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1izzfl-0002x3-K2; Fri, 07 Feb 2020 09:11:37 +0000 Received: from mail2.candelatech.com ([208.74.158.173] helo=mail3.candelatech.com) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1izzee-0001lS-K4 for hostap@lists.infradead.org; Fri, 07 Feb 2020 09:10:31 +0000 Received: from ben-dt4.candelatech.com (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) by mail3.candelatech.com (Postfix) with ESMTP id 52DCE13758E; Fri, 7 Feb 2020 01:10:27 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 52DCE13758E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1581066627; bh=p4arcpW2OLLwN/rRMv44jB9g5BgiuBj2bR0BZQd/gmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oz5ov8uYf0iKXZldw42z/qlgAFKRBiV/9HNUSno4qvNOsvvDkzx2turUyzv+dKmi5 fnDv/7S5uGNUyfPJJM9NzlqKVtvsw9qm2bRgq5FqwFxqUjSaEu0dlaSpnmaVEigDAa VuNDzhds7vTQiyP7yQmYAWJ7P8EQ5zFqcpnFiu2c= From: greearb@candelatech.com To: hostap@lists.infradead.org Subject: [PATCH 9/9] hs20-client: Add 1 second sleep after IP is detected to allow external config to complete. Date: Fri, 7 Feb 2020 01:10:17 -0800 Message-Id: <20200207091017.26244-9-greearb@candelatech.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200207091017.26244-1-greearb@candelatech.com> References: <20200207091017.26244-1-greearb@candelatech.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200207_011028_717054_0FB47781 X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ben Greear Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Ben Greear For instance, setting up VRFs and such might take a small bit of extra time. Signed-off-by: Ben Greear --- 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,