diff --git a/lib/compilation-prepare.sh b/lib/compilation-prepare.sh index 86d4eb83e1..1d6dfaeeee 100644 --- a/lib/compilation-prepare.sh +++ b/lib/compilation-prepare.sh @@ -201,6 +201,9 @@ compilation_prepare() cp -R ${SRC}/cache/sources/rtl8811cu/${rtl8811cuver#*:}/{core,hal,include,os_dep,platform,rtl8821c.mk} \ ${SRC}/cache/sources/${LINUXSOURCEDIR}/drivers/net/wireless/rtl8811cu + # Patch + process_patch_file "${SRC}/patch/misc/wireless-rtl8811cu-disable-debug.patch" "applying" + # Makefile cp ${SRC}/cache/sources/rtl8811cu/${rtl8811cuver#*:}/Makefile \ ${SRC}/cache/sources/${LINUXSOURCEDIR}/drivers/net/wireless/rtl8811cu/Makefile diff --git a/patch/misc/wireless-rtl8811cu-disable-debug.patch b/patch/misc/wireless-rtl8811cu-disable-debug.patch new file mode 100644 index 0000000000..e69999a85c --- /dev/null +++ b/patch/misc/wireless-rtl8811cu-disable-debug.patch @@ -0,0 +1,20 @@ +diff --git a/drivers/net/wireless/rtl8811cu/core/rtw_debug.c b/drivers/net/wireless/rtl8811cu/core/rtw_debug.c +index ddc96eb4f..634c5adb8 100755 +--- a/drivers/net/wireless/rtl8811cu/core/rtw_debug.c ++++ b/drivers/net/wireless/rtl8811cu/core/rtw_debug.c +@@ -6358,6 +6358,7 @@ ssize_t proc_set_lck(struct file *file, const char __user *buffer, size_t count, + inline void RTW_BUF_DUMP_SEL(uint _loglevel, void *sel, u8 *_titlestring, + bool _idx_show, const u8 *_hexdata, int _hexdatalen) + { ++#ifdef CONFIG_RTW_DEBUG + int __i; + u8 *ptr = (u8 *)_hexdata; + +@@ -6383,6 +6384,7 @@ inline void RTW_BUF_DUMP_SEL(uint _loglevel, void *sel, u8 *_titlestring, + } + _RTW_PRINT_SEL(sel, "\n"); + } ++#endif + } + #else + inline void _RTW_STR_DUMP_SEL(void *sel, char *str_out)