[PATCH v3 4/8] driver_nl80211: send full UHR operation
Johannes Berg
johannes at sipsolutions.net
Fri Apr 24 00:11:56 PDT 2026
From: Johannes Berg <johannes.berg at intel.com>
Since the beacon data doesn't contain the full UHR operation
element, nl80211 has a new attribute for it. Fill it.
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
src/drivers/driver_nl80211.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 028839995b65..35e8392ca642 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5903,6 +5903,15 @@ static int wpa_driver_nl80211_set_ap(void *priv,
goto fail;
#endif /* CONFIG_IEEE80211AX */
+#ifdef CONFIG_IEEE80211BN
+ if (params->uhr_oper &&
+ nla_put(msg, NL80211_ATTR_UHR_OPERATION,
+ /* nl80211 wants it without the extended element header */
+ params->uhr_oper[1] - 1,
+ params->uhr_oper + 3))
+ goto fail;
+#endif /* CONFIG_IEEE80211BN */
+
#ifdef CONFIG_SAE
if (wpa_key_mgmt_sae(params->key_mgmt_suites) &&
nl80211_put_sae_pwe(msg, params->sae_pwe) < 0)
--
2.53.0
More information about the Hostap
mailing list