From patchwork Thu Mar 28 13:07:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 1917338 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Q8CVBlTg; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=RoeSLvYG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V53jk1MlVz1yYk for ; Fri, 29 Mar 2024 00:07:38 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=u9g/3pPSOYaUqA5Y+R/7iTBRjTtu+y1gznprGmBMIrM=; b=Q8CVBlTgL24lW9 L0aPT+EnoEsNqD0hjIvHW84ziF8yhkIYcHFm5WmAloZu8vNUUmy/zyJAfren9egtZqpV1rE6gUd0C iMF0ZkV31TPbg4Clq/nHzJPt8g+CBSXwFIXAbmeOtqiHbKK+ZEpsjX6Nk0tj+PvMqtEpU+fdVOlV0 SYHP1QjH0/uLOxEDCbjt1+Zs8PyvqYT+zX04LBW/ZixCtz63OBdEmJj86BZeqDB3m6ziABJpTgJGw OnQRqtsFO5logBCNRXrmeR2rhp0W3QTzl2wq6gInOhHn0iwSQ55sgLzO8yViVVXJgLs6b5IgYjnCb /6kXIYo8YM2I6aWLNEQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rppTK-0000000E2bw-2GaF; Thu, 28 Mar 2024 13:07:10 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:242:246e::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rppTF-0000000E2YY-1HX2 for hostap@lists.infradead.org; Thu, 28 Mar 2024 13:07:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=37dB2TzzAV4icOmOcf5h19+tCDlGKquZeRNW2f7FTcE=; t=1711631223; x=1712840823; b=RoeSLvYG0oVcFPuQKfl7zVo0jxnYan9g+gW2lEtcjU4z+w5 Dd/D03yDM1DimQF99h+etiELlKVz0BIGzDfx0kLMY03idJ91VxGFs9qEcd632pcbW67hiezPAaW67 RakpZReCXcWeZ6z6uKisHkUW4AVA7039Sq1IwpRSED+Z2IDFJ03QCF5bl2WrJ74p3w37GsDYLj2KH nplmBuSCcRvLcvZe6JAQAapISZcnnnMzwPONW7YvE+vnYPkionqvGxXFcuRAb3y0gvgomoIs7QZ7b YZ2VFI2hroK5F2Uo8VMsyfLs0o1RPYc+EiHTHHLY80D8Gsm77RBPUZ3MagfVVYbg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rppTB-00000000zBF-2nYR; Thu, 28 Mar 2024 14:07:01 +0100 From: Johannes Berg To: hostap@lists.infradead.org Cc: Johannes Berg Subject: [PATCH 3/3] tests: add test with stuck ECSA in probe response Date: Thu, 28 Mar 2024 14:07:00 +0100 Message-ID: <20240328140657.718acf749bd7.Ia51d8220c59936191138d7aab0366c749ed37fdb@changeid> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240328140657.c09d8b9b6542.I8fda4243e4210c203472f3d40953575428fbdd04@changeid> References: <20240328140657.c09d8b9b6542.I8fda4243e4210c203472f3d40953575428fbdd04@changeid> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_060705_435052_2BDCD379 X-CRM114-Status: UNSURE ( 8.41 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Johannes Berg Add a test behaving like an Asus RT-AC53 with firmware 3.0.0.4.380_10760-g21a5898, which (in some cases?) can have an ECSA element stuck in the probe response, when the channel switch is long finished [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -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_EF Message has a valid DKIM or DK signature from envelope-from domain -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.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Johannes Berg Add a test behaving like an Asus RT-AC53 with firmware 3.0.0.4.380_10760-g21a5898, which (in some cases?) can have an ECSA element stuck in the probe response, when the channel switch is long finished. Signed-off-by: Johannes Berg --- tests/hwsim/test_ap_csa.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/hwsim/test_ap_csa.py b/tests/hwsim/test_ap_csa.py index f05eaf1d7ecd..a8a4ef61a040 100644 --- a/tests/hwsim/test_ap_csa.py +++ b/tests/hwsim/test_ap_csa.py @@ -256,3 +256,17 @@ def test_assoc_while_csa_diff_blocktx(dev, apdev): def test_assoc_while_csa_diff(dev, apdev): "Check we don't associate while AP is doing CSA (different channel)" _assoc_while_csa(dev, apdev, 5200, False) + +def test_ap_stuck_ecsa(dev, apdev): + """Test behaving like an Asus RT-AC53, firmware 3.0.0.4.380_10760-g21a5898, + which has stuck ECSA element in the probe response.""" + try: + ap = connect(dev[0], apdev, scan_freq=None, + hw_mode='a', channel='36', + country_code='FI', + presp_elements="3c0401732409") + ap.wait_sta() + hwsim_utils.test_connectivity(dev[0], ap) + finally: + dev[0].request("DISCONNECT") + clear_regdom(ap, dev)