]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: Check mobility domain when sending RRB message to local managed BSS
authorJinglin Wang <bryanwang@synology.com>
Fri, 13 Dec 2019 08:30:28 +0000 (16:30 +0800)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2019 18:32:07 +0000 (20:32 +0200)
Fast BSS Transition requires related APs operating in the same mobility
domain. Therefore, we can check whether the local managed BSS is
operating the same mobility domain before sending multicast/unicast
messages to it. This reduces unnecessary load from having to allocate
queued messages for interfaces that cannot have valid data.

Signed-off-by: Jinglin Wang <bryanwang@synology.com>
Signed-off-by: MinHong Wang <minhongw@synology.com>
src/ap/wpa_auth_glue.c

index 5d207e3f83e1e02744f489deaacdc2a438aabe20..11bfbab4556322788c97a4007c861958c197504c 100644 (file)
@@ -725,6 +725,10 @@ static int hostapd_wpa_auth_oui_iter(struct hostapd_iface *iface, void *ctx)
                hapd = iface->bss[j];
                if (hapd == idata->src_hapd)
                        continue;
+               if (os_memcmp(hapd->conf->mobility_domain,
+                             idata->src_hapd->conf->mobility_domain,
+                             MOBILITY_DOMAIN_ID_LEN) != 0)
+                       continue;
                if (!is_multicast_ether_addr(idata->dst_addr) &&
                    os_memcmp(hapd->own_addr, idata->dst_addr, ETH_ALEN) != 0)
                        continue;