Comments (1)
There are some minor changes required for this driver to compile in newer kernels:
diff --git a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c
index 4c1089a..2a00b28 100755
--- a/os_dep/linux/usb_intf.c
+++ b/os_dep/linux/usb_intf.c
@@ -1577,8 +1577,14 @@ static int __init rtw_drv_entry(void)
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_drv_entry\n"));
DBG_871X(DRV_NAME " driver version=%s\n", DRIVERVERSION);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdate-time"
+#endif
DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
-
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)
+#pragma GCC diagnostic pop
+#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
//console_suspend_enabled=0;
#endif
Just add blocks marked with + in the file os_dep/linux/usb_intf.c. The new code around DBG_871X should look like this:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdate-time"
#endif
DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)
#pragma GCC diagnostic pop
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
from rt8192cu.
Related Issues (11)
- Compiling issue with GCC 4.8.2-21~rpi3rpi1 ?
- Monitor mode?
- Will this work for Edimax EW-7811Un HOT 3
- TXPower setting not working on RTL8188RU
- make aborts HOT 2
- kernel module stops working after a while with "No buffer space available"
- compliling on Odroid C2 with Kali linux
- system unstable when using rt8192cu wifi card as hostapd accesspoint HOT 3
- macchanger MAC doesn't stick HOT 2
- Failed to compile in gcc 4.9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rt8192cu.