[a311d] rtw88 wifi is flaky and connection drops
From dmesg:
[ +3.167162] rtw_8822cs mmc2:0001:1: failed to send h2c command
[ +2.077631] rtw_8822cs mmc2:0001:1: firmware failed to leave lps state
[ +2.714754] panfrost_gem_shrinker_scan: 11 callbacks suppressed
[ +0.000022] Purging 569344 bytes
[ +0.000635] Purging 565248 bytes
[ +3.211144] rtw_8822cs mmc2:0001:1: failed to send h2c command
[ +2.037847] rtw_8822cs mmc2:0001:1: firmware failed to leave lps state
[ +0.008615] rtw_8822cs mmc2:0001:1: failed to send h2c command
[ +1.634856] rtw_8822cs mmc2:0001:1: firmware failed to leave lps state
[ +0.289722] wlan0: disconnect from AP f0:72:ea:2a:61:5a for new auth to f0:72:ea:2a:61:5d
[ +0.639130] wlan0: authenticate with f0:72:ea:2a:61:5d (local address=c4:3c:b0:ad:cd:f1)
[ +0.383308] wlan0: send auth to f0:72:ea:2a:61:5d (try 1/3)
[ +0.017098] wlan0: authenticated
[ +0.002597] wlan0: associate with f0:72:ea:2a:61:5d (try 1/3)
[ +0.004380] wlan0: RX ReassocResp from f0:72:ea:2a:61:5d (capab=0x1011 status=0 aid=6)
[ +0.010392] wlan0: associated
[ +0.045861] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by f0:72:ea:2a:61:5d
[Jun 1 10:49] rtw_8822cs mmc2:0001:1: failed to send h2c command
[ +2.047876] rtw_8822cs mmc2:0001:1: firmware failed to leave lps state
[ +29.867939] rtw_8822cs mmc2:0001:1: failed to send h2c command
[ +2.091759] rtw_8822cs mmc2:0001:1: firmware failed to leave lps state
[ +14.927270] rtw_8822cs mmc2:0001:1: failed to send h2c command
[ +2.064036] rtw_8822cs mmc2:0001:1: firmware failed to leave lps state
[Jun 1 10:50] rtw_8822cs mmc2:0001:1: failed to send h2c command
The workaround, which makes the connection much more stable (but not perfect) is to add this to /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
:
[connection]
wifi.powersave = 2
References: