[PATCH 44/50] AP: Specify the link ID for set_key() callback
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Wed Feb 15 15:08:58 PST 2023
From: Ilan Peer <ilan.peer at intel.com>
If the AP is part of a MLD AP specify the link ID in the
set key parameters.
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
src/ap/ap_drv_ops.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 37c145f0a0..b4d804196a 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -758,6 +758,11 @@ int hostapd_drv_set_key(const char *ifname, struct hostapd_data *hapd,
params.key_flag = key_flag;
params.link_id = -1;
+#ifdef CONFIG_IEEE80211BE
+ if (hapd->conf->mld_ap && !(key_flag & KEY_FLAG_PAIRWISE))
+ params.link_id = hapd->conf->mld_link_id;
+#endif /* CONFIG_IEEE80211BE */
+
return hapd->driver->set_key(hapd->drv_priv, ¶ms);
}
--
2.38.1
More information about the Hostap
mailing list