ESP32 WiFi : Inavtive timer & device max connection issue

Ankit Siddhapura
Posts: 21
Joined: Sat Jun 30, 2018 1:04 pm

ESP32 WiFi : Inavtive timer & device max connection issue

Postby Ankit Siddhapura » Tue Oct 02, 2018 11:25 am

HI Team,
I am looking for quick solution for one issue found with WiFi MAC AP functionality. Once STA is connected to AP1 goes out of AP1's range and connecting to AP2 which having same configuration, meanwhile first AP1 has to remove STA entry from station list due to inactive timer of 5 min.
If AP1s inactive timer set for STA reaches to 5 min AP1 kick offs STA from its station list. But, if STA is connected to AP2 and comes in range of AP1 before inactive timer expires, AP1 won't remove STA entry from station list.In this case AP1's Max Connection status violates.

How MAC handle this scenario? Does any API present to handle this case if child switch to another parent? Find test cases below.

Test Case:
1) Configure two devices AP1 and AP2 in AP mode with same configuration(SSID, Password, channel and auth mode).Connect STA to AP1.
2) Power on AP2 out of AP1's range, move STA to AP1 to AP2 network range. Let STA to connect AP2.
3) Bring AP2 and STA in range of AP1 before AP1's station inactive timer(5 min) expires.
4) Here AP1 won't make decision due to inactive timer reset when STA starts communication on MAC before AP1 kicks off STA.

How to handle this issue? SYSTEM_EVENT_AP_STADISCONNECTED will be triggered after 5 min, if STA communicating via beacon or probe AP1 will never remove its child from Station list and if AP1 reaches max connection won't allow to connect any new STA.

Thank You,
Ankit Siddhapura

Who is online

Users browsing this forum: Gaston1980 and 86 guests