From: Felix Fietkau Date: Sat, 6 Mar 2010 18:52:22 +0000 (+0200) Subject: hostapd: fix bogus nl80211 interface remove messages for STA WDS X-Git-Tag: hostap_0_7_2~166 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39f42d1193bc55cba6cf28f9bf8d16fc9cd24a76;p=thirdparty%2Fhostap.git hostapd: fix bogus nl80211 interface remove messages for STA WDS --- diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index 05bdc4174..4f002e49d 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -121,7 +121,8 @@ void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) 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);