rtl8812au-ct: fix build failure on linux kernel 6.6
authorWeijie Gao <hackpascal@gmail.com>
Thu, 29 Feb 2024 16:46:12 +0000 (00:46 +0800)
committerRobert Marko <robimarko@gmail.com>
Mon, 11 Mar 2024 19:17:26 +0000 (20:17 +0100)
Use the correct return status code to avoid incompatible type error

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
package/kernel/rtl8812au-ct/patches/008-fix-ret-status-code-type.patch [new file with mode: 0644]

diff --git a/package/kernel/rtl8812au-ct/patches/008-fix-ret-status-code-type.patch b/package/kernel/rtl8812au-ct/patches/008-fix-ret-status-code-type.patch
new file mode 100644 (file)
index 0000000..2c77628
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/core/rtw_bt_mp.c
++++ b/core/rtw_bt_mp.c
+@@ -169,7 +169,7 @@ mptbt_CheckBtRspStatus(
+     PBT_EXT_C2H                       pExtC2h
+ )
+ {
+-      BT_CTRL_STATUS  retStatus=BT_OP_STATUS_SUCCESS;
++      BT_CTRL_STATUS  retStatus=BT_STATUS_SUCCESS;
+       switch(pExtC2h->statusCode) {
+       case BT_OP_STATUS_SUCCESS: