wifi: rtw89: mac: reset power state before switching to power on

To run power on function properly, reset power states (off/on/PS) to
initial state. Otherwise, it might be unusable due to fail to power on.

Since a USB adapter might play as USB mass storage with driver and then
switch to WiFi adapter, causing it stays on power-on state when doing WiFi
USB probe. Exclude this case.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251223030651.480633-5-pkshih@realtek.com
This commit is contained in:
Ping-Ke Shih 2025-12-23 11:06:43 +08:00
commit b0f1289fd6
4 changed files with 186 additions and 7 deletions