diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-03-06 18:52:22 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-03-06 18:52:22 (GMT) |
commit | 39f42d1193bc55cba6cf28f9bf8d16fc9cd24a76 (patch) | |
tree | 266a9946df286855e11cd10a45799446ad2b4810 /src/ap | |
parent | 4c32757d2277687b17fdbb40199123a4d8c6be67 (diff) | |
download | hostap-39f42d1193bc55cba6cf28f9bf8d16fc9cd24a76.zip hostap-39f42d1193bc55cba6cf28f9bf8d16fc9cd24a76.tar.gz hostap-39f42d1193bc55cba6cf28f9bf8d16fc9cd24a76.tar.bz2 |
hostapd: fix bogus nl80211 interface remove messages for STA WDS
Diffstat (limited to 'src/ap')
-rw-r--r-- | src/ap/sta_info.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index 05bdc41..4f002e4 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); |