From patchwork Sun Jun 28 23:23:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 1318687 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=2001:8b0:10b:1231::1; helo=merlin.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.a=rsa-sha256 header.s=merlin.20170209 header.b=FnSQjtvv; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Ugbcianu; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 49w6D06SSXz9sSd for ; Mon, 29 Jun 2020 09:25:04 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=FEZ/BIQAAuxScDKft9CGSxnrnm8g9vDxVOsEEsmoOHI=; b=FnSQjtvv7mFeX5GFhLOUJrvfz 7uiPo5jOGgQJ64uDRwsC3YSPu5d/iNTtPG/rv3x66j99kPICWE6Cu4SMPNjACnq0ftW066KFtckQK E5Zuzu3VOQJabz0lo7NDkl093pRDB4vsjBcgQOSkZwRIoEBvFmtqLViQIRC8UPLnmh/QptNSwUc88 pjdl0wcW2INX2CJ56qdOYXe3ceO8OVHo4JFUT/Lhae7HkvAHlgkW/9fiqW4QHeV/dWXVLQ2DsAXt2 8980cTiIYuwYJfR9anJ7i/tIwOY/qt/7UNFYTVhbgmGQ8P4NjfHrrHlN6jWlp+L+z2+q0al4flS2L 1R/oauY+g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpge5-0000qA-L5; Sun, 28 Jun 2020 23:23:33 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpge1-0000p1-Ds for hostap@lists.infradead.org; Sun, 28 Jun 2020 23:23:30 +0000 Received: by mail-pg1-x543.google.com with SMTP id w2so6656351pgg.10 for ; Sun, 28 Jun 2020 16:23:28 -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 :mime-version:content-transfer-encoding; bh=VdrkOLLHotJNCeBB5uMbjsOx1lUqccCA1A0bhwA3f24=; b=Ugbcianul0f2DxWjYkB7GNYiAlE8oBbWTLnhazEeA272WAfkwrOfKUuOwMrTtkDmO3 Hm+ZG6WexIvDIaaiWsTKKjDlz22/t5MjtScXwHMWaXw30Ag3MJBQJTRbqPRS/Ybfo75s Ub2gyM4ySKXS1CQV2NkyJUtEKbP5F4lMyGaej1Y/32roCmEHQeb1aaM9kZ2/y77D4V4R FonOAYIowA2dizPRJVeVuKqjWSuQ1AqLvK/5OUgUntGjAeVU8KY6MvSusGtIpIHsl/zT ngKieXaCwOYixQH961hwBYy+XWrwwNCCNQ3hrrE1QubXK4rZntRf5ht1AdJszl6/k0QR abJA== 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:mime-version:content-transfer-encoding; bh=VdrkOLLHotJNCeBB5uMbjsOx1lUqccCA1A0bhwA3f24=; b=AFUYjKhVbl0NPNqPwsGVfTleI2hXWGdMfyV9QPD84tONNV95oqbIS3odn06KVR0r+i MkgizqUJTxPy4tA2zmA9ki/vxaGKBXyIJXf4fbyMRHVy0fYFh4tVTR7fqvAgpQhgqbzA TgAcNKPqUAi9bUfc+61SCx64IRW8XC0x5g5aFcp+Wr46/FOk08MryglpQPGF4VIdbiQ8 jju3G/cxm0mwYmSfp97YozRaUEpocMDM3Ur8uQobg7GaWleAh/9i8Jv+w053hfBnErvW +d87AsMfK07mZxxpuFkhNJFbxutddQdJC+lB0iU8Wl+df1ZmMXGF/2tINdca4jzm3aVH lBgg== X-Gm-Message-State: AOAM531UxIDxd+Yu3QDPbrSqtHp5G8VV/ymasqYE9xAISpZrgIiRtkPw gCw7Z5Hbq8YrSrvNeI7w74UV/VfgJD8= X-Google-Smtp-Source: ABdhPJyFa1KPXOHtBg09/+aCaNdJCC5lvdh5yM4alfNPkyDPRG5FloICQwCl9ZWUfm+vz2+wk/oeZQ== X-Received: by 2002:a63:f91d:: with SMTP id h29mr7913796pgi.185.1593386606421; Sun, 28 Jun 2020 16:23:26 -0700 (PDT) Received: from gtx1060.flets-east.jp ([2409:11:53c0:1f00:b1e8:576a:9ea0:de64]) by smtp.gmail.com with ESMTPSA id k100sm10053889pjb.57.2020.06.28.16.23.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 16:23:26 -0700 (PDT) From: Masashi Honma To: hostap@lists.infradead.org Subject: [PATCH 6/7] tests: Fix wpas_mesh_open_vht_80p80 false negative by using common finalizer Date: Mon, 29 Jun 2020 08:23:06 +0900 Message-Id: <20200628232307.72125-6-masashi.honma@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200628232307.72125-1-masashi.honma@gmail.com> References: <20200628232307.72125-1-masashi.honma@gmail.com> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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:543 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [masashi.honma[at]gmail.com] -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 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 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org wpas_mesh_open_vht_80p80 fails with this message. --------------- wlan0: Country code not reset back to 00: is US wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma --- tests/hwsim/test_wpas_mesh.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index 78b0b33cb..b10a5d1f5 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -1121,11 +1121,7 @@ def test_wpas_mesh_open_vht_80p80(dev, apdev): try: _test_wpas_mesh_open_vht_80p80(dev, apdev) finally: - dev[0].request("MESH_GROUP_REMOVE " + dev[0].ifname) - dev[1].request("MESH_GROUP_REMOVE " + dev[1].ifname) - subprocess.call(['iw', 'reg', 'set', '00']) - dev[0].flush_scan_cache() - dev[1].flush_scan_cache() + clear_reg_setting(dev) def _test_wpas_mesh_open_vht_80p80(dev, apdev): check_mesh_support(dev[0])