source: branches/backfire/package/hostapd/patches/730-fix_wds_bridge_handling.patch @ 26726

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

hostapd: fix bridge handling for wds stations (#9257), backport of r26724

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

    a b static int i802_set_wds_sta(void *priv,  
    54875487                linux_set_iface_flags(drv->ioctl_sock, name, 1); 
    54885488                return i802_set_sta_vlan(priv, addr, name, 0); 
    54895489        } else { 
     5490                if (bridge_ifname) 
     5491                        linux_br_del_if(drv->ioctl_sock, bridge_ifname, name); 
     5492 
    54905493                i802_set_sta_vlan(priv, addr, bss->ifname, 0); 
    54915494                return wpa_driver_nl80211_if_remove(priv, WPA_IF_AP_VLAN, 
    54925495                                                    name); 
    static int wpa_driver_nl80211_if_remove( 
    59275930                return -1; 
    59285931 
    59295932#ifdef HOSTAPD 
    5930         if (bss->added_if_into_bridge) { 
     5933        if (type == WPA_IF_AP_BSS && bss->added_if_into_bridge) { 
    59315934                if (linux_br_del_if(drv->ioctl_sock, bss->brname, bss->ifname) 
    59325935                    < 0) 
    59335936                        wpa_printf(MSG_INFO, "nl80211: Failed to remove " 
    59345937                                   "interface %s from bridge %s: %s", 
    59355938                                   bss->ifname, bss->brname, strerror(errno)); 
    59365939        } 
    5937         if (bss->added_bridge) { 
     5940        if (type == WPA_IF_AP_BSS && bss->added_bridge) { 
    59385941                if (linux_br_del(drv->ioctl_sock, bss->brname) < 0) 
    59395942                        wpa_printf(MSG_INFO, "nl80211: Failed to remove " 
    59405943                                   "bridge %s: %s", 
Note: See TracBrowser for help on using the repository browser.