[PATCH 02/10] defs: Add definitions for SMD Info element

Pooventhiran G pooventhiran.g at oss.qualcomm.com
Sat Nov 21 12:34:11 PST 2026


Add definitions for SMD Info element and its subfields as per IEEE
P802.11bn/D2.0, Aug 2026, subclause 9.4.2.363. This is needed later for
generating and parsing the element.

Co-developed-by: Rohan Dutta <drohan at qti.qualcomm.com>
Signed-off-by: Rohan Dutta <drohan at qti.qualcomm.com>
Signed-off-by: Pooventhiran G <pooventhiran.g at oss.qualcomm.com>
---
 src/common/ieee802_11_defs.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
index 20edcae0b8d9..3c30e164c5c3 100644
--- a/src/common/ieee802_11_defs.h
+++ b/src/common/ieee802_11_defs.h
@@ -2791,6 +2791,9 @@ struct ieee80211_he_mu_edca_parameter_set {
 #define RNR_BSS_PARAM_MEMBER_CO_LOCATED_ESS         BIT(4)
 #define RNR_BSS_PARAM_UNSOLIC_PROBE_RESP_ACTIVE     BIT(5)
 #define RNR_BSS_PARAM_CO_LOCATED                    BIT(6)
+/* IEEE P802.11bn/D2.0, Figure 9-801 - BSS Parameters subfield format */
+#define RNR_BSS_PARAM_SAME_SMD                      BIT(7)
+
 /* Maximum transmit power in Y/2 dBm (-127..126); 127 indicates no maximum
  * transmit power is specified for the corresponding 20 MHz channel. */
 #define RNR_20_MHZ_PSD_MAX_TXPOWER                  127
@@ -3444,6 +3447,21 @@ enum ieee80211_pqc_content_presence {
 	PQC_CONTENT_VENDOR_SPECIFIC = 221,
 };
 
+/* IEEE P802.11bn/D2.0, Figure 9-aa43 - SMD Information element format */
+
+#define SMD_CAPAB_DL_DATA_FORWARDING		BIT(0)
+#define SMD_CAPAB_MAX_PREP_TGT_AP_MLD_SHIFT	1
+#define SMD_CAPAB_MAX_PREP_TGT_AP_MLD_MASK	(BIT(1) | BIT(2) | BIT(3))
+#define SMD_CAPAB_ONE_MAC_SAP_PER_SMD		BIT(4)
+#define SMD_CAPAB_PER_AP_MLD_PTK_MODE		BIT(5)
+#define SMD_CAPAB_NEIGHBOR_AP_PROBING		BIT(6)
+
+struct ieee80211_smd_info {
+	u8 smd_identifier[ETH_ALEN];
+	u8 smd_capab;
+	u8 prep_timeout;
+} STRUCT_PACKED;
+
 #ifdef _MSC_VER
 #pragma pack(pop)
 #endif /* _MSC_VER */
-- 
2.34.1




More information about the Hostap mailing list