From patchwork Thu Jun 27 05:44:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 1123132 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="J5U10a4t"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LMkVC85w"; 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 45Z86G3zbnz9s4Y for ; Thu, 27 Jun 2019 15:46:46 +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=e2xQ3lVOZpEX+xxhfzK5v4nGs4nOeAe7BTwJtfYA5Yc=; b=J5U10a4tTPAgeVwuDA+TSw0ksX CYgohlXyOUQ7C/44HUKVZYvHikfmXcW4RPWKbChZnWtAc3vccVtS8yqyrLIrHYINqrt23vkS7KmJV 0NUArG+SJLDSqrUbS7zc9kNcN5oSgLT2sXEJZof8mqdUNvHfNqSK5FnZtEhw3aCZiAtogB5uYbpB0 qTVAwO9Q56HZyG0WeX+g8uKt/0MTZeQ/yFCUyDRoNH7FvuKGWTG1zXPt6X219euYGwXmV1bLzX3XB ToQrfQ7D5XIRBpsMAEWaqxm/aMpcDx+6/3xinc+R8R8vCWfIc0+f5MLRFpH8BXQz+0+EzMdYP1c4l zhJc87OA==; 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 1hgNF4-0006QN-4m; Thu, 27 Jun 2019 05:46:42 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgNDf-00055n-GT for hostap@lists.infradead.org; Thu, 27 Jun 2019 05:45:16 +0000 Received: by mail-pf1-x443.google.com with SMTP id t16so619641pfe.11 for ; Wed, 26 Jun 2019 22:45:15 -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=tduyr3wFhFVrmqxiUfBYrpPyI+of9m3Ql6pr/UU+d0U=; b=LMkVC85woPMI8xJnOtVspen4ibFzB5QOezBqcMiVOFDjPr1EXkyM9XkYx9YVEI9AAk 56gRHsXtIoYhAAJ0K/KQHIygmYo4oe4Fb7mpPn3SVAdTxBX4cK9K/fYm/9VXhBMjJMVO fVg/6u9MmYl0Z0jfgdbuMA8oG/ziy0fCmybo/e1P4v0jRJdDUcOXlNd+9AQRY+9Wp1ot jYXtAJnsZj+6p6ZkPlOmRpZLo3RH6WWoy035plwHUdEt8GqKd7IY5KiLBj91J1TO7hXA 735rpF3u+ZPmW7/VdxP8v6tHnbok6JcO7bfiPw4cOo5MnbTzzlUcJ2Aci7IlpzrFcRwY vceA== 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=tduyr3wFhFVrmqxiUfBYrpPyI+of9m3Ql6pr/UU+d0U=; b=cW/3naYskCYokauxzsxKomVOoXu4+VaEwUoAAzBLFr6g7D1RyWdVzSpYTXd8tU6FTM cfvLAnbvGq7h2ZeFNW/p9LgXASL4WvwUNapBddLnI1HUrdrQ6g8SGISMU6LGsBXuOlP/ BzLq1CqGmJwaa5ZJXI8oi71hUYhZeutzcyz7wTZQTJV3OJ9ztQmlHUpf8gzzTVajNC2Q 83+4dhRVtATLNjq58eQUmvmGD38vDgHNewrnLZgXCUHHXrFHoDSte/yHbLgG+DtPqry5 ikxxhRDB/9yoteWxOPrucAgRBSp50A2+ecbnd9efN/deO18f10uSO7BkzG4GzpFhs5Jh ++Kw== X-Gm-Message-State: APjAAAXnm452QinKR5CS98JOca5gudzbpAXfMYDovF4n04bdupczp0Em rB6Bg0sPuNB7s5f/ucJo2z6zF1h4 X-Google-Smtp-Source: APXvYqz4qWB3tGvjeYh9faujnuIfWr6+UreC14MoFZBAx6Ki13UkYa0/OSeJMdxZrzQeWLAMKXkBMw== X-Received: by 2002:a63:c60:: with SMTP id 32mr2012444pgm.42.1561614314188; Wed, 26 Jun 2019 22:45:14 -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.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 22:45:13 -0700 (PDT) From: Masashi Honma To: hostap@lists.infradead.org Subject: [PATCH 8/9] tests: Fix wep_ht_vht false negative by using common finalizer wep_ht_vht fails with this message. Date: Thu, 27 Jun 2019 14:44:51 +0900 Message-Id: <20190627054452.6547-8-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_224515_737009_84762DCD X-CRM114-Status: UNSURE ( 9.38 ) 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:443 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 SE 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_wep.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/hwsim/test_wep.py b/tests/hwsim/test_wep.py index 318018460..d6af730ae 100644 --- a/tests/hwsim/test_wep.py +++ b/tests/hwsim/test_wep.py @@ -11,6 +11,7 @@ import subprocess from remotehost import remote_compatible import hostapd import hwsim_utils +from utils import clear_regdom @remote_compatible def test_wep_open_auth(dev, apdev): @@ -119,10 +120,7 @@ def test_wep_ht_vht(dev, apdev): raise Exception("Unexpected STATUS secondary_channel value") finally: dev[0].request("DISCONNECT") - if hapd: - hapd.request("DISABLE") - subprocess.call(['iw', 'reg', 'set', '00']) - dev[0].flush_scan_cache() + clear_regdom(hapd, dev) def test_wep_ifdown(dev, apdev): """AP with WEP and external ifconfig down"""