After searching everywhere, I decided to ask for help here.
I using a MT7621 compatible router with 19.07.4 firmware, but from time to time some computers/cellphones are not able to connect to my 802.11 n network (802.11 ac works fine).
Checking logs I have several messages like these:
Sat Nov 27 20:07:11 2021 daemon.notice hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: Could not add STA to kernel driver
Sat Nov 27 20:07:12 2021 daemon.notice hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: Could not add STA to kernel driver
Sat Nov 27 20:07:13 2021 daemon.info hostapd: wlan0-1: STA xx:xx:xx:xx:xx:xx IEEE 802.11: authenticated
Sat Nov 27 20:07:13 2021 daemon.info hostapd: wlan0-1: STA xx:xx:xx:xx:xx:xx IEEE 802.11: authenticated
Sat Nov 27 20:07:13 2021 daemon.info hostapd: wlan0-1: STA xx:xx:xx:xx:xx:xx IEEE 802.11: authenticated
Sat Nov 27 20:07:13 2021 daemon.info hostapd: wlan0-1: STA xx:xx:xx:xx:xx:xx IEEE 802.11: authenticated
Sat Nov 27 20:07:16 2021 daemon.info hostapd: wlan0-1: STA xx:xx:xx:xx:xx:xx IEEE 802.11: deauthenticated due to local deauth request
The only way to get rid of these messages and be able to connect devices is to restarting my router. My concern is this is very frequent and restarting is palliative. It can come back in 2 days or it can take 10 minutes to happen again. It is driving me nuts.
I tried to tweak every wireless parameter recommendations, but without success.
As you can see, there is nothing special, just regular setup. I also tried to tweak wireless channels, but without success.
I can't imagine what would be the main cause of this. Sometimes due excessive reboot, some IOT devices stops to connect to my wireless network and I have to reboot them manually.
Increasing station inactivity helped with my Apple devices as well. Right now I am using 3600 seconds which is 1 hour and seems to have resolved the same iPhone deauthentications. I think default was 5 minutes.
Same problem here. I flashed a new version 22.03.0 to my Xiaomi Mi Router 4A Gigabit Edition, keeping the settings. Everything works fine except two of my devices cannot connect. One of them is Logitec Squeezebox Boom, the other one a smart device.
In router logs I see following:
Tue Sep 6 18:56:13 2022 daemon.info hostapd: wlan0: STA <Device 1 MAC> IEEE 802.11: authenticated
Tue Sep 6 18:56:13 2022 daemon.info hostapd: wlan0: STA <Device 1 MAC> IEEE 802.11: associated (aid 1)
Tue Sep 6 18:56:18 2022 daemon.info hostapd: wlan0: STA <Device 2 MAC> IEEE 802.11: authenticated
Tue Sep 6 18:56:18 2022 daemon.info hostapd: wlan0: STA <Device 2 MAC> IEEE 802.11: associated (aid 2)
Tue Sep 6 18:56:21 2022 daemon.info hostapd: wlan0: STA <Device 1 MAC> IEEE 802.11: deauthenticated due to local deauth request
Tue Sep 6 18:56:23 2022 daemon.info hostapd: wlan0: STA <Device 1 MAC> IEEE 802.11: authenticated
Tue Sep 6 18:56:23 2022 daemon.info hostapd: wlan0: STA <Device 1 MAC> IEEE 802.11: associated (aid 1)
Tue Sep 6 18:56:27 2022 daemon.info hostapd: wlan0: STA <Device 2 MAC> IEEE 802.11: deauthenticated due to local deauth request
Tue Sep 6 18:56:28 2022 daemon.notice hostapd: Station <Device 2 MAC> trying to disassociate, but it is not associated
Tue Sep 6 18:56:31 2022 daemon.info hostapd: wlan0: STA <Device 1 MAC> IEEE 802.11: deauthenticated due to local deauth request
Based on other posts here I tried to increase "Station inactivity limit" to 3600 - no change.
"Disable Inactivity Polling" is not checked.
Everything worked fine with v21.02.3.
Edit:
I also tried adding following in /etc/config/wireless but no change