I installed OpenWrt on a MikroTik SXTsq Lite2.
I am using it in client mode to connect my grandfather's PC to public wifi.
I chose OpenWrt because of the ease of setting up cloudflare warp.
The problem is that the connection is unstable and often disconnects.
Similar problem (after searching using DuckDuckGo) -> client-mode-ctrl-event-beacon-loss
On MikroTik RouterOS I was able to make the connection stable and never dropped. By forcing the router at 20MHz and setting data rates like this
That way the connection becomes stable!
How can this be done on OpenWrt? I can't set the AP at 20MHz because I don't have access to it as it is public wifi.
Instead of forcing channel width to use 20MHz which I haven't found a way to do in OpenWrt.
I let 20MHz/40MHz coexistence work as is.
That way I can still get benefit of high throughput at 40MHz channel width when possible.
To make connection stable. I changed wireless module parameters on mac80211 like this:
parm: minstrel_vht_only:Use only VHT rates when VHT is supported by sta. (bool)
parm: max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm: max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm: beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm: probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm: ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)