source: trunk/package/hostapd/patches/350-wds_fix.patch @ 20108

Last change on this file since 20108 was 20108, checked in by nbd, 6 years ago

hostapd: restore wds sta state after the sta reassociates

File size: 965 bytes
  • src/drivers/driver_nl80211.c

    a b static int i802_set_wds_sta(void *priv,  
    44354435        wpa_printf(MSG_DEBUG, "nl80211: Set WDS STA addr=" MACSTR 
    44364436                   " aid=%d val=%d name=%s", MAC2STR(addr), aid, val, name); 
    44374437        if (val) { 
    4438                 if (nl80211_create_iface(drv, name, NL80211_IFTYPE_AP_VLAN, 
     4438                if (!if_nametoindex(name)) { 
     4439                        if (nl80211_create_iface(drv, name, NL80211_IFTYPE_AP_VLAN, 
    44394440                                         NULL, 1) < 0) 
    4440                         return -1; 
     4441                                return -1; 
     4442                } 
    44414443                linux_set_iface_flags(drv->ioctl_sock, name, 1); 
    44424444                return i802_set_sta_vlan(priv, addr, name, 0); 
    44434445        } else { 
  • src/ap/ieee802_11.c

    a b static void handle_assoc_cb(struct hosta 
    15591559                               "Could not add STA to kernel driver"); 
    15601560        } 
    15611561 
     1562        if (sta->flags & WLAN_STA_WDS) 
     1563                hapd->drv.set_wds_sta(hapd, sta->addr, sta->aid, 1); 
     1564 
    15621565        if (sta->eapol_sm == NULL) { 
    15631566                /* 
    15641567                 * This STA does not use RADIUS server for EAP authentication, 
Note: See TracBrowser for help on using the repository browser.