From patchwork Sun Jun 28 23:23:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 1318683 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=3e0mTs5X; 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=bQiar4YK; 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 49w6Cz0NqVz9sSF for ; Mon, 29 Jun 2020 09:25:02 +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=rzUYqYBJp23deUXO3wH0337LtTjBAdqc9utK6EWz5Ok=; b=3e0mTs5XJRBuJQzcIWRnxTz3X Da8M9a4ieerz42yHfQG/Mpjpe0r9uTfpVS2pkkMoerA0i6nR2XJNbgS57EWF48jaBAnUxZz5tK408 21wSQg+X5BRwCf/SvX7HTQnsAoLUHdDiSse8SJZKEUv+SnclAmfwU5YHVcUHQZcWWrZ4sS+QENCNj wOCFVUHN9gMy7CH8qa2TK5DhI2vNv/hMIsFsgK7bzS1FcB62m1is8E7tPnNodAXoaBMnYtWUskVWU EWdd4h8ttcpMEitUt01w6+ps+MUNw2Z8aYBJ53blyof6XnFR7HZkk4m84NozPYQOMAc1cod3Fcg88 fpu6QHBiw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpge7-0000qY-BJ; Sun, 28 Jun 2020 23:23:35 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpge1-0000pA-Iq for hostap@lists.infradead.org; Sun, 28 Jun 2020 23:23:31 +0000 Received: by mail-pj1-x1043.google.com with SMTP id u8so6951076pje.4 for ; Sun, 28 Jun 2020 16:23:29 -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=/NCwRCsQizwesji2qI5ziF82AVj/FUj1KOQSiPNuayI=; b=bQiar4YKifD7M9CFs6f3lWAUI9ojCY1cXplnYGAkDlqS8WgMDa2sCOgA2loIzTBn5w 3FxsnKgYiRTTFAnoq2oMTu9V1Xp4MRdxHLMM4k+l8Dg/HuDA4xz7fh/Ddeg6HzXcSBIa Ku71KW6ZMm2RjgiAcxxrBCua/CclPPfFXLUWMnFR6rPkL97PLH3ci+R0Oqs7hzoNFrri 83xaIGWpJeEPufwAkCuwHPgsNkZsoNmqB7rGIbmhBCqgiZM9Q+ZVP8xP6wBzMVDnF8lC D35dIppRGSTPdX0oGRR+8qPJ2M/pieLZPGUoGv5RL3vwgGLXixwusOdASGxjHkM4lVJc d/dQ== 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=/NCwRCsQizwesji2qI5ziF82AVj/FUj1KOQSiPNuayI=; b=MamBOIZTezlWpG5a4Jam4khKU/oYtP9Ff4vbDopZMJjO17HkVmcNEKflsdmFYaYgy/ ZXwiunj14+Xzby8qvKklYx12cS/Z4JjkdNw8p6PrertFKN/kZ/ybygvMerXzg340JZRT CN6HhIGBsOZ9fZy2E0hDL4CZOZ3IEOvndR/mvWjtYMh5+Uv/wWzTGcBNKVxgVpHguNsm A5pjUHiGduMxYORosElyUXj46q+tPMPyYij3gcEaozskf8N/akoBJOPbuSzzM29bu6YY NE4prj5rqx+fvTsEhZVGMUouliu1a6S1bPjrTvDK6iQ87wAR65smqJV7SiZjwXnENS5p h+PA== X-Gm-Message-State: AOAM530eM0AHLsIan7ps/+8O/5the6dHvENbiyEAzaU1qViCGm3d7PM9 uLysb9kDKSazg1cPljmmndRxD1gk5G8= X-Google-Smtp-Source: ABdhPJwkUVCXAmGK23L+8UG73GEbZtzy0uwhxbIeCBWJqF8vP6+DnuwfLtanRB+qo2/O1ivgz1a/zw== X-Received: by 2002:a17:902:9042:: with SMTP id w2mr11663473plz.9.1593386607743; Sun, 28 Jun 2020 16:23:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 16:23:27 -0700 (PDT) From: Masashi Honma To: hostap@lists.infradead.org Subject: [PATCH 7/7] tests: Fix mesh_open_vht_160 false negative by using common finalizer Date: Mon, 29 Jun 2020 08:23:07 +0900 Message-Id: <20200628232307.72125-7-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:1043 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 mesh_open_vht_160 fails with this message. --------------- wlan0: Country code not reset back to 00: is ZA 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 b10a5d1f5..64e3cc66d 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -1165,11 +1165,7 @@ def test_mesh_open_vht_160(dev, apdev): try: _test_mesh_open_vht_160(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_mesh_open_vht_160(dev, apdev): check_mesh_support(dev[0])