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

This fixes receiving of RRB messages between FT APs
This commit is contained in:
Jouni Malinen 2010-04-04 09:31:13 +03:00
parent 21c9b6903e
commit 2220821113
1 changed files with 3 additions and 1 deletions

View File

@ -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 ||