Skip to content
Commit 4f4626cd authored by Zhang Shurong's avatar Zhang Shurong Committed by Jakub Kicinski
Browse files

wifi: rtw89: debug: fix error code in rtw89_debug_priv_send_h2c_set()



If there is a failure during rtw89_fw_h2c_raw() rtw89_debug_priv_send_h2c
should return negative error code instead of a positive value count.
Fix this bug by returning correct error code.

Fixes: e3ec7017 ("rtw89: add Realtek 802.11ax driver")
Signed-off-by: default avatarZhang Shurong <zhang_shurong@foxmail.com>
Acked-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Link: https://lore.kernel.org/r/tencent_AD09A61BC4DA92AD1EB0790F5C850E544D07@qq.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent aa846677
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment