mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-23 13:29:33 +00:00
[ wireless drivers ] Disable debug mode on 8811CU
We don't need flooding in the logs since we provide those drivers as is.
This commit is contained in:
parent
060241f0bb
commit
564d2ff571
2 changed files with 23 additions and 0 deletions
20
patch/misc/wireless-rtl8811cu-disable-debug.patch
Normal file
20
patch/misc/wireless-rtl8811cu-disable-debug.patch
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue