hostapd: fix bogus nl80211 interface remove messages for STA WDS
This commit is contained in:
parent
4c32757d22
commit
39f42d1193
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue