Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796207324; b=Dxqyg638UcrmNalWyRswzLAx3C68INAQy83XAdSCDSlZKULozu5KdsaBZP3n7AmebnOG AJWVocOYPaeuaRPJY+MR8BHbfm+KywdtaLS+MsvcOy/iewTXW3kanU2TK7jUSHZBq4zTn y18rc60ddlAxpwizUsotw80w1r4doh8OQShj61yEkmyHTLjhtknYP/GblgeNTGbUL7gbI sWNkrhMQuVZ8eXkq6XOgyK0tM2C0zRmiJGXhUcpza7s8OV75GGQB8AZ0WWAfVXJ222Ecv 6PImNPfITpzOQnwBvLaNozsTKnwXQAV154qUzx/fVv/5DMJ+5DwWNpAs9HLlyq20D0g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207324; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature: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-Proofpoint-Spam-Details-Enc: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=LBWs4Ya9dMaYlnNtqN4JRGKwdI3teHJ/3aVFemrWNCw=; b=5f1hhpoXSx0Y/5JhkNVv1YZSwC8uZJw/6bZCdTDBHAw8QKcrhfIxSbJ6vuzu95ayHVCv GIhl9mExcL21oo/JRvAVgU61RZh973gluYtx1TtRXk8LkBbYwBPQiXS6jSrrbjh58VLEL P6Nd1HWD/bUdG3lwvetip0uRyAWCqOAI8brG09e66QqJy7Fr8gB3H+Ct4UUlIhxnNyaYB 0D0Rq/HLKiBz251/ZjXoAvLmiLF2Ost9dRhBZZwS2VIqmEJwvzxFUns8TpkXGiCwKjOOH 8NCO6SM7R8+xhEDOMOPWGVnEdLqZs+rlqzULnydMaCF2hN4eBMHTQB5vPAJ8mTsk16Q== 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.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 56948606A32C for ; Wed, 2 Dec 2026 10:28:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 56948606A32C 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 (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26pANK018964 for ; Wed, 2 Dec 2026 10:28:43 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-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja4k0b26d-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-f200.google.com with SMTP id 41be03b00d2f7-cd0cf3b1c70so7941400a12.3 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=w2LMu6M3QLrE9ErC7fIowUvrybnze1C77drF6mW2ZKbcHeNetMUorL2/3oMt040Dmc 5pWJEjljeJ8G4A636cv9G75vicN8+UkdDqqSbZavVy4JImIgo1s0zC9meqdHulW09bc8 s7Il/PAVXPtkLJCdDp5deKGixU9ygs6g/RIo7LrsQYTkI7VYcSHWRk3NGK2/HRMM76aR JiTssNXBg/ZWs/g/m/pG9cwGNG/Hg2EyH/wK4O7brIeLyWX2DZ5G633qe9LMboKMJFBz lv5MfFJY+X8ddfrhhZMDpkZAPtFOUj1vUR/PlmYFmU24Jq6O6fRWwyqrR2eIIHNKEMaN 7oCw== X-Gm-Message-State: APuU4Z+20slP4hFHm6fJBC0B715yZNtAA3T+Ztnqp1Df5yjNp7SN0wKg 9q+7vy9hUtAQSBj7GXuXEa3cMkPacI+NjScUEsYkmuVV/i6frhcFUpWmJzjJ4NJHKB1WxBX7MI+ Kin54O8HXN/yomTTuVGRKV1ISfq+g2tYsPfKfuRztNdADItjvXSXbJQdW0DQYiRLrmE3Ft3+LK1 Dl X-Gm-Gg: AZFdTZfyY0VYyTxeq7UL1FLpgGAN9+4V8ugzL2+F+KVJ+09x9Uu3Cvjp0FklPePessA F7vc8TApGbQG/8PsVEl/1m3IhICZCUz/DmS61KOi/oNq7r0qrtedkUbizg1/7QrgJzpnZ3/3nm9 DJj/9SKGtPc5q5t2ACCxe3qBPhby7H8U9qd2ateERvwDqVwqotZKbzT80DXLJv5gg+siOdJ0A8/ 5McNdXU3iUG6pLTlbwj74IqnnXUVxl97Utbp5AeE/Rj/nGtt88f3woxKVexepFbANuT6NOZzeLJ 6tlSiSDBZcMNfdlH7MQsOc2sKHwwUL948xd1Ft6POQqBCtWyCVTBYEZobJgvrKKyyS78jOuVwOL aoADVd4HqCEx3MgO49S2rTBPm45LRn19fB7txU2JxcWchIAh19A5N/FIj6JqJkI7ePmyv8VjScb lZ81BKan1Zu/aZawzv7oxBk8yTePHT0XUloD+9R9Khqp4pl8g3Eg5xgdsqAmeeaCuvI5t48/M= X-Received: by 2002:a05:6a21:7e0d:b0:3fb:2d3e:e61a with SMTP id adf61e73a8af0-4014b5642d5mr34397704637.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-wireless@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-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA0MSBTYWx0ZWRfX+8bpquUZREZG fc7AnZGyh8hzs6bTHmmEwsBhtVjal8qlD4c0ofd5fiyQrD/8gsqQjUtJZaIrmb8axcTQs672x+I 41YSbkTlquC6lKxPRpt7CSG4Ld4nnevIcPQexJccPmcoTl5o09JtE6ulNWpeaurVKf/1brhFRcd dDzqjL3ZqkAR4kmb3wi4vLbZVFe5NvWr5U6yHash5ovLTmf8N4SIq4LEn4LqClU/HhKb1wsJleF SYp4E4sMRJ86VBV+GVCdPUPHnsCeT7u23HrFJnvcl7cMnLSp2c+iA7cU8YDHCgk+3luNKflgk/x Onkw2R8cKWXa3qCwe1twaYY42BX6ymkLz76pnvWAU1DPVxBlBa0NjojodO5zRzymN0+Adp3uJ/+ 6rguG6jKYDfnmVggS3wsEM3seQzsEWwGGUAR+GAF0ITgVZtRM7fL/p5Q9dARv8GGX+L0tkK1sPt TsW7Nz6Z8+L/HrWTjUw== X-Proofpoint-GUID: zFN5nFFVZZLMN6IymccV6Wb7ezHD_PRT X-Proofpoint-ORIG-GUID: zFN5nFFVZZLMN6IymccV6Wb7ezHD_PRT X-Authority-Analysis: v=2.4 cv=I+Tw19gg c=1 sm=1 tr=0 ts=6b0ff2da cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=m87shdfMeKAPlX0oqh4A:9 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA0MSBTYWx0ZWRfX/8remE8UuDeV o7rcY+mZxfc0DGD+A561oGjHTuiWxftJUMqCUUmDxLHDaM5XqDPA9rheXwwqSEFyRFEU3g1wAot UR7cuBUpsaKMfmkS0/iwXVSBQ0oRt6k= 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 impostorscore=0 suspectscore=0 clxscore=1015 malwarescore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 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