From: Jinglin Wang Date: Fri, 13 Dec 2019 08:30:28 +0000 (+0800) Subject: FT: Check mobility domain when sending RRB message to local managed BSS X-Git-Tag: hostap_2_10~2053 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c133c785df11760c6eba03710d51f60d3ff0374a;p=thirdparty%2Fhostap.git FT: Check mobility domain when sending RRB message to local managed BSS 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 Signed-off-by: MinHong Wang --- diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c index 5d207e3f8..11bfbab45 100644 --- a/src/ap/wpa_auth_glue.c +++ b/src/ap/wpa_auth_glue.c @@ -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;