From: Masashi Honma Date: Fri, 16 Jan 2015 11:00:57 +0000 (+0900) Subject: AP: Remove redundant condition for STA expiration X-Git-Tag: hostap_2_4~364 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a114c7235a1fad4dbf7e0743e4aa33fb39aef142;p=thirdparty%2Fhostap.git AP: Remove redundant condition for STA expiration This condition is always true because of surrounding if. Signed-off-by: Masashi Honma --- diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index f4de14093..3eca82d59 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -370,8 +370,7 @@ void ap_handle_timer(void *eloop_ctx, void *timeout_ctx) * but do not disconnect the station now. */ next_time = hapd->conf->ap_max_inactivity + fuzz; - } else if (inactive_sec < hapd->conf->ap_max_inactivity && - sta->flags & WLAN_STA_ASSOC) { + } else if (inactive_sec < hapd->conf->ap_max_inactivity) { /* station activity detected; reset timeout state */ wpa_msg(hapd->msg_ctx, MSG_DEBUG, "Station " MACSTR " has been active %is ago",