Message ID | 20221201031847.26480-11-quic_alokad@quicinc.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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=<UNKNOWN>) 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=GqbGH239; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=P2gVWsNH; 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 4NN1Xm2bcfz23pF for <incoming@patchwork.ozlabs.org>; Thu, 1 Dec 2022 14:20:08 +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:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K28uAbIfMsYoeyghxTv60/OBFdHwcWh+IlUYtB4WEao=; b=GqbGH239x4tfxj tX8kdN7qNKPEGihYAeTtMJ3Q2Dy67nssTV0XMoZug5KS8ibv91MHv7uajYPExZDSu30NIdKoq1EgA HiEVfH8E6D3r8Sx1OyssjnEkPymey037dDwUjdWmKYIU+/NvJvmX/XiU7I6LW9ylFDqRaJc66N17k hO/JyGI4W8SvxizaUdFe/Uqu5r481qvAB6eKzpXt3/t8CDyzTMkV17WyNvypV9oP9yrI9LsMmzILN uE3WKJapiiS58yFAzu2ytdtcOE6cYNG3QVZa6hRWISPE5avwGkhQ6OuEFEyZjgdCJQlk8iMxP+0h/ AKc9CRZpQrPK/sMf0yVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0a6l-004ANZ-AB; Thu, 01 Dec 2022 03:19:31 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0a6P-004AER-CF for hostap@lists.infradead.org; Thu, 01 Dec 2022 03:19:12 +0000 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B12c0BY011977; Thu, 1 Dec 2022 03:19:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=45IqblMroI4WSXLSUUxCP+DrDpHLr2RLpCRKbThmYCM=; b=P2gVWsNH1R513abHtEcKUuWPcW2wkH6LVxlohhOTPkJOdjwAMIt53YdUifJnST6qIsc3 A/XTOVQOiM2XU3onVF0T2O9St89mvQPrs9x9CVWHe9NyeZe/+Cvi7WY2kN+rTXCaO+wL CnLS95GQesWpEViVOytIoIr2W30jAEj8NvDVrCnIQinFihgV/2RSzt1Mpqfz+S5b+Y4m FZYW9q45NSdyywrXNWKW/tCY5zic5AEUJpeYqV4Yv+4izrG1HcxYmBGa9gEuC427zQXl as1Yo7WzytOVQ8Nl/N6eId/TE/fuGrT8GmKuyj14v6tKPSlM5zYsPMrN4BI2Ngynj1lk iw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3m6kgmg39s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Dec 2022 03:19:08 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2B13J7Nt024772 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Dec 2022 03:19:07 GMT Received: from alokad-linux.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 30 Nov 2022 19:19:07 -0800 From: Aloka Dixit <quic_alokad@quicinc.com> To: <hostap@lists.infradead.org>, <j@w1.fi> Subject: [PATCH v4 10/15] mbssid: make the AID space shared Date: Wed, 30 Nov 2022 19:18:42 -0800 Message-ID: <20221201031847.26480-11-quic_alokad@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221201031847.26480-1-quic_alokad@quicinc.com> References: <20221201031847.26480-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 nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: RFh-qYoM6i-jgQd3iFDOAQC9u87fvknS X-Proofpoint-GUID: RFh-qYoM6i-jgQd3iFDOAQC9u87fvknS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-01_02,2022-11-30_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 spamscore=0 impostorscore=0 phishscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=763 malwarescore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212010018 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221130_191909_558154_466B1413 X-CRM114-Status: GOOD ( 16.03 ) 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: 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. Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com> Co-developed-by: John Crispin <john@phrozen.org> Signed-off-by: John Crispin <john@phrozen.org> --- src/ap/ieee802_11.c | 5 ++++- 1 file changed, 4 [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -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 |
v4: MBSSID and EMA support
|
expand
|
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 55175dc6dc5c..44c5e8062055 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -3159,7 +3159,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;