From: Ilan Peer Date: Mon, 22 May 2023 19:34:06 +0000 (+0300) Subject: AP: Specify the link ID for set_key() callback for group keys X-Git-Tag: hostap_2_11~1115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b49853f4945546a70cd4ac8abeb45378e84f82d;p=thirdparty%2Fhostap.git AP: Specify the link ID for set_key() callback for group keys If the AP is part of an AP MLD specify the link ID in the set_key parameters whenever setting a group key. Signed-off-by: Ilan Peer Signed-off-by: Andrei Otcheretianski --- diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c index 38c83c7e8..6864ed402 100644 --- a/src/ap/ap_drv_ops.c +++ b/src/ap/ap_drv_ops.c @@ -760,6 +760,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->mld_link_id; +#endif /* CONFIG_IEEE80211BE */ + return hapd->driver->set_key(hapd->drv_priv, ¶ms); }