From patchwork Wed Aug 22 17:31:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Otcheretianski, Andrei" X-Patchwork-Id: 960971 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) 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=intel.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BHeuFeS5"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41wT9M4SjWz9s7T for ; Wed, 22 Aug 2018 23:36:55 +1000 (AEST) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=NzbO+CR/nbLKxo6Z3cwTXybObP7cs8Zi6zsO2c4Ne9k=; b=BHe uFeS5q/FWtul97apbQmPO0Djzca4Xf2uDlDwWY9NtsMWTWF8BYZjyETkEozGEBaMB8EA4vxATWGpq CzQL+XcJ/M0iygBlWTFQatubgejajBPJYwfvLxBcYJt7vMkVQ6vh+nBt0Wt4vM/VB1DziHvDYUjNs 0qBp23JbIY6vZePae1JWV3r0yHiixymaNEW9YU0bN6rdf/jHU3mWZkxJl04+WjdNPTU3wuT0Kgim/ boaKQMbn95Z39Q0VBJG/v5znzaYe3KN3sBxqTDwjOVZErapbHDrdVGgVvUfrJFwpvcU1S5RACz2zH uHcgGdMnNQISHjPokMDscZT6GGu0ymA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsTJZ-0002Bb-IK; Wed, 22 Aug 2018 13:36:49 +0000 Received: from mga12.intel.com ([192.55.52.136]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsTJV-0001vF-7U for hostap@lists.infradead.org; Wed, 22 Aug 2018 13:36:47 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Aug 2018 06:36:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,274,1531810800"; d="scan'208";a="85477221" Received: from unknown (HELO andrei-XPS-12-9Q33.ger.corp.intel.com) ([10.12.217.183]) by orsmga002.jf.intel.com with ESMTP; 22 Aug 2018 06:36:15 -0700 From: Andrei Otcheretianski To: hostap@lists.infradead.org Subject: [PATCH] tests: Make ap_reconnect_auth_timeout test more robust Date: Wed, 22 Aug 2018 20:31:45 +0300 Message-Id: <1534959105-13163-3-git-send-email-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180822_063645_711935_29A02DEB X-CRM114-Status: GOOD ( 11.27 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [192.55.52.136 listed in list.dnswl.org] 2.4 DATE_IN_FUTURE_03_06 Date: is 3 to 6 hours after Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrei Otcheretianski MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This test starts two identical APs and assumes a connection to the first one, though it is not necessary true. Fix that by starting the second AP only after the connection is established. Signed-off-by: Andrei Otcheretianski --- tests/hwsim/test_ap_roam.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_ap_roam.py b/tests/hwsim/test_ap_roam.py index 6f8b8d9..63a0b2c 100644 --- a/tests/hwsim/test_ap_roam.py +++ b/tests/hwsim/test_ap_roam.py @@ -74,13 +74,14 @@ def test_ap_reconnect_auth_timeout(dev, apdev, params): params = hostapd.wpa2_params(ssid="test-wpa2-psk", passphrase="12345678") hapd0 = hostapd.add_ap(apdev[0], params) bssid0 = hapd0.own_addr() - hapd1 = hostapd.add_ap(apdev[1], params) - bssid1 = hapd1.own_addr() wpas.scan_for_bss(bssid0, freq=2412) id = wpas.connect("test-wpa2-psk", psk="12345678", scan_freq="2412") hwsim_utils.test_connectivity(wpas, hapd0) + hapd1 = hostapd.add_ap(apdev[1], params) + bssid1 = hapd1.own_addr() + wpas.request("BLACKLIST " + bssid0) wpas.scan_for_bss(bssid1, freq=2412)