From patchwork Mon May 22 19:33:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Otcheretianski X-Patchwork-Id: 1784638 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=M1glsQeB; 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=HACrzcoq; 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 4QQ7320mj5z20fD for ; Tue, 23 May 2023 05:35:40 +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=ieps+KtLuigxoWn1Yhp/UIjhk3o1NkXTzfuVBHroJFY=; b=M1glsQeBn7TC6D 4dNf48pLelVx3zUXrb406w2Z7+TJvhgeA6ii2vSgj/txeF+Ou3vH3RIMERAOYM4ETegDkpUwff675 FrhretG7aL25nibIzEIBnGJMmeffjKtZ2LNVAmRc6wG06OtgJ7jrQaRaZaAcs1eQKuiDoSk100Y9q 3bC91dcvsX9Woy6ldjPRrtcKoWLSWgp87crQGxNVGYWGEMoMwEVPkqQNzg0ju1vDvXck33p1wQmJ4 vcdN2sY5pgFl4vjZoP/EU8nvGA7RmxU3LZTuQZOTVnj97m/xJ5ypHrFyO1TLgR1lSJaCPhNoEnUp7 E2tEvAMP4jtiIiUcNc/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1BIw-007hXL-0z; Mon, 22 May 2023 19:34:50 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BIr-007hU2-2x for hostap@lists.infradead.org; Mon, 22 May 2023 19:34:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684784085; x=1716320085; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2tOEYH6X2bETOP61qKnLdYFwDVdAD4dTyezGOgGnifU=; b=HACrzcoqJsEbmAmYweOFXnGeWgqeSA+PiOIGZTfI8JqtiOLPYYk0CSZD nHLZEN7BjxIqcTMYNRjZNBpPRwebnjelbyLLq/UXYY99F+4RvoPhnvg9u imKaBvSsSiMUZLdHeU08Jqof3qDrsI52MCx2VpJ9XyVlRlEfJcRQAg4jX /3JcDLXWv8hcnDDmhw7SpU7MlSPz1QWBukczTlT4Zi/cxQdPaTCBjRe4A aNtXHKR2JeZO+DoRNh5P0tkjA0ijBAjbdnhzHFfyv/W6TPoDm89M8pxiW qjAWaTHOj64PHdSFr8uKmRUL9opPXlWV293W/UCJNxk0Zwapt8i7gqt+Y Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="351869088" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="351869088" 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:34:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="827809085" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="827809085" 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:34:44 -0700 From: Andrei Otcheretianski To: hostap@lists.infradead.org Cc: Andrei Otcheretianski Subject: [PATCH v2 04/44] AP: Add some basic MLD configuration options Date: Mon, 22 May 2023 22:33:32 +0300 Message-Id: <20230522193412.658666-5-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_123445_959687_01AAC6C1 X-CRM114-Status: GOOD ( 11.46 ) 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: Signed-off-by: Andrei Otcheretianski --- hostapd/config_file.c | 4 ++++ src/ap/ap_config.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 8e179d1519..7e05a17c36 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -4770,6 +4770,10 @@ static int hostapd_config_ [...] 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 Signed-off-by: Andrei Otcheretianski --- hostapd/config_file.c | 4 ++++ src/ap/ap_config.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 8e179d1519..7e05a17c36 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -4770,6 +4770,10 @@ static int hostapd_config_fill(struct hostapd_config *conf, return 1; } conf->punct_acs_threshold = val; + } else if (os_strcmp(buf, "mld_ap") == 0) { + bss->mld_ap = !!atoi(pos); + } else if (os_strcmp(buf, "mld_id") == 0) { + bss->mld_id = atoi(pos); #endif /* CONFIG_IEEE80211BE */ } else { wpa_printf(MSG_ERROR, diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 8598602b16..4e84a2503b 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -934,6 +934,14 @@ struct hostapd_bss_config { u8 rnr; char *config_id; bool xrates_supported; + +#ifdef CONFIG_IEEE80211BE + /* The AP is part of an MLD AP */ + u8 mld_ap; + + /* The MLD ID to which the MLD AP is affiliated with */ + u8 mld_id; +#endif /* CONFIG_IEEE80211BE */ }; /**