From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796207323; b=QtfWkvZXjFgRJOIrDRZjEz6fDJQaT46vf8uzXfIz0cOZWzNnCHt1/XCJWq4y3BZiC0CO v/aJZZYSZNnGepbYxSs5b56G8ngGHhuvS39QwFdm5z2w6O/JbMhD1pfgPGuHzJCS0mZ5M aeGciTcYnW8IzrqDAa/8fRLYzwkaUecHzugh6TX7Ki8GjL45pplPnNtGhx/aUqtaDnUzF lsTAQkwOiBifRyc96a4mPisYyz70fbbpGBWDWOzmrjplMJ992VsFlXwc9S8ZM/dNpttpg snaYLxuyWc710NHWp2EwQfZyUaUi5elBZk6mK3DGAtdvMDvJZSAtOBcRu5Qb+rnR9Tw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207323; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=LBWs4Ya9dMaYlnNtqN4JRGKwdI3teHJ/3aVFemrWNCw=; b=Q9uH5H1uTFYFyI4ywPQKd1iZ+2P9nyaO2nvTA9uBJwnMlkJqYwEQrIIcEszFoJQFUD/6 XcxpTqw2YK14f6SM6S453WV8IWZrGyJWvDRYQROxBrqYxsFXyY15S1RoCuV+Jnq8uo1oy ZkZxQCi1pheY9/8yCA7rWPpsdsnUfqmCdVOnnHTE7eL+IGYaojH4L2d/sF2OOXQ5QKw1h Razwrs9ksdSPF/dWr8xSViW58/Lpl/eAHQMZAXVM9UK1jngpKZgiOcw02Z0NvDLCO2LAY UC3B5+vIle15/AGGXX9RvVlQJ84wauGMTC29IXRFQIibUSi9vJhc9d2z6Frb+Klr/Fg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=E1SK24GA; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=cY2eCDFY; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 558A2606A333 for ; Wed, 2 Dec 2026 10:28:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 558A2606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=E1SK24GA; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=cY2eCDFY Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26p7ke2382969 for ; Wed, 2 Dec 2026 10:28:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= LBWs4Ya9dMaYlnNtqN4JRGKwdI3teHJ/3aVFemrWNCw=; b=E1SK24GAyeMiMU4n VaFv5IdlxCGF01m5deYJCfVcEl+2BQfQtlg3Eh518EsYetd9GhyWNkhpBD+cogPf RVWx/7j26FCWfZILZoSk8qDnueYzZ1jiaI3QR5Isw2BLO68YGPjcn5+MPnvoBd8h puUPkpw6S5I6AKIooNeN2dERymEcDM+sqeo3bAE+vs8AfSlF666XzisqCwkJA26T pombHGL65MqjRe82ExAHDVEZ0Mbr1gtmbHn82heyHkKNQl8NAmSRESddCc7CFwr2 4Iw7BkeH0pZPnhc9VYiWOGQjb3wRViXwpdNb9RSvz+Z91GlRM9QWqmqG0xypiti3 DxkTYQ== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja5p9jv72-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 10:28:42 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cdec55db650so3230336a12.0 for ; Wed, 02 Dec 2026 02:28:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796207322; x=1796812122; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=LBWs4Ya9dMaYlnNtqN4JRGKwdI3teHJ/3aVFemrWNCw=; b=cY2eCDFY5Iqup02uf3YmplXOjCix40FvzreGV9nYFcpun3Mr4PID8EDB9wQ6rtD4yc Fk0kAOK0cGdeqvilZ2j9ZcjKm5UdUf4wCqG04wgCF4JcknaHwDmbvKgv9zC0IH4sFMD3 KFziy6gByDQeaQC7rTuTpKUAUJJqgo23LKnxjBCsGNS/OwzcUdJIaxXUQxVa4OI7dKpZ nsGJT5sUoFgY+WP2kSuWAaKD1kCv3TgIva14cFhM+GZMbZHti917HH2IjcisoZi4s70l nEDeEyQamfwZNhBKx4ntUS2Xl+eHKSAe7x4rwigDdCMVsUmKqWYBOm0kxRImz8+xozCz vvrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796207322; x=1796812122; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=LBWs4Ya9dMaYlnNtqN4JRGKwdI3teHJ/3aVFemrWNCw=; b=sp90+u6f/EitBRF/SApPVZ6Pqu+rXZCOSX9J6b/AWw7tEQN/eP3DaUA9EEa+DhxjLl ZofAPHz5s9X+XnHmc+BOeT8W/zu3Q96Z3gcyQzTZPx2zDUYtC6V5YYv80AqMARaBWhz5 gt372ghq7qqiz2ovsRLa7ZFlh4uUTx9A9Y7YRswS1ZmnuQfqYME/UjdXsQWuLT6cJL+E MJj9/h4YHtd3D476lzAexWyarQI1T4IrSwXngYMuwR9+8JytaHXfr7Og8KCdt8Er/C6z Ynw4f6ISJY3YMn+KQBMS3uYSqNmCUsZBT9KWwR0q8UHetRk+rKe0v78Mj+GXb7ILpNb9 R3Pw== X-Forwarded-Encrypted: i=1; AL+hErEP6S1qfsk4WKfWJfGjkFYo4Dq+icZNq7ZNKartT1N+hwcPEbnJVeBSyZqbtCOKwj/Sg+neCQfRWTZFIck=@vger.kernel.org X-Gm-Message-State: APuU4Z+kCpYr7e8Y1UfbSwTxjd+6D6XLHgsQF9QtYq2BXDRoYLrfKtuL NHsF+Y0WBGmOQuzLPBLSHIvcBX8ImKSnwRaJT5Cc5n5q99tJ9VwFlvwjXgvGM9obzHu2o5Ra+tS F758x0b5Vz8NsetrNI+dLzskdVtir6GcdhW/9RAbXL/MIXpC77BQ+4chLWudbo+otLxGXDBfC+Q == X-Gm-Gg: AZFdTZf2oSERejeGP0nC8HcuPahgBVGPByZt+NmnM2UfaOtBzWMOQ9L7a+56I0rHXnS m77dU43RKryIMQLtGp45No1zQ5tq+nXZtg8rRlvgy72beYOH4Zu2FQQVaCEpcVwWNDefW0+ZfV7 tS+P0+ZoMR3Yz/xCy1My/e2PmaU09GJ1KCJW1Zcfxg2e5jaa4t+xfBjQ3dKimcCLlXLvErzMrlb A6/pJMZTncmJmTnnOKZZWS2hCdmH6rvYilx0apCiAwWT7n6C8/FCvX77kpCC9DAPCbNj3drCQu1 ukYARK0dw752vh+RNxXRBBjxuChjarLPHi05yhaMyrKzjuK1MXmq8TazKgn3j+JYf8iTsd51EER ThuAS39JuPOjQqaQByvw28QJH3u6grCrXK51f6EUqEngbmNpjuy5UtkH8F4oeh5zFCS9q3G+UF5 2bc8laI/sxFGOc4ww9ugJNbWWCkBbk51wCSDpatxAPofBksRmaDl0ztIEOQRffab74k9tHrpM= X-Received: by 2002:a05:6a21:7e0d:b0:3fb:2d3e:e61a with SMTP id adf61e73a8af0-4014b5642d5mr34397703637.30.1796207321803; Wed, 02 Dec 2026 02:28:41 -0800 (PST) X-Received: by 2002:a05:6a21:7e0d:b0:3fb:2d3e:e61a with SMTP id adf61e73a8af0-4014b5642d5mr34397676637.30.1796207321257; Wed, 02 Dec 2026 02:28:41 -0800 (PST) Received: from hu-pooventh-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cde6d026d6fsm21699027a12.19.2026.12.02.02.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 02:28:40 -0800 (PST) From: Pooventhiran G Date: Wed, 02 Dec 2026 15:57:59 +0530 Subject: [PATCH wireless-next v5 04/19] wifi: cfg80211: define layouts for ST context transfer X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261202-smd-v5-4-1b020be65c7c@oss.qualcomm.com> References: <20261202-smd-v5-0-1b020be65c7c@oss.qualcomm.com> In-Reply-To: <20261202-smd-v5-0-1b020be65c7c@oss.qualcomm.com> To: Johannes Berg Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, pooventhiran.g@oss.qualcomm.com X-Mailer: b4 0.14.3 X-Authority-Analysis: v=2.4 cv=Ft6QbGrq c=1 sm=1 tr=0 ts=6b0ff2da cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=m87shdfMeKAPlX0oqh4A:9 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA0MSBTYWx0ZWRfX8aKA8VEMF6aF 1/UC+CuaqgKPG/zugXCG8GN/OzBo/Ck9fEQs7A68AGnRGNOqitV8YUfriykY1BNusWHvufk0Gsg ahGTY0Wp9ELJWLuAOFWc7bG5Iy0L++8= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA0MSBTYWx0ZWRfX1r0FsY9lhU2F 6Vyd1Ubq4nEOtOEPP7YEDkWEHX2CS41QHh6bB9hVqYdS5AoZC/YvEMQ7SvBX+t2LsKQtlvZc9C9 5pN9AwVcbRyWTvOGuG50ZYr3ieqpL7RztZrfz1Kz+0kKbboWb3qO1wEfVLjeIIeesnU9lT7iT6y 4G+Dwada4TtrjQf8ICOnS/Sfu5LLddqpNEaX+Z/GUtc5E5IXYP27WzC5+EiMMzk/QGoP1ePdp40 SgkdqJol1bSm323N+xGoA0nJjLxoMpd7HuOnjA+CoMYe1MtwUgs00nB4p5VhmM/Md54QVzJgwPo UZh6lpkF6S1u1aOtwPe9O/VpqucCaQoc92AAiie3mmn/Nyy6nXovWqpM14ni6nSVg8abWDPZk9+ ezngPHQVKN4t51j/+FrvyOkBA0Gw9YavuzxiNrRU48c/+YYEnsQGC2PviF1/eqheWOF8KazgbTI 5hqKnsZlI9CKS4MhSlw== X-Proofpoint-ORIG-GUID: z3c0qwp0btSLXtS9a1YjZTj6JG0pQa2d X-Proofpoint-GUID: z3c0qwp0btSLXtS9a1YjZTj6JG0pQa2d X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 malwarescore=0 adultscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020041 IEEE P802.11bn/D2.0, Aug 2026, subclause 37.16.9, defines the context data to be transported during ST laid out in subclause 37.16. The station's context data is attached to the ST Preparation or Execution Request action frames so that userspace receives the context along with the relevant frame. Define the context data: per-TID sequence numbers (SN) in downlink (DL) and uplink (UL) directions, packet number (PN) in DL, per-TID packet numbers in UL, per-TID BlockAck session parameters in DL and UL, management SN in DL and UL, and management PN in UL. This data is used by drivers to report the context along with the frame SKB. Signed-off-by: Pooventhiran G --- include/net/cfg80211.h | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index c17b6e128394..8df01cc53274 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -11430,4 +11430,76 @@ void cfg80211_incumbent_signal_notify(struct wiphy *wiphy, u32 signal_interference_bitmap, gfp_t gfp); +/* + * Context information carried in SMD Transition (refer IEEE P802.11bn/D2.0, + * Aug 2026, subclause 37.16.9. + */ + +/* + * Data TIDs transported in the context, IEEE P802.11bn/D2.0, Aug 2026, + * subclause 9.4.2.364. + */ +#define IEEE80211_ST_CTX_NUM_TIDS 8 + +/** + * struct ieee80211_st_ctx_ba - BlockAck parameters for DL and UL + * + * @amsdu_supported: Peer's capability to support A-MSDU within A-MPDU. + * @ba_policy: BlockAck policy (0 = delayed BlockAck, 1 = immediate BlockAck) + * @buffer_size: Reorder (combined) buffer size from ADDBA Request + * @timeout: BlockAck session timeout + * @ext_no_frag: ADDBA Extension fragmentation support + * @extfrag_level: ADDBA Extension HE fragmentation level + * @winstarto: WinStartO of the BA window + */ +struct ieee80211_st_ctx_ba { + bool amsdu_supported; + u8 ba_policy; + u16 buffer_size; + u16 timeout; + bool ext_no_frag; + u8 extfrag_level; + u16 winstarto; +}; + +/** + * struct ieee80211_st_ctx - IEEE 802.11bn SMD Transition Context (refer + * IEEE P802.11bn/D2.0, Aug 2026, subclause 37.16.9) + * + * @no_dl_sn_transfer: if downlink (DL) SN Transfer is requested or not + * @no_ul_sn_transfer: if uplink (UL) SN Transfer is requested or not + * @pn_valid: if PN is present in the context + * @ba_params_valid: if BlockAck parameters are present in the context + * @mgmt_tid_valid: if management information is present in the context + * @{dl,ul}.mgmt_sn and @ul.mgmt_pn are still bounded by + * @no_{dl,ul}_sn_transfer and @pn_valid fields. + * @dl: DL context data such as SN, PN, and BlockAck params. + * SN and PN are offset to reserve space for DL frames sent by the + * current AP MLD so that the target AP MLD does not repeat them. + * @ul: UL context data such as SN, PN, and BlockAck params. + */ +struct ieee80211_st_ctx { + u8 no_dl_sn_transfer:1; + u8 no_ul_sn_transfer:1; + u8 pn_valid:1; + u8 ba_params_valid:1; + u8 mgmt_tid_valid:1; + + struct { + u8 valid_tid_bmap; + u16 sn[IEEE80211_ST_CTX_NUM_TIDS]; + u8 pn[IEEE80211_CCMP_PN_LEN]; + struct ieee80211_st_ctx_ba ba[IEEE80211_ST_CTX_NUM_TIDS]; + u16 mgmt_sn; + } dl; + struct { + u8 valid_tid_bmap; + u16 sn[IEEE80211_ST_CTX_NUM_TIDS]; + u8 pn[IEEE80211_ST_CTX_NUM_TIDS][IEEE80211_CCMP_PN_LEN]; + struct ieee80211_st_ctx_ba ba[IEEE80211_ST_CTX_NUM_TIDS]; + u16 mgmt_sn; + u8 mgmt_pn[IEEE80211_CCMP_PN_LEN]; + } ul; +}; + #endif /* __NET_CFG80211_H */ -- 2.34.1