From patchwork Thu Jan 21 15:40:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Otcheretianski X-Patchwork-Id: 1429925 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; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=p+rzJ1lE; 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 4DM68d3xgHz9sVX for ; Fri, 22 Jan 2021 02:42:25 +1100 (AEDT) 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=5FGyhUw70JGrmwvieLuTDvV9X2gz8cVpxh7zJEXqYAA=; b=p+rzJ1lEIq8BgS2na3VtRJVfQ 3QWABftEksF/9c8mUAD9AA2UIH12UayaSaTbMi9FLUmyUsVTLjRpvt4qjp38bP/jVslOT60JyZMpb wga4g7t7jLNxRRiEU5boXiriM+WrJugwFB/9sIVlRsIeJ/lJHhdbJ+K1UullPAp2tUXGmUK4R+m7S 9FRmV+WOUZQUkPuDli6zdXB86RM9a6lnnQNfkU4BZZnEAkKD91s4tiaRcx/15Y5YR+dlnPCbUkrZt PmXTzDUnuuSqWzykcrOHHeBKy8lBRvSqkwDMb8DuV12XTiwKG5G1wa4bizv4z+jhbA1eiAGbD9p6z ZbVWVxyqw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2c5T-0000MD-JU; Thu, 21 Jan 2021 15:41:31 +0000 Received: from mga05.intel.com ([192.55.52.43]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2c5Q-0000FU-Er for hostap@lists.infradead.org; Thu, 21 Jan 2021 15:41:29 +0000 IronPort-SDR: MvcD0v8RaN7X9fUeed7zuYLOwTG9GiEy8cCbxWY+x9C/pPzvFUpUZoi5AECWvEQ7wHgg4f8Nrz g6cAPjcv00iw== X-IronPort-AV: E=McAfee;i="6000,8403,9870"; a="264104167" X-IronPort-AV: E=Sophos;i="5.79,364,1602572400"; d="scan'208";a="264104167" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 07:41:27 -0800 IronPort-SDR: FsgmCT0kB9pJAGL9zzXmP+0uNIHPyvKDz5VzhBoUJx39iFfrvtTFCUn4TA+ONLmhES+Xf+Jewr /RP9iQPcg/zA== X-IronPort-AV: E=Sophos;i="5.79,364,1602572400"; d="scan'208";a="385350167" Received: from ramilaux-mobl2.ger.corp.intel.com (HELO aotchere-desk.ger.corp.intel.com) ([10.214.246.158]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 07:41:26 -0800 From: Andrei Otcheretianski To: hostap@lists.infradead.org Subject: [PATCH] tests: Fix sporadic failures in p2p_channel_avoid3 Date: Thu, 21 Jan 2021 17:40:36 +0200 Message-Id: <20210121154037.32654-5-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210121154037.32654-1-andrei.otcheretianski@intel.com> References: <20210121154037.32654-1-andrei.otcheretianski@intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210121_104128_630691_1F9D5E3C X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [192.55.52.43 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 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: Andrei Otcheretianski Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The p2p group may be originally formated on UNII-3, so disabling UNII-1 and UNII-2 will not result in a channel switch failing the test. Fix this by setting 44 as a preferred channel. Signed-off-by: Andrei Otcheretianski --- tests/hwsim/test_p2p_channel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index 7bbc958b9f..8923ca17c2 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -226,6 +226,7 @@ def test_p2p_channel_avoid2(dev): def test_p2p_channel_avoid3(dev): """P2P and avoid frequencies driver event on 5 GHz""" try: + dev[0].global_request("SET p2p_pref_chan 128:44") set_country("CN", dev[0]) form(dev[0], dev[1]) set_country("CN", dev[0]) @@ -251,6 +252,7 @@ def test_p2p_channel_avoid3(dev): finally: set_country("00") dev[0].request("DRIVER_EVENT AVOID_FREQUENCIES") + dev[0].global_request("SET p2p_pref_chan ") dev[1].flush_scan_cache() @remote_compatible