1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-18 19:19:42 +02:00
openwrt-xburst/package/hostapd/patches/140-wds_sta_remove.patch
nbd 92ca87f9e7 hostapd: upgrade to latest git version, add patches to fix multi-bss support with a single hostapd instance
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19234 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 02:26:00 +00:00

13 lines
430 B
Diff

--- a/src/ap/sta_info.c
+++ b/src/ap/sta_info.c
@@ -121,7 +121,8 @@ void ap_free_sta(struct hostapd_data *ha
accounting_sta_stop(hapd, sta);
- hapd->drv.set_wds_sta(hapd, sta->addr, sta->aid, 0);
+ if (sta->flags & WLAN_STA_WDS)
+ hapd->drv.set_wds_sta(hapd, sta->addr, sta->aid, 0);
if (!ap_sta_in_other_bss(hapd, sta, WLAN_STA_ASSOC) &&
!(sta->flags & WLAN_STA_PREAUTH))
hapd->drv.sta_remove(hapd, sta->addr);