wifi_station_clean is called too early

wifi_station_clean is called in wifi_station_delete and therefor
bypasses the WIFI_STATION_TIMEOUT_ACTION_DELETE. That risults in loss of
the wifi deauthentication frame that should be sent before a wifi
station is deleted on AP.
This commit is contained in:
Moritz Rosenthal 2016-11-07 15:26:59 +01:00
parent b6417ff793
commit 669ed2c852
1 changed files with 0 additions and 3 deletions

View File

@ -395,9 +395,6 @@ static void wifi_station_delete(struct wifi_station* station)
/* */
log_printf(LOG_INFO, "Delete station: " MACSTR, MAC2STR(station->address));
/* */
wifi_station_clean(station);
/* Delay delete station */
station->timeout_action = WIFI_STATION_TIMEOUT_ACTION_DELETE;
station->timeout.repeat = WIFI_STATION_TIMEOUT_AFTER_DEAUTHENTICATED / 1000.0;