summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeijie Gao <hackpascal@gmail.com>2024-03-01 00:46:12 +0800
committerRobert Marko <robimarko@gmail.com>2024-03-11 20:17:26 +0100
commit01f04539701c6a08bee3f648ec40dade7aba46cc (patch)
tree3ee204d485f21846b37368347a209e4bbeebaab8
parent504cf50eea5a8f56b114cd985e7dc7af6cf64bfa (diff)
downloadopenwrt-01f04539701c6a08bee3f648ec40dade7aba46cc.tar.gz
openwrt-01f04539701c6a08bee3f648ec40dade7aba46cc.tar.bz2
openwrt-01f04539701c6a08bee3f648ec40dade7aba46cc.zip
rtl8812au-ct: fix build failure on linux kernel 6.6
Use the correct return status code to avoid incompatible type error Signed-off-by: Weijie Gao <hackpascal@gmail.com>
-rw-r--r--package/kernel/rtl8812au-ct/patches/008-fix-ret-status-code-type.patch11
1 files changed, 11 insertions, 0 deletions
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
index 0000000000..2c776288bf
--- /dev/null
+++ b/package/kernel/rtl8812au-ct/patches/008-fix-ret-status-code-type.patch
@@ -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: