Ath9k on Archer C7 v2: disassociated due to inactivity

You might wanna try the wireless option disassoc_low_ack=0. It's a long time since I had issues with clients losing their connection to my Archer C7 v2, but I remember setting this option fixed it. See: https://wiki.openwrt.org/doc/uci/wireless#inactivity_timeout_options