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=1796207321; b=5XLGM195FCVNGWp+W8+pyNsB87GIc9SYDJFn4vyZYS9FgT14BAtyVH+7CXM17+lMbdRC VhW9DdWY7CP9YT8Yl+JpzNa+J1XZXLAbPGJJfBJC35+M+TaSd3qxAmvXCYgVQQQWmbh6k 6fgXXmIdvnjGUehgCPobRLYIriQnHtAoZ988apJM9Scbiueg0UeCQjihBi38nXFnQlNDn rumaRMBNm+h8wbSy6GM3CQkOu3eH0bWjzO7SLpyaHVgc/sFhBYYrjYS8rpjk64tqm42qz O48SdLQoJDGpVt34qwxFhGMuFowu0ApA3u/iNC+QZ9mSJOUU/8uIZKbDjQriaZ88G8Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207321; 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-Info: X-Authority-Analysis:X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=QD7LE4CbP9qf79eowZWHmoyyuGVhpLi4TeN8OVSzXA0=; b=rZ5vmEUWxv+JziHK+TGKuiKA/BaSMtf/uqBsaBtNNEke38JLuAtbmn3LcQq+FgTSyRex WFMS3JEiQ2jEfQixuebK5Fqa7Wq4mIz+MSCBDFnuW0SXGmGsmixy5qNo4dkOUFW8tur9R 7j97ck6yRma/SIot+lhUQCcPxx4F2ci2SpCOy5dr+TD9LNr/sR0zfHmdc5cxmqyrmSZoF ZiqYATOlVy+zRtz2+QdPNjVH82xYMpPke6wEBYhvSMoADKvSSuFu2n4v4Xcfj4MALk0wE yFGVsGQaI7PlYzWdz6DgBRO8iEdBHPW/4Nw9y1owzRIS/saCkNeoHbk6QMhrtiWN46Q== 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=A0WTT4EY; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CX8F5cH7; 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 269D3606A33F for ; Wed, 2 Dec 2026 10:28:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 269D3606A33F 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=A0WTT4EY; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CX8F5cH7 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26osRY267536 for ; Wed, 2 Dec 2026 10:28:40 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= QD7LE4CbP9qf79eowZWHmoyyuGVhpLi4TeN8OVSzXA0=; b=A0WTT4EY/upRpfXJ o4wrWuWFrRg1u5qbaQqJmnWhllazAgxPY7Y9yb6bXgtA+mVROvUL7gZ3ChA9YqYl MJUVjWMLwwf4SLxbt1JmNWKa5byvsuv6WKkXbABlqf1y547iFfg0jTNHR9qVHe0j K5OlAP/TVCfijr4dPsPQnxgOp+1wPqW+8JI/mq2ENdtVZf8UR6bWbJKA2Wq6WRIF a0r54sEtLn4ztu2zGkjI0gyUGTDLdwugtnCQ8zP4zN8rnWHGhx6b/dFgC5fJO1F6 wfX+dLk5cM1tZHN1TP/VyU8IJVmgVAqd9Pdk65biOAlWlrFSZgsj7Z3etSaddZe6 2rs8ow== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja3ax3gsu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 10:28:40 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-8a05b68f851so10315855b3a.1 for ; Wed, 02 Dec 2026 02:28:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796207319; x=1796812119; 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=QD7LE4CbP9qf79eowZWHmoyyuGVhpLi4TeN8OVSzXA0=; b=CX8F5cH7uTf/sKyVYtdsf5uiq8nAr8tXIZSVSgLgCOjo66QFPL4AWNuWJkL1lt5KDY OBexsuFfI3Rg9v4sFmNakssq+NN5pR3kCJuQvTaj4BJp04kDaI505jG8+VhXv5gUxKIZ cqaCX75/UefMWL9wE+6yLqJCee4z35y2XOFcB3RotieMu8BW0vO/8sKJhwF8P5zEeq/y ZKj+dC3lS5NmaWuByEN3X2482yXhChL7TiHMHIfk05O1o+o91m4XQwtGtykFZi79OThM gWIytugN2azcllL0HpSjdgg0/RlbWsozFgv5by1XBVB28VL2F0S1GgK8dc0M/vr+xKn6 ki0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796207319; x=1796812119; 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=QD7LE4CbP9qf79eowZWHmoyyuGVhpLi4TeN8OVSzXA0=; b=rrAiK3h9eoWNYUhW8QgzGri9tISt/jFjuv6QsLejY6Ciz5pE8ws0b5b2DE1GNeT/HO tiLaDIwt/t8pnojoN/8v+irZ43GKM3CCoaSZT3nopZPg3klkvr7U+e1zxCT3LtT/pPAT O19naGc8yRxXETVlXuz1NJDASw3sP7bsVQt86VpWWj4DcIrcEwbFZPFDvO4LTFi7FIhb 7FZggS8iMM5eKyxYL9w9yltLW+CMFxV1qvgM54yxbjUAW9aiwPtnkuHAj+8hoRYmU+9d lQYo7pGu7CGA9xGQD5sm0eKZN0gewhzmWJ3nveq1LuHTIs+IcgP65pfQpPx6Ua7WCQBm TPxA== X-Gm-Message-State: APuU4Z8I4Gy1Vya+ltYVSiQ4nXw6V8w2OOkzyBZpJ9LP/5Al769ArMri agRdBPJShNwHYYMJf/zI9SHrqzXRtc1+9aslEtoj1Yosyy8WjvqJOGJp07OURbLGAVUAgwJ7F2J e/NimUkSvNvzLNaP5Wft9v+QnCN4QzfxSmHmSm6HkodAjMmz5nkBktH9MgmonWyyWmL7UHCk8Bp YI X-Gm-Gg: AZFdTZcn8FXAMO42zCXJeFZQoxrpVh0vS2eMzsujPp7Fn4zaNcLdVeqPaWx8SAGI4IJ kxRHxxDQi528tNyPsOODH/oFAH3blCrZVB5JkKsaepYeb0Zt7Voiaz/mQAt7PVpAGrfR/cM/lUO VMzAVXpTXgNND3H6iZeomTMZlgczciyOODHsnI9Tq9o2i0C0q9v6BNurUhVpJ5leD/PRl95GHRp 7Q0T/M8Tei2YlgrMiNz2LdlMiiFVQaYwqxmDu8d8cvSadNn8Itqo0Yrle7+t02NNK0GUwBO0UgK wuUP9LDTUVM3S/WjTgttePJIf+fbtgYo/qWWNqXsUhTFrMKjV/61rDeGYUdK+mV5m0/kzNPUgXK Kbu+v5uWO0thKx498jNv6chWWJv6IYLtWjPRvB0Qk0rdZTIPc9FWoUJZTmduJT5eYP2oSHgm/wc x4rOBQOHbnoyE6GYaNDVKnYZjovydgZ995ORYe5feTj4zVq403bsKBlZ/ckTG1HC96Of7e+eo= X-Received: by 2002:a05:6a20:7f8e:b0:3e2:81f5:a864 with SMTP id adf61e73a8af0-400aea11bf9mr33514901637.41.1796207319463; Wed, 02 Dec 2026 02:28:39 -0800 (PST) X-Received: by 2002:a05:6a20:7f8e:b0:3e2:81f5:a864 with SMTP id adf61e73a8af0-400aea11bf9mr33514889637.41.1796207318964; Wed, 02 Dec 2026 02:28:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 02:28:38 -0800 (PST) From: Pooventhiran G Date: Wed, 02 Dec 2026 15:57:58 +0530 Subject: [PATCH wireless-next v5 03/19] wifi: nl80211: add ST sub-state STA flags for non-AP MLD 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-3-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-Info: AW1haW4tMjYxMjAyMDA0MSBTYWx0ZWRfX4iAHTRZbpjp+ irji0CtgEgDzDlKB6ESsIfeiNJQEmGo1v9zxaxhmt7IIveE1D7q+UHsRwA5MnD5VCJ2hsiGtPeU NaJFH1tKHIIFIjYIRC7ABNUpRXTKHuk= X-Authority-Analysis: v=2.4 cv=J5s/fwnS c=1 sm=1 tr=0 ts=6b0ff2d8 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=2NxbBf98m0CuOkBAoqYA:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-GUID: HGAN7rtbTzwFAXJaeW6KXI0mJ6wJlODX X-Proofpoint-ORIG-GUID: HGAN7rtbTzwFAXJaeW6KXI0mJ6wJlODX X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA0MSBTYWx0ZWRfX1kTrvItL2xBR 196WY3YHlKoVar7USBS2D7bWi0NDpQJ+RhUQ7HD1pFcroyoNZv56T2PuCVKHO0hkIauuvY3Bnue FAFYMCbfVW3at64Q/v6t6NFPS0Tz69iI0rDSE52hfkdxCFcDDYMjqm950tMpoayeLCe460njNTY 6Q2qW7L2LXgx0akcpg+VAatXliFbybufFM/5iiv82p61/NWidb2rLqOT01Gr67++Y2RiquyCsWm RWPRNVcjyqrocbcI4RMUKY1sHFzhtf4loS9kNO0cg4b30KI5FM1xENbP1weDZrcMY/XVJAR8Iv0 noEJAiQyGtuGD2XT8ErXdTnavxEGiCuPsLrStkayQPl/z/y0VfVn+upYbGIKHIjaQU2e/ZmIChM bEEGbm0b9gPOSO1QU8ik5ftL/r/XklCqQIeZGDcPnBiMQEJmcwegTUoQj14CxqoUUZGKV7R3HIl jezk43jmaOLlwOLWHvQ== 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 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 bulkscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 adultscore=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 11.3.1, defines three new MLD state sub-states (4a, 4b, 4c) that apply when a non-AP MLD and its associated SMD-ME are in state 4 and an ST is in progress. Add the corresponding nl80211 STA flags to track the state changes: - NL80211_STA_FLAG_ST_PREPARED - State 4a: non-AP MLD is prepared with target AP MLD - NL80211_STA_FLAG_ST_EXECUTING - State 4b: ST execution active on current AP MLD - NL80211_STA_FLAG_ST_DL_DRAIN - State 4c: DL draining period Signed-off-by: Pooventhiran G --- include/uapi/linux/nl80211.h | 19 +++++++++++++++++++ net/wireless/nl80211.c | 25 ++++++++++++++++++------- 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index ed64aeb13ed2..5ef6f704be0f 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -418,6 +418,17 @@ * * Userspace indicate that the non-AP MLD has negotiated SMD with the AP MLD * by setting %NL80211_ATTR_SMD in %NL80211_CMD_NEW_STATION. + * + * When a non-AP MLD undergoes ST, userspace can indicate the current state of + * ST at the current AP MLD and target AP MLD using the STA flags + * %NL80211_STA_FLAG_ST_PREPARED, %NL80211_STA_FLAG_ST_EXECUTING, and + * %NL80211_STA_FLAG_ST_DL_DRAIN. + * %NL80211_STA_FLAG_ST_PREPARED can be set in %NL80211_CMD_NEW_STATION + * on the target AP MLD while creating the station entry. Drivers must + * keep these links in powersave at this point until successful + * ST Execution. + * %NL80211_STA_FLAG_ST_{EXECUTING,DL_DRAIN}, on the other hand, can be + * set using %NL80211_CMD_SET_STATION on the current AP MLD. */ /** @@ -4121,6 +4132,11 @@ enum nl80211_iftype { * previously added station into associated state * @NL80211_STA_FLAG_SPP_AMSDU: station supports SPP A-MSDUs * @NL80211_STA_FLAG_CIP: station has Control Integrity Protocol (CIP) enabled + * @NL80211_STA_FLAG_ST_PREPARED: station is prepared at target AP MLD + * (State 4a). + * @NL80211_STA_FLAG_ST_EXECUTING: current AP MLD is executing ST (State 4b). + * @NL80211_STA_FLAG_ST_DL_DRAIN: current AP MLD is in DL draining period + * (State 4c). * @NL80211_STA_FLAG_MAX: highest station flag number currently defined * @__NL80211_STA_FLAG_AFTER_LAST: internal use */ @@ -4135,6 +4151,9 @@ enum nl80211_sta_flags { NL80211_STA_FLAG_ASSOCIATED, NL80211_STA_FLAG_SPP_AMSDU, NL80211_STA_FLAG_CIP, + NL80211_STA_FLAG_ST_PREPARED, + NL80211_STA_FLAG_ST_EXECUTING, + NL80211_STA_FLAG_ST_DL_DRAIN, /* keep last */ __NL80211_STA_FLAG_AFTER_LAST, diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 003e7dae87f9..f15ddf5a94a6 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -8020,6 +8020,9 @@ static const struct nla_policy sta_flags_policy[NL80211_STA_FLAG_MAX + 1] = { [NL80211_STA_FLAG_MFP] = { .type = NLA_FLAG }, [NL80211_STA_FLAG_AUTHENTICATED] = { .type = NLA_FLAG }, [NL80211_STA_FLAG_TDLS_PEER] = { .type = NLA_FLAG }, + [NL80211_STA_FLAG_ST_PREPARED] = { .type = NLA_FLAG }, + [NL80211_STA_FLAG_ST_EXECUTING] = { .type = NLA_FLAG }, + [NL80211_STA_FLAG_ST_DL_DRAIN] = { .type = NLA_FLAG }, }; static int parse_station_flags(struct genl_info *info, @@ -8086,11 +8089,16 @@ static int parse_station_flags(struct genl_info *info, switch (iftype) { case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP_VLAN: + params->sta_flags_mask = + BIT(NL80211_STA_FLAG_ST_PREPARED) | + BIT(NL80211_STA_FLAG_ST_EXECUTING) | + BIT(NL80211_STA_FLAG_ST_DL_DRAIN); + fallthrough; case NL80211_IFTYPE_P2P_GO: - params->sta_flags_mask = BIT(NL80211_STA_FLAG_AUTHORIZED) | - BIT(NL80211_STA_FLAG_SHORT_PREAMBLE) | - BIT(NL80211_STA_FLAG_WME) | - BIT(NL80211_STA_FLAG_MFP); + params->sta_flags_mask |= BIT(NL80211_STA_FLAG_AUTHORIZED) | + BIT(NL80211_STA_FLAG_SHORT_PREAMBLE) | + BIT(NL80211_STA_FLAG_WME) | + BIT(NL80211_STA_FLAG_MFP); break; case NL80211_IFTYPE_P2P_CLIENT: case NL80211_IFTYPE_STATION: @@ -9298,7 +9306,7 @@ int cfg80211_check_station_change(struct wiphy *wiphy, return -EINVAL; /* When you run into this, adjust the code below for the new flag */ - BUILD_BUG_ON(NL80211_STA_FLAG_MAX != 9); + BUILD_BUG_ON(NL80211_STA_FLAG_MAX != 12); switch (statype) { case CFG80211_STA_MESH_PEER_KERNEL: @@ -9393,7 +9401,10 @@ int cfg80211_check_station_change(struct wiphy *wiphy, BIT(NL80211_STA_FLAG_WME) | BIT(NL80211_STA_FLAG_MFP) | BIT(NL80211_STA_FLAG_SPP_AMSDU) | - BIT(NL80211_STA_FLAG_CIP))) + BIT(NL80211_STA_FLAG_CIP) | + BIT(NL80211_STA_FLAG_ST_PREPARED) | + BIT(NL80211_STA_FLAG_ST_EXECUTING) | + BIT(NL80211_STA_FLAG_ST_DL_DRAIN))) return -EINVAL; /* but authenticated/associated only if driver handles it */ @@ -10096,7 +10107,7 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info) return -EINVAL; /* When you run into this, adjust the code below for the new flag */ - BUILD_BUG_ON(NL80211_STA_FLAG_MAX != 9); + BUILD_BUG_ON(NL80211_STA_FLAG_MAX != 12); switch (wdev->iftype) { case NL80211_IFTYPE_AP: -- 2.34.1