aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2015-01-16 11:00:57 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-19 00:35:43 (GMT)
commita114c7235a1fad4dbf7e0743e4aa33fb39aef142 (patch)
treefd909bddb86a4a7ed9d91657d2d81a3efc3e7de8
parent059bcc47827701b7bcf70daaf59ead1af079c7b1 (diff)
downloadhostap-a114c7235a1fad4dbf7e0743e4aa33fb39aef142.zip
hostap-a114c7235a1fad4dbf7e0743e4aa33fb39aef142.tar.gz
hostap-a114c7235a1fad4dbf7e0743e4aa33fb39aef142.tar.bz2
AP: Remove redundant condition for STA expiration
This condition is always true because of surrounding if. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
-rw-r--r--src/ap/sta_info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c
index f4de140..3eca82d 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",