Parcourir la source

FT: Use bridge interface (if set) for RRB connection

This fixes receiving of RRB messages between FT APs
Jouni Malinen il y a 15 ans
Parent
commit
2220821113
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/ap/wpa_auth_glue.c

+ 3 - 1
src/ap/wpa_auth_glue.c

@@ -429,7 +429,9 @@ int hostapd_setup_wpa(struct hostapd_data *hapd)
 
 #ifdef CONFIG_IEEE80211R
 	if (!hostapd_drv_none(hapd)) {
-		hapd->l2 = l2_packet_init(hapd->conf->iface, NULL, ETH_P_RRB,
+		hapd->l2 = l2_packet_init(hapd->conf->bridge[0] ?
+					  hapd->conf->bridge :
+					  hapd->conf->iface, NULL, ETH_P_RRB,
 					  hostapd_rrb_receive, hapd, 0);
 		if (hapd->l2 == NULL &&
 		    (hapd->driver == NULL ||