From patchwork Thu Jun 27 05:44:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 1123127 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=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cuTFmn3q"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cVCH/WA7"; 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 45Z85366qzz9sLt for ; Thu, 27 Jun 2019 15:45:43 +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: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=Ickws40Mvq9fDUF9+1iflsxLloUuehrDF/OQiML//ts=; b=cuTFmn3q+mYvxSUQ/OR+pGeWGK m26huytzBzNv3/z2bExUwFD12HlnaAiB4ZnNQyK6Dp7LSv7ltkgiVozZ4RVVoNwHa+CQIqnu2bIHV dbs3YGfmPnYIhqpUhSUZxVU+7R6k8gxLySV3LLr6xhidSo962Dv1qY+qB8wxUsE2kXdJkCwrNpKJg 0e/vBfEJhNeZcJO+02fC2+fYE396+QNTNN3M2pgMoR+ntLKH1B2cj+K6KCPKjTxuKmUY70rnb+J2W RggModMUmrpQEU/awzlfHX87y9Q7PX7x/zj7dijWHfbH3gVTTdLz66B9lZKrjDMdaNkrpdgB+BUtZ zn3jzsZA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgNE3-0005QD-Ae; Thu, 27 Jun 2019 05:45:39 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgNDX-0004ke-8R for hostap@lists.infradead.org; Thu, 27 Jun 2019 05:45:08 +0000 Received: by mail-pf1-x442.google.com with SMTP id r7so638360pfl.3 for ; Wed, 26 Jun 2019 22:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Cprpbmklo5S13nP7Yczq2b0i0+/K1b9iEgStEHUJFuw=; b=cVCH/WA7IP9aahRUm+UDVszhfDBwkmQPEB2Jizn4sQEjgQCvklduKW5lclmhhlR9Bq 5dXWnefwNc1wvFwQRMwic1AZxgRgIbLg6wi4BImQxfw2lq+12GeHJznqPRLKNgy3EJ8c jzVNee6DrFIs12OC/AtfWVc14UaVaMJzgUOGhhNg/TTZL1eVeluuq9eHXrGfy6K9RQIO otC8+tSBwnlv85M79FpwObCXyTkcRdZocL9se3pnuZ+Err0Nx99K6crGK/73Kf6zwkbR T1Zg/IkPZZyO8fuOqh7ZGS8nXdu0MFvEBlR4VRMhPdNxP946ZVGIoWAhL4xHACHk3l3x FSfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Cprpbmklo5S13nP7Yczq2b0i0+/K1b9iEgStEHUJFuw=; b=qTrfO/x0ZiaMYgOUvBsyVvFnoTnswmb18t50HhbtgHretU8WCpLJU8vJWsvuHx1w/m u7d2LDdfhCGnGg9hc1U0Wno4dB9XogWV1FpiBN220gZ4SgLgvQpO3iB+CKKQ50YEqvHq MWtJzT2cZf18aKVRpUNjaUA1XOKzCdl2bejnOOq4DtkmvgCKuLY7s905cikAZbrnx51p nIMSev2r9tY2QcIJ5Ze1v455Itf4XJA8FKe9iIZqsetBl/O6lh+GD19WajXbl+ghS/Ji LgOrx81CTcYoQkuuu6ztv+W2dfFx9iqn2iILZUx5lnWxSY4zutri0JahEmzjD1nkubgI Iq8Q== X-Gm-Message-State: APjAAAUpJJl/y03TiApxAd2fZuAUVhQFLVM8ekuBI18LDd9Pk4WoUKpJ eKZQVszuxRFfmRRUmyHhFtGjBoi/ X-Google-Smtp-Source: APXvYqzCKGlWAV3c4XI3zqdagCaN8HBeV309bxDre9WypXcypwj3/Js9qpYGkj2vOvYmoafXc1YLiw== X-Received: by 2002:a63:c344:: with SMTP id e4mr2069719pgd.204.1561614306415; Wed, 26 Jun 2019 22:45:06 -0700 (PDT) Received: from gtx1600.flets-east.jp ([2409:11:321:2100:dc07:93d9:d501:eb26]) by smtp.gmail.com with ESMTPSA id g17sm1223302pfb.56.2019.06.26.22.45.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 22:45:05 -0700 (PDT) From: Masashi Honma To: hostap@lists.infradead.org Subject: [PATCH 3/9] tests: Fix ap_acs_5ghz_40mhz false negative by using common finalizer ap_acs_5ghz_40mhz fails with this message. Date: Thu, 27 Jun 2019 14:44:46 +0900 Message-Id: <20190627054452.6547-3-masashi.honma@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190627054452.6547-1-masashi.honma@gmail.com> References: <20190627054452.6547-1-masashi.honma@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190626_224507_305204_077BAEDE X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (masashi.honma[at]gmail.com) -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: Masashi Honma MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org --------------- wlan0: Country code not reset back to 00: is US wlan0: Country code cleared back to 00 --------------- hostap commit 91b6eba7732354ed3dfe0aa9715dc4c0746e3336 'Move MAC address randomization enable/disable to helper functions'. wireless-testing commit 66c112cbd1d44d05322bb4eef908c82a68adbb5e tag: wt-2019-06-26. This patch fixes the issue. Signed-off-by: Masashi Honma --- tests/hwsim/test_ap_acs.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/hwsim/test_ap_acs.py b/tests/hwsim/test_ap_acs.py index 99b786e3d..623733056 100644 --- a/tests/hwsim/test_ap_acs.py +++ b/tests/hwsim/test_ap_acs.py @@ -185,12 +185,7 @@ def test_ap_acs_5ghz_40mhz(dev, apdev): dev[0].connect("test-acs", psk="12345678", scan_freq=freq) dev[0].wait_regdom(country_ie=True) finally: - if hapd: - hapd.request("DISABLE") - dev[0].disconnect_and_stop_scan() - hostapd.cmd_execute(apdev[0], ['iw', 'reg', 'set', '00']) - dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=0.5) - dev[0].flush_scan_cache() + clear_regdom(hapd, dev) def test_ap_acs_vht(dev, apdev): """Automatic channel selection for VHT"""