From 80843bff3e3baddaf3e6486b8d72b48865f5eec1 Mon Sep 17 00:00:00 2001 From: Karthik M Date: Thu, 25 Sep 2025 13:01:15 +0530 Subject: [PATCH] AP MLD: Fix SA query timeout during MLD reassociation If an AP MLD receives a (Re)Association Request frame from an associated non-AP MLD and if SA query has already timed out for the existing station entry, the link address should be updated since the non-AP MLD might have changed its link address in the new association. Signed-off-by: Karthik M --- src/ap/ieee802_11.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 57e6503fb..6c92c233b 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -5801,6 +5801,15 @@ static void handle_assoc(struct hostapd_data *hapd, mld_addrs_not_translated = true; } + /* Allow link address to be changed if an SA query + * procedure has expired. */ + if (sta->sa_query_timed_out) { + u8 _link = hapd->mld_link_id; + + os_memcpy(sta->mld_info.links[_link].peer_addr, + mgmt->sa, ETH_ALEN); + } + } } #endif /* CONFIG_IEEE80211BE */ -- 2.47.3