OSDN Git Service

wifi: rtw89: avoid inaccessible IO operations during doing change_interface()
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 17 Nov 2022 08:52:35 +0000 (16:52 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 22 Nov 2022 10:15:56 +0000 (12:15 +0200)
commitac3a9f1838d8f5e5f9c8b6e2582b65c48a1e7bc1
treef7992c03962b2e19af6909e8fe854a5806bf3898
parent29136c95fdc5d9bbfb56131408388fefdba4ed95
wifi: rtw89: avoid inaccessible IO operations during doing change_interface()

During doing change_interface(), hardware is power-off, so some components
are inaccessible and return error. This causes things unexpected, and we
don't have a warning message for that. So, ignore some IO operations in
this situation, and add a warning message to indicate something wrong.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221117085235.53777-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/mac80211.c