1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -466,6 +466,10 @@ static void wpa_driver_nl80211_event_rtm
7 + if (ifi->ifi_family == AF_BRIDGE &&
8 + drv->nlmode != NL80211_IFTYPE_AP)
11 wpa_printf(MSG_DEBUG, "RTM_NEWLINK: operstate=%d ifi_flags=0x%x "
13 drv->operstate, ifi->ifi_flags,
14 @@ -537,6 +541,10 @@ static void wpa_driver_nl80211_event_rtm
16 attr = (struct rtattr *) buf;
18 + if (ifi->ifi_family == AF_BRIDGE &&
19 + drv->nlmode != NL80211_IFTYPE_AP)
22 rta_len = RTA_ALIGN(sizeof(struct rtattr));
23 while (RTA_OK(attr, attrlen)) {
24 if (attr->rta_type == IFLA_IFNAME) {
25 @@ -1636,6 +1644,11 @@ static int wpa_driver_nl80211_capa(struc
26 drv->capa.flags |= WPA_DRIVER_FLAGS_EAPOL_TX_STATUS;
27 drv->capa.max_remain_on_chan = info.max_remain_on_chan;
30 + drv->num_if_indices = sizeof(drv->default_if_indices) / sizeof(int);
31 + drv->if_indices = drv->default_if_indices;
37 @@ -5638,8 +5651,6 @@ static void *i802_init(struct hostapd_da
41 - drv->num_if_indices = sizeof(drv->default_if_indices) / sizeof(int);
42 - drv->if_indices = drv->default_if_indices;
43 for (i = 0; i < params->num_bridge; i++) {
44 if (params->bridge[i]) {
45 ifindex = if_nametoindex(params->bridge[i]);