From: Karthik M Date: Thu, 25 Sep 2025 07:31:15 +0000 (+0530) Subject: AP MLD: Fix SA query timeout during MLD reassociation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80843bff3e3baddaf3e6486b8d72b48865f5eec1;p=thirdparty%2Fhostap.git 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 --- 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 */