From patchwork Thu Jun 27 05:44:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 1123126 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="LJOgMj9B"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="us/7QDxy"; 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 45Z84k3DM6z9s4Y for ; Thu, 27 Jun 2019 15:45:26 +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=M+MGFu547aMODNHct36sgnNovdah/5ycdTABVjPnBgw=; b=LJOgMj9BIdudRYGIE1IiNAglX7 3HBZgEr0e0doyUS8xmucdlwPG1gSzbrO5SmeahA/hDcfJcPClg1pKcrWmU2omJziS57yJBRjQeKun 3QWnTFdYvutbCKCklqwPTGIdB5kgl4ZuQNTmrAEKbJlD+S+EOFJbZTTIhx18icaHJXOpTtuX4cNqX GrTG82krL/euRGiNe0oGBUxlgzqQ4hrULO5xHyzQ7VycSy48pNe1lxUudF1teVJ2uWr6bVrExVfIr s6bRygSGqG7YEtJz//k+LLPzRAjv6c3URHEztcgXxVHIUeNDSE6KHzh7EVjH46HNTXfVDPksHRb2j vYYU9MWg==; 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 1hgNDm-0005BH-6I; Thu, 27 Jun 2019 05:45:22 +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 1hgNDV-0004W1-T3 for hostap@lists.infradead.org; Thu, 27 Jun 2019 05:45:07 +0000 Received: by mail-pf1-x442.google.com with SMTP id x15so644163pfq.0 for ; Wed, 26 Jun 2019 22:45:05 -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=rwVjZUKy5bOakRq58aLneLJcB6C65XH7xZSu92ss5bY=; b=us/7QDxyGftKqWWQ0KLNb97i8jZfHw4NZCMBvK+e06A1dHZNVhKEhcXmNQqHvLHyzi 0mCPBjFvmhN5e//B0p0ORF1viiPzIENViiLNcWVzVhiXvctI2G5PaNnh9VuGuVnFsVQ4 Nxfxw2t2kiK+rbuzuIFk4121T98TWBuEoCdCDzgDrXF68ooLjQDHLE5ivTj3/MGJpEz2 nAD3fvzYIGbbCDpEt+smAPthKdSJEZoF/B+61WJJL6Ib7N8FFONLm1x5/MLOG+ZuDqpv Qrk3W7w6t2SQ8GS1ZkoR9qeWXttqwydZu4oNEupOBRW/UiO42bhCawUpQsqwiph7lo5J 8SYA== 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=rwVjZUKy5bOakRq58aLneLJcB6C65XH7xZSu92ss5bY=; b=l2whlAj/QeZe1P/262OIQVGfmBKYwFWeP6FJoKS0ZpotfOSdubuqWJFgFxeQUMkelu +k6+wY7JX1GDwIDGZYbluaizgJS89mXcL5ESCv+8KMRxVFkTGwIYEKO0Di4GfsiJKV4q pMw8IVsCzwQgZ/oiZToDfz1wgl18zONQ/7hgv2QLdaHv9s6tqvq8aIwx3bM053PSBmnk 9WldYp1sAtTauAkRBAefdXkCQzs/WNwasFqHmcLj2Gf2jDLcWKou7VFf8H3OHvu5IOoe UtOdQtVfYF0J6QmqXhRaB6VYzU5DqBS9HoJxYPEA6Sp+pPSlFPljaMfIrsURJXkTvrHI Yy7g== X-Gm-Message-State: APjAAAVMela0O4bE4dz29o9rcForP9sra6XoOYhY211ZEmmf+bmry+ZV D0mJ557J2YdxPz1zDE28qXVpYBYm X-Google-Smtp-Source: APXvYqxBTjMbSVe6+Y+jGE1LzBwDpOiwuYRfmGoog5DjSrTodoXc/7e59+/SN4I4psT3QCwJ/i6U5w== X-Received: by 2002:a17:90a:214e:: with SMTP id a72mr3953122pje.0.1561614304857; Wed, 26 Jun 2019 22:45:04 -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.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 22:45:04 -0700 (PDT) From: Masashi Honma To: hostap@lists.infradead.org Subject: [PATCH 2/9] tests: Fix ap_acs_5ghz false negative by using common finalizer ap_acs_5ghz fails with this message. Date: Thu, 27 Jun 2019 14:44:45 +0900 Message-Id: <20190627054452.6547-2-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_224505_940450_1BC1A305 X-CRM114-Status: UNSURE ( 9.28 ) 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 db0828467..99b786e3d 100644 --- a/tests/hwsim/test_ap_acs.py +++ b/tests/hwsim/test_ap_acs.py @@ -160,12 +160,7 @@ def test_ap_acs_5ghz(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_5ghz_40mhz(dev, apdev): """Automatic channel selection on 5 GHz for 40 MHz channel"""