]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Fix SA query timeout during MLD reassociation
authorKarthik M <karthik.m@oss.qualcomm.com>
Thu, 25 Sep 2025 07:31:15 +0000 (13:01 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 29 Sep 2025 10:23:25 +0000 (13:23 +0300)
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 <karthik.m@oss.qualcomm.com>
src/ap/ieee802_11.c

index 57e6503fb169a03627f72dd212ea324e29b21937..6c92c233b6e6cf59fdc9812e9cac6e11c58670ed 100644 (file)
@@ -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 */