From 39f42d1193bc55cba6cf28f9bf8d16fc9cd24a76 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 6 Mar 2010 20:52:22 +0200 Subject: [PATCH] hostapd: fix bogus nl80211 interface remove messages for STA WDS --- src/ap/sta_info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);