Re: [PATCH rtw-next v3 1/5] wifi: rtw88: free the reserved pages of an interface on firmware recovery

From: Mehmet Fide

Date: Fri Nov 20 2026 - 12:02:07 EST


Hi Luka,

> Could this skip a download that WoWLAN needs? If suspend flushes the
> recovery work while it holds RTNL, ieee80211_restart_work() cannot add
> the interfaces back before rtw_wow_suspend() runs.

Yes. On an RTL8822CE with net detect configured, a firmware crash
forced right before suspend made rtw_wow_suspend() run with no port in
use. The download was skipped and the driver logged "failed to get
probe_req rsvd loc".

> I think the empty list warning can still happen with AP and station
> interfaces on the RTL8822C.

It can. With the window widened by a test build, a station interface
brought up during the recovery got port 0, and a queued beacon update
then hit "Should not have an empty reserved page".

v4 follows Zong-Zhe's suggestion: the reset no longer frees the pages,
rtw_ops_add_interface() frees the old pages of an interface that was
already initialized, and both port checks go away. The lists then stay
filled through the recovery, and the TIM update you raised on v2 is
not skipped. I will run both tests above again on v4.

Mehmet