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>
This commit is contained in:
parent
059bcc4782
commit
a114c7235a
1 changed files with 1 additions and 2 deletions
|
@ -370,8 +370,7 @@ void ap_handle_timer(void *eloop_ctx, void *timeout_ctx)
|
||||||
* but do not disconnect the station now.
|
* but do not disconnect the station now.
|
||||||
*/
|
*/
|
||||||
next_time = hapd->conf->ap_max_inactivity + fuzz;
|
next_time = hapd->conf->ap_max_inactivity + fuzz;
|
||||||
} else if (inactive_sec < hapd->conf->ap_max_inactivity &&
|
} else if (inactive_sec < hapd->conf->ap_max_inactivity) {
|
||||||
sta->flags & WLAN_STA_ASSOC) {
|
|
||||||
/* station activity detected; reset timeout state */
|
/* station activity detected; reset timeout state */
|
||||||
wpa_msg(hapd->msg_ctx, MSG_DEBUG,
|
wpa_msg(hapd->msg_ctx, MSG_DEBUG,
|
||||||
"Station " MACSTR " has been active %is ago",
|
"Station " MACSTR " has been active %is ago",
|
||||||
|
|
Loading…
Reference in a new issue