Commit 4f4626c
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: e3ec701 ("rtw89: add Realtek 802.11ax driver")
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://lore.kernel.org/r/tencent_AD09A61BC4DA92AD1EB0790F5C850E544D07@qq.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent aa84667 commit 4f4626c
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3026 | 3026 | | |
3027 | 3027 | | |
3028 | 3028 | | |
| 3029 | + | |
3029 | 3030 | | |
3030 | 3031 | | |
3031 | 3032 | | |
3032 | 3033 | | |
3033 | 3034 | | |
3034 | 3035 | | |
3035 | | - | |
| 3036 | + | |
3036 | 3037 | | |
3037 | 3038 | | |
3038 | 3039 | | |
3039 | | - | |
| 3040 | + | |
3040 | 3041 | | |
3041 | 3042 | | |
3042 | 3043 | | |
| |||
0 commit comments