Message ID | 20220511204931.25069-11-quic_alokad@quicinc.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=VSTUqo8+; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcdkim header.b=xmYD06sM; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kz6Xf5gZBz9sFs for <incoming@patchwork.ozlabs.org>; Thu, 12 May 2022 06:52:02 +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=9/C3lq6RUrwx7uc0DATfUfBgfcU0yMrcBDXMpuLZ5Fw=; b=VSTUqo8+5yi+Xw gvQr6HFlUO0M7L4gjMe0zRZ3/DzghA2EPkDtbehrFEIpMtqnRFkXtwPyIgw3AQHvhQfIW8KyerVvg g9ue61W7IwvfGKlZrzvfM82h4lIPGLDKbgQT3FRxSNduSdmRAIFRgKh/26y0943JKrfkPpx/6GTLh lZK2Pc4pscpvDSAhlD5fxxyDqErObPSZQspFOzsByzeZCcasS1D703HH+wXIHqz/46xx3+kkB/eji mvGRWf/X+O04/DSwctCTOyQRsf3kvTleuEGHnWXTwQvQOSTUVsEwx+D1gA1LoQJe3ik7V4jqjF+7n J5GwNWeJJmZ7NbCxM7WA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1notIk-008a7o-49; Wed, 11 May 2022 20:51:18 +0000 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1notHH-008ZZA-8U for hostap@lists.infradead.org; Wed, 11 May 2022 20:49:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1652302187; x=1683838187; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=v2TFFmVPWO28WgODfWiZROnM4bM+ZEY1UUUiBvDFaSQ=; b=xmYD06sMSU4fpHQR5jqXR0aJcInyhEJLqE/hWYcVumdiIddNF8k8XHzE EBeG6oX58yQD2TjOO2tRaab4u4VtFOisyXS8bzkQevB53b7XcA7Rh+On+ JGcu1QaC33B5UkzaObpWtFmBvLbSpI2FdEdgWnJ2qV6uUhsI4tdETEiuD 4=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 11 May 2022 13:49:46 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2022 13:49:46 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 11 May 2022 13:49:46 -0700 Received: from alokad-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 11 May 2022 13:49:46 -0700 From: Aloka Dixit <quic_alokad@quicinc.com> To: <hostap@lists.infradead.org>, <j@w1.fi> CC: John Crispin <john@phrozen.org>, Aloka Dixit <quic_alokad@quicinc.com> Subject: [PATCH v2 10/11] mbssid: make the AID space shared Date: Wed, 11 May 2022 13:49:30 -0700 Message-ID: <20220511204931.25069-11-quic_alokad@quicinc.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220511204931.25069-1-quic_alokad@quicinc.com> References: <20220511204931.25069-1-quic_alokad@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220511_134947_389466_A9BA3CD4 X-CRM114-Status: GOOD ( 10.79 ) X-Spam-Score: -2.5 (--) 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: John Crispin <john@phrozen.org> As described in IEEE Std 802.11-2020 11.1.3.8 Multiple BSSID procedure, set the lowest AID value assigned to any client equal to 2^n, where n is the maximum BSSID indicator of the MBSSID set. Content analysis details: (-2.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [199.106.114.39 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO 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 X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
hostapd: MBSSID and EMA support
|
expand
|
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index bcdd032e15bf..486dc9dbb7fd 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -4014,7 +4014,10 @@ int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta) } if (j == 32) return -1; - aid = i * 32 + j + 1; + aid = i * 32 + j; + + aid += (1 << hostapd_max_bssid_indicator(hapd)); + if (aid > 2007) return -1;