Fix the issue of “Deauthenticated due to inactivity” on iOS and Android mobile devices. The system log shows below.
When the Low ACK function is turned on, many mobile devices tend to lose signal and disconnect from the Wi-Fi hotspot due to lack of “hand-shake”. The solution is to disable the “Disassociate on Low Acknowledgement” function on the Wireless network.
daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED 00:00:00:00:00:00 daemon.info hostapd: wlan0: STA 00:00:00:00:00:00 IEEE 802.11: disassociated daemon.info hostapd: wlan0: STA 00:00:00:00:00:00 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE) daemon.info hostapd: wlan0: STA 00:00:00:00:00:00 IEEE 802.11: authenticated daemon.info hostapd: wlan0: STA 00:00:00:00:00:00 IEEE 802.11: associated (aid 1)
Option 1 is to operate on the web interface.
After accessing the router admin, go to “Network > Wireless“.
Click the Edit button on the 2nd row of master SSID.
Scroll down to the section of “Interface Configuration“.
Click the tab of “Advanced Settings“.
Dis-select the last option as the right-side image shows.
It has been turned off by default since the firmware version of EV3120.
Option 2 is to edit the source code of the wireless profile, by
adding the below code on the Wireless configure file while located at
/etc/config/wireless → @ config wifi-iface
option disassoc_low_ack '0'
Low Acknowledgement Meaning
Acknowledgment is a verification signal data that the Wi-Fi hotspot transmits to the router to recognize the data is correct. The Acknowledgement process is a TCP error checking mechanism that takes bandwidth and airtime since it is a three-step process. With normal Wi-Fi procedure, the Wi-Fi hotspot sends data to connected devices, the devices confirm receipt to the hotspot, then your Wi-Fi hotspot either proceed to send more data or resend the data if there were any problems.
By enabling the above-mentioned No Ack setting, we are minimizing the number of Acknowledgment and theoretically improve the amount of data transmission. The Wi-Fi hotspot does not wait for the confirm receipt and will instead continue to send more data.
When shall we enable the Low ACK?
We should only ever enable the No Ack function when the Wi-Fi hotspot is functioning at maximum signal strength with little or no interference.
When the Wi-Fi hotspot has wireless interference or background noise, many of the wireless data sent through the hotspot can be corrupted or contain errors. The data transmission can be faulty, video stream interrupted, and SSL websites fail to load.
We can turn on the Low ACK function to serve multiple devices that do not handle sensitive data. For example, the public Wi-Fi at a coffee shop, turn on the Low ACK function could increase the overall Wi-Fi performance for all the customers at the cost of individual data transmission accuracy.