From patchwork Mon May 22 19:34:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Otcheretianski X-Patchwork-Id: 1784692 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=) 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=jJVLixuK; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gNg6Trsx; dkim-atps=neutral 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QQ8jM3mzpz20dy for ; Tue, 23 May 2023 06:50:30 +1000 (AEST) 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=nDWcqINckMChy5rSUSS58+K7p1J/EovsvLODDsq2dFA=; b=jJVLixuKGuJlHc w7kMWFQBAtCX1lccvfPYku7KPqi5+15SC97n0nTx6T67lb+HMG4fGWVI3TJ3/7DBuC9dsgP81yQSk c7zkap9yGVow4VXuxMnPN4kNTr8r2vcliT2Ch720sOB8cRVNUHA053I0b0V++pK5kn9iFK0/unv05 Or8hY343NuN/Wk+xiohh448nqsok9gTGhgnO5RHOMqvDE4gty80txr5wAUhwWmG9y1Ms+Brsn62zK O3muJrgh4cP0Wn7I7q5PgSldig/wWmhhqwv3P5zrOTejNpYaTbt8Nhjdh4cah9qjAM/FCqeCL9UeG hVPVteVi2brUHR5cA1lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1CTi-007y98-1V; Mon, 22 May 2023 20:50:02 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BJj-007iDo-2q for hostap@lists.infradead.org; Mon, 22 May 2023 19:35:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684784139; x=1716320139; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rPvg+b6dkogg9/mWfSdU+mOCwqeiDdcFqU3Ic6s1H58=; b=gNg6TrsxM0C/jiJDh+EBOIVMqUbYYULGPC3fZ8xXTMqfz6iHRUPCUMlW NsjfAwq3mC36xttLPi2f8pxl6yNrt04sDd/h8whMyjk3INNn7nVOsP9+q yz0qdVF7BHRChGOsfFSe4UQgKuRRKgQNVsHTUbbfMkLRw2gTyKcG8RDiQ 56IwWlj+4nQLfAGV7DO3p4r66k7dwD0RyhLWn1NotW30YmTfZpEwAlnKe dvRqEXepEDHKA04BUP1gW54zyRsq9e9XfSt77CQuaNrE46/EfBxDYnsEY KrK7amXEMGgoDo+TSI2gsE9iAw2AQpozNpIom+cTCCcDUfiqOEWgVtXfN A==; X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="351869363" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="351869363" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 12:35:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="827809462" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="827809462" Received: from ghorst-mobl3.ger.corp.intel.com (HELO aotchere-desk.intel.com) ([10.254.149.56]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 12:35:38 -0700 From: Andrei Otcheretianski To: hostap@lists.infradead.org Cc: Andrei Otcheretianski Subject: [PATCH v2 41/44] AP: Use MLD address for traffic tests Date: Mon, 22 May 2023 22:34:09 +0300 Message-Id: <20230522193412.658666-42-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230522193412.658666-1-andrei.otcheretianski@intel.com> References: <20230522193412.658666-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-20230522_123539_977496_78C9DA11 X-CRM114-Status: GOOD ( 10.42 ) X-Spam-Score: -2.7 (--) 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: In case of MLD use the MLD address. Signed-off-by: Andrei Otcheretianski --- hostapd/ctrl_iface.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index b5a1c8a5d6..f90eb22c45 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -1836,6 +1836,7 @@ static int hostapd_ctrl_iface_d [...] Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [192.55.52.120 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender 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 In case of MLD use the MLD address. Signed-off-by: Andrei Otcheretianski --- hostapd/ctrl_iface.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index b5a1c8a5d6..f90eb22c45 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -1836,6 +1836,7 @@ static int hostapd_ctrl_iface_data_test_config(struct hostapd_data *hapd, int enabled = atoi(cmd); char *pos; const char *ifname; + const u8 *addr = hapd->own_addr; if (!enabled) { if (hapd->l2_test) { @@ -1856,7 +1857,11 @@ static int hostapd_ctrl_iface_data_test_config(struct hostapd_data *hapd, else ifname = hapd->conf->iface; - hapd->l2_test = l2_packet_init(ifname, hapd->own_addr, +#ifdef CONFIG_IEEE80211BE + if (hapd->conf->mld_ap) + addr = hapd->mld_addr; +#endif /* CONFIG_IEEE80211BE */ + hapd->l2_test = l2_packet_init(ifname, addr, ETHERTYPE_IP, hostapd_data_test_rx, hapd, 1); if (hapd->l2_test == NULL)