Deauthentication of clients due to inactivity

I have followed the instructions here, however, this still does not fix my issue. I have updated all packages to the latest version in hopes that would fix the problem somehow but to no avail. I have also taken a look at this bug report and removed the country option, that still didnt fix the issue.

Device: Linksys WRT1900ACS
OpenWRT Version: 21.02.1 r16325-88151b8303
Architecture: arm_cortex-a9_vfpv3-d16

Mon Dec 13 14:04:52 2021 kern.debug kernel: [163686.092909] ieee80211 phy0: Mac80211 start BA [REDACTED MAC ADDRESS]
Mon Dec 13 14:12:15 2021 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED [REDACTED MAC ADDRESS]
Mon Dec 13 14:12:15 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] IEEE 802.11: disassociated
Mon Dec 13 14:12:16 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Mon Dec 13 14:12:20 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] IEEE 802.11: authenticated
Mon Dec 13 14:12:20 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] IEEE 802.11: associated (aid 6)
Mon Dec 13 14:12:20 2021 daemon.notice hostapd: wlan0: AP-STA-CONNECTED [REDACTED MAC ADDRESS]
Mon Dec 13 14:12:20 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] WPA: pairwise key handshake completed (RSN)
Mon Dec 13 14:12:22 2021 kern.debug kernel: [164136.819439] ieee80211 phy0: Mac80211 start BA [REDACTED MAC ADDRESS]
Mon Dec 13 14:14:29 2021 kern.debug kernel: [164263.124592] ieee80211 phy0: Mac80211 start BA [REDACTED MAC ADDRESS]
Mon Dec 13 14:15:04 2021 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED [REDACTED MAC ADDRESS]
Mon Dec 13 14:15:04 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] IEEE 802.11: disassociated
Mon Dec 13 14:15:05 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Mon Dec 13 14:15:08 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] IEEE 802.11: authenticated
Mon Dec 13 14:15:08 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] IEEE 802.11: associated (aid 6)
Mon Dec 13 14:15:08 2021 daemon.notice hostapd: wlan0: AP-STA-CONNECTED [REDACTED MAC ADDRESS]
Mon Dec 13 14:15:08 2021 daemon.info hostapd: wlan0: STA [REDACTED MAC ADDRESS] WPA: pairwise key handshake completed (RSN)
Mon Dec 13 14:15:09 2021 kern.debug kernel: [164303.439120] ieee80211 phy0: Mac80211 start BA 
[REDACTED MAC ADDRESS]

Uncheck "Disable Inactivity Polling".

Increase the value in "Station inactivity limit".

I have a couple of static devices that were getting kicked when I didn't want them kicked, so that solved it.

I tried what you suggested but "Disable Inactivity Polling" was already unhecked, however I tried with it checked and the problem still persists. Increasing the value in "Station inactivity limit" does not do anything for me either.

Unchecked and increased value? (something like an hour).

Yep, even with 3 hours, it deauths every 5-20 mins.

This bug is still around now and I think it is an ath10k bug

Facing same issue of frequent disconnection. After experimenting with different configs issue could not be resolved. Finally, re-installed the same firmware of 18.06.4 in the device and issue resolved completely. Earlier was getting 20-30% packet drops and post re-installing the same firmware packet loss is 0%.
My device config is:

"system": "ARMv7 Processor rev 5 (v7l)",
"board_name": "8dev,jalapeno",
"target": "ipq40xx\/generic",

Might be useful to those who are facing same issue.