LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware14 and wifi r8712u module (http://www.linuxquestions.org/questions/slackware-14/slackware14-and-wifi-r8712u-module-4175430170/)

xspirix 10-02-2012 06:16 PM

slackware14 and wifi r8712u module
 
Hi there,
I have installed slackware14 and my wireless card stopped working. in 13.37 was fine. Probably it is a problem with the module in the kernel 3.2.29 version. Using Networkmanager or wicd I cannot get connection. That's weird because using i.e. kubuntu live 12.04 bearing 3.2.0 kernel the wireless works properly.
My device is:
Bus 001 Device 002: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter

I cannot really figure out where to check the problem. I have compiled also the kernel version 3.1.10 and 3.2.x but nothing changed.

any help??

thanks in advance

Didier Spaier 10-02-2012 06:27 PM

Have a look at the answer I gave here to a similar question.

Darth Vader 10-02-2012 06:38 PM

Quote:

Originally Posted by xspirix (Post 4795489)
anny help??

Use instead the module 8712u, built from Realtek official rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405 patched with:

Code:

diff -up rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/include/drv_types.h.orig rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/include/drv_types.h
--- rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/include/drv_types.h.orig        2012-04-05 04:42:16.000000000 +0200
+++ rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/include/drv_types.h        2012-09-29 02:17:30.352414947 +0200
@@ -49,6 +49,9 @@
 
 #ifdef PLATFORM_LINUX
 #include <drv_types_linux.h>
+
+
+#include <linux/interrupt.h>
 #endif
 
 enum _NIC_VERSION {
diff -up rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/os_intf/linux/usb_intf.c.orig rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/os_intf/linux/usb_intf.c
--- rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/os_intf/linux/usb_intf.c.orig        2012-09-29 02:21:01.790552939 +0200
+++ rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/os_intf/linux/usb_intf.c        2012-09-29 02:20:19.301529914 +0200
@@ -45,6 +45,8 @@
 
 #endif
 
+#include <linux/module.h>
+
 #ifdef CONFIG_80211N_HT
 extern int ht_enable;
 extern int cbw40_enable;

PS. That driver works fine (and happy pollute your dmesg and syslog) until the kernel 3.6.0, where it don't like your credentials to connect at any network.

xspirix 10-03-2012 02:59 AM

Quote:

Originally Posted by Darth Vader (Post 4795498)
Use instead the module 8712u, built from Realtek official rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405 patched with:

Code:

diff -up rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/include/drv_types.h.orig rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/include/drv_types.h
--- rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/include/drv_types.h.orig        2012-04-05 04:42:16.000000000 +0200
+++ rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/include/drv_types.h        2012-09-29 02:17:30.352414947 +0200
@@ -49,6 +49,9 @@
 
 #ifdef PLATFORM_LINUX
 #include <drv_types_linux.h>
+
+
+#include <linux/interrupt.h>
 #endif
 
 enum _NIC_VERSION {
diff -up rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/os_intf/linux/usb_intf.c.orig rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/os_intf/linux/usb_intf.c
--- rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/os_intf/linux/usb_intf.c.orig        2012-09-29 02:21:01.790552939 +0200
+++ rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/os_intf/linux/usb_intf.c        2012-09-29 02:20:19.301529914 +0200
@@ -45,6 +45,8 @@
 
 #endif
 
+#include <linux/module.h>
+
 #ifdef CONFIG_80211N_HT
 extern int ht_enable;
 extern int cbw40_enable;

PS. That driver works fine (and happy pollute your dmesg and syslog) until the kernel 3.6.0, where it don't like your credentials to connect at any network.

Thanks to everybody. I will try later on. The module is loaded at boot and networkmanager and/or wicd are able to see my wifi connection. In fact there is an attempt to connect to it but it fails. No error in messages or syslog neither in wpa_supplicant.log
I will try the patch. I confirm that in the kernel 3.2.0.x in kubuntu it works like a charm.
In order to apply the patch I just copy that code and in source code of the realtek driver type
patch -p1 < file ?? is this correct?

Darth Vader 10-03-2012 10:52 AM

Quote:

Originally Posted by xspirix (Post 4795766)
patch -p1 < file

Yes. This is the right way. :)

BTW, you need this patch because this driver doesn't compile beyond of kernel 3.0.2 without it. Still, you will have reported some debug and an trace warning into dmesg and syslog. However, it works fine.

xspirix 10-03-2012 06:06 PM

Hi,
the patch and the installation of realtek driver were both fine. however still not working. first of all at the boot of 3.2.29 slackware load the r8712u driver properly. so I remove it with rmmod and I have loaded the new driver 8712u. but not success. networkmanager is able to connect but the connection is kept for a few seconds.
Now following this thread https://bugs.archlinux.org/task/27996 I have dowloaded the kernel 3.2.14 and 3.3.1 and I will try them.

just wondering whether do I need to downgrande the firmware too.

thanks in advance

xspirix 10-04-2012 02:17 AM

Nothing changed. neither 3.2.14 or 3.3.1 worked for my realtek. I am really wondering now if I need to downgrade the firmware to the old one (13.37 version)

H_TeXMeX_H 10-04-2012 04:50 AM

Why 3.3.1 ? That's not even stable. Try 3.4.12, that's the one I know works. The firmware should already be installed, so it should work. Make sure you have the configuration set up properly.

xspirix 10-04-2012 04:52 AM

that was from the archlinux mailing list. are you saying that in 3.4.12 the RTL8191SU works?

H_TeXMeX_H 10-04-2012 05:32 AM

I have used the 8712u module with 3.4.12 and it works.

xspirix 10-04-2012 05:53 AM

Ok. so you are talking about the realtek official driver with the 3.4.12 kernel. Fine I will try it. The driver that you have used are the same shown in the previous post? and have you used the same patch for it?

thanks a lot

H_TeXMeX_H 10-04-2012 05:59 AM

I have only used the one in the staging area of the kernel.

Code:

CONFIG_R8712U=m
If it still doesn't work, make sure you have the most recent firmware (should already be installed in 14.0).

xspirix 10-04-2012 06:16 AM

ah okay. So you are using the r8712u module. the 8712u module is from the realtek official driver.

thanks a lot. I will surely try it

cross finger

xspirix 10-05-2012 03:33 PM

Hi guys, 3.4.12 worked like a charm!!! the connection went fine through networkmanager in kde. The only thing strange is that the google webpage and similar (gmail, etc ...) does not work!! other sites works perfectly. in the same time using another computer (windows and/or) the google webpage are not visualized too. as soon I close the connection on my slackware workstation everything is back fine on the other pc!! I tried several time and it seems that when my slackware workstation is connected the google webpage is stopped.... it is so weird isn't_????

any help???

thanks agagin

Darth Vader 10-05-2012 04:18 PM

Quote:

Originally Posted by xspirix (Post 4798337)
Hi guys, 3.4.12 worked like a charm!!!

Which module worked? The native r8712u or the Realtek 8712u?


All times are GMT -5. The time now is 01:45 PM.