[PATCH 2/2] FT: Check mobility domain when sending RRB message to local managed BSS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fast BSS Transition requires related AP operating in the same mobility
domain. Therefore, we can check whether local managed BSS is operating
the same mobility domain before sending multicast/unicast messages to
it.

Signed-off-by: Jinglin Wang <bryanwang@xxxxxxxxxxxx>
Signed-off-by: MinHong Wang <minhongw@xxxxxxxxxxxx>
---
 src/ap/wpa_auth_glue.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
index 7061c2155..85b77f75e 100644
--- a/src/ap/wpa_auth_glue.c
+++ b/src/ap/wpa_auth_glue.c
@@ -717,6 +717,11 @@ 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;
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux