diff mbox

Wait longer for inactive client probe (empty data frame)

Message ID 20151006162658.0a005db3b19c878f90c98d16@ubnt.com
State Accepted
Headers show

Commit Message

Dmitry Ivanov Oct. 6, 2015, 1:26 p.m. UTC
Some devices cannot respond to inactive client probe (empty data frame)
within one second. For example, iPhone may take up to 3 secs. This
becomes a significant problem when ap_max_inactivity is set to lower
value such as 10 secs. iPhone can loose Wi-Fi connection after ~1 min
of user inactivity.

Signed-off-by: Dmitry Ivanov <dima@ubnt.com>
---
 src/ap/sta_info.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Oct. 6, 2015, 8:13 p.m. UTC | #1
On Tue, Oct 06, 2015 at 04:26:58PM +0300, Dmitry Ivanov wrote:
> Some devices cannot respond to inactive client probe (empty data frame)
> within one second. For example, iPhone may take up to 3 secs. This
> becomes a significant problem when ap_max_inactivity is set to lower
> value such as 10 secs. iPhone can loose Wi-Fi connection after ~1 min
> of user inactivity.

Thanks, applied.
diff mbox

Patch

diff --git a/src/ap/sta_info.h b/src/ap/sta_info.h
index 34c61ba..09deac6 100644
--- a/src/ap/sta_info.h
+++ b/src/ap/sta_info.h
@@ -181,7 +181,7 @@  struct sta_info {
  * AP_DISASSOC_DELAY seconds. Similarly, the station will be deauthenticated
  * after AP_DEAUTH_DELAY seconds has passed after disassociation. */
 #define AP_MAX_INACTIVITY (5 * 60)
-#define AP_DISASSOC_DELAY (1)
+#define AP_DISASSOC_DELAY (3)
 #define AP_DEAUTH_DELAY (1)
 /* Number of seconds to keep STA entry with Authenticated flag after it has
  * been disassociated. */