diff mbox series

[v3,05/12] driver_nl80211: send full UHR operation

Message ID 20260507192335.061bcca809bc.I60c4927d49cb76537aa751c4e624627e3f886d03@changeid
State Accepted
Headers show
Series some UHR support | expand

Commit Message

Johannes Berg May 7, 2026, 5:21 p.m. UTC
From: Johannes Berg <johannes.berg@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@intel.com>
---
 src/drivers/driver_nl80211.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 167f12069718..8c2721d979fb 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5952,6 +5952,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)