AP: Remove unneeded check for 'added_unassociated'

In fils_hlp_finish_assoc() the station is already added to the
driver so it is not needed to check the 'added_unassociated'
flag.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2017-08-21 19:36:21 +03:00 committed by Jouni Malinen
parent d55b174609
commit fd35ed5bba

View file

@ -2860,14 +2860,11 @@ void fils_hlp_finish_assoc(struct hostapd_data *hapd, struct sta_info *sta)
sta->hlp_dhcp_discover = NULL; sta->hlp_dhcp_discover = NULL;
/* /*
* Remove the station in case tranmission of a success response fails * Remove the station in case transmission of a success response fails.
* (the STA was added associated to the driver) or if the station was * At this point the station was already added associated to the driver.
* previously added unassociated.
*/ */
if (reply_res != WLAN_STATUS_SUCCESS || sta->added_unassoc) { if (reply_res != WLAN_STATUS_SUCCESS)
hostapd_drv_sta_remove(hapd, sta->addr); hostapd_drv_sta_remove(hapd, sta->addr);
sta->added_unassoc = 0;
}
} }