Quote:
Originally Posted by darksaurian
Code:
CC [M] /usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o
/usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c: In function 'rtw_proc_init_one':
/usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:313:3: error: implicit declaration of function 'create_proc_entry' [-Werror=implicit-function-declaration]
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
^
/usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:313:11: warning: assignment makes pointer from integer without a cast [enabled by default]
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
^
/usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:320:3: error: implicit declaration of function 'create_proc_read_entry' [-Werror=implicit-function-declaration]
entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
^
|
These (and your other) errors can be eliminated by commenting out CONFIG_PROC_DEBUG in the Makefile. I am using the same driver with Linux 3.12.x and it works fine. Changed the followings --
Code:
diff -pru rtl8192cu/Makefile rtl8192cu.new/Makefile
--- rtl8192cu/Makefile 2013-09-11 05:56:55.000000000 +0200
+++ rtl8192cu.new/Makefile 2013-12-06 16:09:37.000000000 +0100
@@ -1,5 +1,5 @@
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
-EXTRA_CFLAGS += -O1
+#EXTRA_CFLAGS += -O1
#EXTRA_CFLAGS += -O3
#EXTRA_CFLAGS += -Wall
#EXTRA_CFLAGS += -Wextra
diff -pru rtl8192cu/include/autoconf.h rtl8192cu.new/include/autoconf.h
--- rtl8192cu/include/autoconf.h 2013-09-11 05:56:55.000000000 +0200
+++ rtl8192cu.new/include/autoconf.h 2013-12-06 16:09:37.000000000 +0100
@@ -296,9 +296,9 @@
//#define CONFIG_DEBUG_RTL871X
#define DBG 0
-#define CONFIG_DEBUG_RTL819X
+//#define CONFIG_DEBUG_RTL819X
-#define CONFIG_PROC_DEBUG 1
+//#define CONFIG_PROC_DEBUG 1
//#define DBG_IO
//#define DBG_DELAY_OS
@@ -324,7 +324,7 @@
//#define DBG_MEMORY_LEAK 1
-#define DBG_CONFIG_ERROR_DETECT
+//#define DBG_CONFIG_ERROR_DETECT
//#define DBG_CONFIG_ERROR_RESET
//TX use 1 urb
Quote:
Originally Posted by darksaurian
I think it has something to do with kernel 3.10. But then where did my /lib/modules/3.10.17/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko come from? Did the Slackware team patch it to get it to compile?
|
Surely not. Slackware is open source and there is no magic. The rtl8192cu.ko is from rtlwifi. Your module, once successfully compiled, will be called 8192cu.ko