source: branches/backfire/package/hostapd/patches/330-multicall_bridge_fix.patch @ 26416

Last change on this file since 26416 was 26416, checked in by nbd, 5 years ago

hostapd: update to latest trunk version (merge r26414, r26415)

File size: 1.3 KB
  • src/drivers/driver_nl80211.c

    a b static void wpa_driver_nl80211_event_rtm 
    466466                return; 
    467467        } 
    468468 
     469        if (ifi->ifi_family == AF_BRIDGE && 
     470            drv->nlmode != NL80211_IFTYPE_AP) 
     471                return; 
     472 
    469473        wpa_printf(MSG_DEBUG, "RTM_NEWLINK: operstate=%d ifi_flags=0x%x " 
    470474                   "(%s%s%s%s)", 
    471475                   drv->operstate, ifi->ifi_flags, 
    static void wpa_driver_nl80211_event_rtm 
    537541        attrlen = len; 
    538542        attr = (struct rtattr *) buf; 
    539543 
     544        if (ifi->ifi_family == AF_BRIDGE && 
     545            drv->nlmode != NL80211_IFTYPE_AP) 
     546                return; 
     547 
    540548        rta_len = RTA_ALIGN(sizeof(struct rtattr)); 
    541549        while (RTA_OK(attr, attrlen)) { 
    542550                if (attr->rta_type == IFLA_IFNAME) { 
    static int wpa_driver_nl80211_capa(struc 
    16361644        drv->capa.flags |= WPA_DRIVER_FLAGS_EAPOL_TX_STATUS; 
    16371645        drv->capa.max_remain_on_chan = info.max_remain_on_chan; 
    16381646 
     1647#ifdef HOSTAPD 
     1648        drv->num_if_indices = sizeof(drv->default_if_indices) / sizeof(int); 
     1649        drv->if_indices = drv->default_if_indices; 
     1650#endif 
     1651 
    16391652        return 0; 
    16401653} 
    16411654 
    static void *i802_init(struct hostapd_da 
    56235636                br_ifindex = 0; 
    56245637        } 
    56255638 
    5626         drv->num_if_indices = sizeof(drv->default_if_indices) / sizeof(int); 
    5627         drv->if_indices = drv->default_if_indices; 
    56285639        for (i = 0; i < params->num_bridge; i++) { 
    56295640                if (params->bridge[i]) { 
    56305641                        ifindex = if_nametoindex(params->bridge[i]); 
Note: See TracBrowser for help on using the repository browser.