CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/patch/misc/wireless-fail-if-debug-is-disabled.patch
Views: 3959
1
diff --git a/drivers/net/wireless/rtl8811cu/core/rtw_debug.c b/drivers/net/wireless/rtl8811cu/core/rtw_debug.c
2
index ddc96eb4f..634c5adb8 100755
3
--- a/core/rtw_debug.c
4
+++ b/core/rtw_debug.c
5
@@ -6358,6 +6358,7 @@ ssize_t proc_set_lck(struct file *file, const char __user *buffer, size_t count,
6
inline void RTW_BUF_DUMP_SEL(uint _loglevel, void *sel, u8 *_titlestring,
7
bool _idx_show, const u8 *_hexdata, int _hexdatalen)
8
{
9
+#ifdef CONFIG_RTW_DEBUG
10
int __i;
11
u8 *ptr = (u8 *)_hexdata;
12
13
@@ -6383,6 +6384,7 @@ inline void RTW_BUF_DUMP_SEL(uint _loglevel, void *sel, u8 *_titlestring,
14
}
15
_RTW_PRINT_SEL(sel, "\n");
16
}
17
+#endif
18
}
19
#else
20
inline void _RTW_STR_DUMP_SEL(void *sel, char *str_out)
21
22