From 3626927722acd95153401e43f23bfd57df192e25 Mon Sep 17 00:00:00 2001 From: Andreas Schultz Date: Mon, 1 Aug 2016 18:14:00 +0200 Subject: [PATCH] reset timeout_action on assoc response frame Assoziation is complete when we get a response frame. We need to reset the timeout action here, otherwise the client gets detached as soon as the timer fires. --- src/wtp/binding/ieee80211/wifi_drivers.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wtp/binding/ieee80211/wifi_drivers.c b/src/wtp/binding/ieee80211/wifi_drivers.c index 0ec5f91..1fbe138 100644 --- a/src/wtp/binding/ieee80211/wifi_drivers.c +++ b/src/wtp/binding/ieee80211/wifi_drivers.c @@ -1360,6 +1360,11 @@ wifi_wlan_receive_station_mgmt_association_response_ack(struct wifi_wlan* wlan, result = wifi_station_set_key(wlan, station); if (result) wifi_wlan_deauthentication_station(wlan, station, IEEE80211_REASON_PREV_AUTH_NOT_VALID); + + if (!result) { + /* let the timer expire, but set the action to SEND NULLFUNC */ + station->timeout_action = WIFI_STATION_TIMEOUT_ACTION_SEND_NULLFUNC; + } } }