[PATCH 01/10] nl80211: Parse SMD support capability
Pooventhiran G
pooventhiran.g at oss.qualcomm.com
Sat Nov 21 12:34:10 PST 2026
Drivers advertise SMD capability to userspace so that userspace can
sanitize configuration and operation of SMD accordingly. Parse the
support from drivers for the same.
Signed-off-by: Rohan Dutta <drohan at qti.qualcomm.com>
Signed-off-by: Pooventhiran G <pooventhiran.g at oss.qualcomm.com>
---
src/drivers/driver.h | 2 ++
src/drivers/driver_nl80211_capa.c | 3 +++
2 files changed, 5 insertions(+)
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 33e6193cccaa..5a6d48bdf235 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -2627,6 +2627,8 @@ struct wpa_driver_capa {
/** Driver supports Security Profile element (IEEE P802.11bn/D2.0, 9.4.2.369
* and 37.33) handling */
#define WPA_DRIVER_FLAGS2_SECURITY_PROFILE 0x0000008000000000ULL
+/* Driver supports Seamless Mobility Domain (SMD) in AP mode */
+#define WPA_DRIVER_FLAGS2_SMD 0x0000010000000000ULL
#define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \
(drv_flags & WPA_DRIVER_FLAGS_FULL_AP_CLIENT_STATE)
diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c
index 01c4b32dc786..31fe87699def 100644
--- a/src/drivers/driver_nl80211_capa.c
+++ b/src/drivers/driver_nl80211_capa.c
@@ -1603,6 +1603,9 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg)
tb[NL80211_ATTR_NAN_CAPABILITIES]);
#endif /* CONFIG_NAN */
+ if (tb[NL80211_ATTR_SMD_SUPPORT])
+ capa->flags2 |= WPA_DRIVER_FLAGS2_SMD;
+
return NL_SKIP;
}
--
2.34.1
More information about the Hostap
mailing list