]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: rtw88: mac: Return the original error from rtw_mac_power_switch()
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 26 Feb 2023 22:10:04 +0000 (23:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:08 +0000 (23:11 +0900)
commit5cf39d763424196ddc8fd9ffc8470a53b0c3633e
tree2f310c3b9afb22f0a611975dadf1b6283b4baf38
parentc53cd8dbde98d4a6c51428bcb6f413f18d83cf4e
wifi: rtw88: mac: Return the original error from rtw_mac_power_switch()

[ Upstream commit 15c8e267dfa62f207ee1db666c822324e3362b84 ]

rtw_mac_power_switch() calls rtw_pwr_seq_parser() which can return
-EINVAL, -EBUSY or 0. Propagate the original error code instead of
unconditionally returning -EINVAL in case of an error.

Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230226221004.138331-3-martin.blumenstingl@googlemail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw88/mac.c