r8712u staging in kernel 3.2.9
Quoted 6 lines · Larry Finger
To help debug the problem, the attached patch will log the setting of the ESSID in the driver.
For some reason, there is one garbage printout and the correct one for every call, but that should not cause a problem.
Hi Larry,
I applied the "debug" patch you sent and I followed your test instructions. Still, the same problem.
Moreover I didn't see any debug output; maybe I'm missing something. The log of my test is attached.
Regards,
-- Alex
[/linux-3.2.9/drivers/staging/rtl8712]$ ls -og rtl871x_ioctl_linux* -rw-rw-r-- 1 70837 2012-03-09 12:58 rtl871x_ioctl_linux.c -rw-rw-r-- 1 70549 2012-02-29 19:32 rtl871x_ioctl_linux.c-orig -rw-r--r-- 1 237684 2012-03-09 13:11 rtl871x_ioctl_linux.o
------
[/linux-3.2.9/drivers/staging/rtl8712]$ diff rtl871x_ioctl_linux.c-orig \
rtl871x_ioctl_linux.c
1296c1296,1297
< if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY))
---
Quoted 2 lines
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) {
printk(KERN_INFO "*********** in %s - Returned -EBUSY\n", __func__);1298c1299,1301
< if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING))
---
Quoted 3 lines
}
if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) {
printk(KERN_INFO "*********** in %s - Returned 0\n", __func__);1300c1303,1305
< if (wrqu->essid.length > IW_ESSID_MAX_SIZE)
---
Quoted 3 lines
}
if (wrqu->essid.length > IW_ESSID_MAX_SIZE) {
printk(KERN_INFO "*********** in %s - Returned -E2BIG\n", __func__);1301a1307
Quoted 1 line
}
1340a1347
Quoted 1 line
printk(KERN_INFO "r8712u: Set ESSID to %s\n", ndis_ssid.Ssid);
-----------------------------------------------------------------
[~/Temp]$ iwconfig --version
iwconfig Wireless-Tools version 29
Compatible with Wireless Extension v11 to v22.
Kernel Currently compiled with Wireless Extension v22.
------
usb 8-1: new high-speed USB device number 2 using ehci_hcd
r8712u: module is from the staging directory, the quality is unknown, you have been warned.
r8712u: DriverVersion: v7_0.20100831
r8712u: register rtl8712_netdev_ops to netdev_ops
r8712u: USB_SPEED_HIGH with 4 endpoints
r8712u: Boot from EFUSE: Autoload OK
r8712u: CustomerID = 0x0000
r8712u: MAC Address from efuse = 00:1a:ef:25:2d:f9
r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
usbcore: registered new interface driver r8712u
------
[~/Temp]$ iwconfig --version
iwconfig Wireless-Tools version 29
Compatible with Wireless Extension v11 to v22.
Kernel Currently compiled with Wireless Extension v22.
wlan0 Recommend Wireless Extension v16 or later,
Currently compiled with Wireless Extension v22.
------
[~/Temp]$ iwconfig wlan0
wlan0 unassociated Nickname:"rtl_wifi"
Mode:Auto Access Point: Not-Associated Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
------
[~/Temp]$ iwconfig wlan0 essid radius
r8712u: Set ESSID to radius
------
[~/Temp]$ iwconfig wlan0
wlan0 unassociated Nickname:"rtl_wifi"
Mode:Auto Access Point: Not-Associated Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
------
[~/Temp]$ iwconfig wlan0 key restricted 1234f0033edaebf3f7dab4ceca
r8712u: r8711_wx_set_enc: IW_ENCODE_RESTRICTED
------
[~/Temp]$ iwconfig wlan0
wlan0 unassociated Nickname:"rtl_wifi"
Mode:Auto Access Point: Not-Associated Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
------
Excerpt from 'dmesg':
usb 8-1: new high-speed USB device number 2 using ehci_hcd
r8712u: module is from the staging directory, the quality is unknown, you have been warned.
r8712u: DriverVersion: v7_0.20100831
r8712u: register rtl8712_netdev_ops to netdev_ops
r8712u: USB_SPEED_HIGH with 4 endpoints
r8712u: Boot from EFUSE: Autoload OK
r8712u: CustomerID = 0x0000
r8712u: MAC Address from efuse = 00:1a:ef:25:2d:f9
r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
usbcore: registered new interface driver r8712u
r8712u: Set ESSID to radius
r8712u: r8711_wx_set_enc: IW_ENCODE_RESTRICTED
------
Tail of 'kern.log':
Mar 9 13:23:25 AlexLFS kernel: usb 8-1: new high-speed USB device number 2 using ehci_hcd Mar 9 13:23:25 AlexLFS kernel: r8712u: module is from the staging directory, the quality is unknown, you have been warned. Mar 9 13:23:25 AlexLFS kernel: r8712u: DriverVersion: v7_0.20100831 Mar 9 13:23:25 AlexLFS kernel: r8712u: register rtl8712_netdev_ops to netdev_ops Mar 9 13:23:25 AlexLFS kernel: r8712u: USB_SPEED_HIGH with 4 endpoints Mar 9 13:23:25 AlexLFS kernel: r8712u: Boot from EFUSE: Autoload OK Mar 9 13:23:25 AlexLFS kernel: r8712u: CustomerID = 0x0000 Mar 9 13:23:25 AlexLFS kernel: r8712u: MAC Address from efuse = 00:1a:ef:25:2d:f9 Mar 9 13:23:25 AlexLFS kernel: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin" Mar 9 13:23:25 AlexLFS kernel: usbcore: registered new interface driver r8712u Mar 9 13:26:48 AlexLFS kernel: r8712u: Set ESSID to radius Mar 9 13:29:59 AlexLFS kernel: r8712u: r8711_wx_set_enc: IW_ENCODE_RESTRICTED Mar 9 13:42:39 AlexLFS kernel: usb 8-1: USB disconnect, device number 2
Quoted 7 lines · On 03/09/2012 01:06 PM, [email protected] wrote:
Hi Larry,
I applied the "debug" patch you sent and I followed your test instructions. Still, the same problem.
Moreover I didn't see any debug output; maybe I'm missing something. The log of my test is attached.
Most of the messages were set to output only when the setting of the ESSID failed. Yours did not, and the ESSID was set. I was surprised to see you using my ESSID of "radius", and my WEP key (at least the obscured version I sent).
I have no idea what is going wrong on your system. All the proper routines are entered, and the data seem to be set correctly. I'm stumped.
Larry