Marcin Ślusarz <marcin.slusarz@xxxxxxxxx> wrote: > wt., 28 maj 2024 o 05:52 Ping-Ke Shih <pkshih@xxxxxxxxxxx> napisał(a): > > > > Marcin Ślusarz <marcin.slusarz@xxxxxxxxx> wrote: > > > > > > I found out that the reason for those hangs is a power-off+on sequence that's > > > triggered by the above steps. > > > > To avoid power-off/on sequence once device becomes idle, I would like to add > > a ips_disabled helper. Please revert your changes and apply my attached patch. > > My first attempt was very similar, and it fixed some cases but not all of them. > > This is due to the existence of a second source of power-offs - rtw_ops_stop, > which is called, e.g., on downing the interface (ifconfig wlan0 down). Please try attached v2 patch. I would like to have an explicit helper (i.e. always_power_on in v2) to have this fix, so days later people can be easy to understand how it works. Not prefer adjusting existing flags to implicitly have behavior you want.
Attachment:
v2-0001-wifi-rtw88-8821cu-keep-power-on-always-for-8821CU.patch
Description: v2-0001-wifi-rtw88-8821cu-keep-power-on-always-for-8821CU.patch