[Bugme-new] [Bug 33352] New: r8712u wlan driver cannot be configured with wireless_tools/iwconfig(8)
bugzilla-daemon at bugzilla.kernel.org
bugzilla-daemon at bugzilla.kernel.org
Fri Apr 15 14:58:23 PDT 2011
https://bugzilla.kernel.org/show_bug.cgi?id=33352
Summary: r8712u wlan driver cannot be configured with
wireless_tools/iwconfig(8)
Product: Drivers
Version: 2.5
Kernel Version: 2.6.37.x and 2.6.38.x all versions
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: Staging
AssignedTo: drivers_staging at kernel-bugs.osdl.org
ReportedBy: ino-news at spotteswoode.dnsalias.org
Regression: Yes
I am using an USB wlan adapter in ad-hoc mode. The product with the
working driver is listed by "usb-devices(1)" from the "usbutils" package
as:
T: Bus=01 Lev=01 Prnt=01 Port=06 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=8172 Rev=02.00
S: Manufacturer=Manufacturer Realtek
S: Product=RTL8191S WLAN Adapter
S: SerialNumber=00e04c000001
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl819xU
I am marking this bug as a regression, because the driver assigned to
this product works in all kernel versions 2.6.36.x right from the
beginning, but stopped once 2.6.37+ came out, and the matching drivers
were reorganized.
Here's what I want the iwconfig(8) output to look like:
0 3 # iwconfig wlan0
wlan0 802.11b/g link ESSID:"yyyyyy"
Mode:Ad-Hoc Frequency=2.412 GHz Cell: 12:7D:42:55:8D:38
Bit Rate=54 Mb/s
Retry min limit:7 RTS thr:off Fragment thr:off
Encryption key:xxxx-xxxx-xx Security mode:restricted
Power Management period:5s mode:All packets received
Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
The wlan adapter is connected to the main PC, it acts as a simple wlan
station providing internet to the neighbours notebook and a mobile
phone. The module "r8192s_usb" from the 2.6.36 series worked without
problems while the corresponding module "r8712u" from 2.6.37 and 2.6.38
(all versions) do not. "r8712u" cannot be configured using iwconfig(8)
from the "wireless_tools" package and it doesn't work in Ad-hoc mode.
Example:
0 4 # /usr/sbin/iwconfig wlan0
wlan0 IEEE 802.11b ESSID:"" Nickname:"rtl_wifi"
Mode:Ad-Hoc Cell: Not-Associated Bit Rate:0 kb/s
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
~
0 4 # iwconfig wlan0 essid mana
~
0 4 # /usr/sbin/iwconfig wlan0
wlan0 IEEE 802.11b ESSID:"" Nickname:"rtl_wifi"
Mode:Ad-Hoc Cell: Not-Associated Bit Rate:0 kb/s
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
Here's "dmesg" output from the working driver:
2011-03-17_18:21:16 kern.info: usb 1-7: Product: RTL8191S WLAN Adapter
2011-03-17_18:21:16 kern.info: usb 1-7: Manufacturer: Manufacturer Realtek
2011-03-17_18:21:16 kern.info: usb 1-7: SerialNumber: 00e04c000001
2011-03-17_18:21:16 kern.warn: r8192s_usb: module is from the staging
directory, the quality is unknown, you hav
e been warned.
2011-03-17_18:21:16 kern.debug: ieee80211_crypt: registered algorithm 'NULL'
2011-03-17_18:21:16 kern.debug: ieee80211_crypt: registered algorithm 'TKIP'
2011-03-17_18:21:16 kern.debug: ieee80211_crypt: registered algorithm 'CCMP'
2011-03-17_18:21:16 kern.debug: ieee80211_crypt: registered algorithm 'WEP'
2011-03-17_18:21:16 kern.info: Linux kernel driver for RTL8192 based WLAN cards
2011-03-17_18:21:16 kern.info: Copyright (c) 2007-2008, Realsil Wlan
2011-03-17_18:21:16 kern.debug: rtl819xU 1-7:1.0: usb_probe_interface
2011-03-17_18:21:16 kern.debug: rtl819xU 1-7:1.0: usb_probe_interface - got id
2011-03-17_18:21:34 kern.debug: rtl819xU:FirmwareRequest92S(): signature: 8192,
version: 902b, size: 30, imemsiz
e: 7408, sram size: 9688
2011-03-17_18:21:34 kern.debug: rtl819xU:FirmwareCheckReady(): LoadFWStatus(1),
success
2011-03-17_18:21:34 kern.debug: rtl819xU:FirmwareCheckReady(): LoadFWStatus(2),
success
2011-03-17_18:21:34 kern.debug: rtl819xU:FirmwareCheckReady(): DMEM code
download success, CPUStatus(0x3f)
2011-03-17_18:21:34 kern.debug: rtl819xU:FirmwareCheckReady(): polling load
firmware ready, CPUStatus(ff)
2011-03-17_18:21:34 kern.debug: rtl819xU:FirmwareCheckReady(): Current RCR
settings(0x157e20e)
2011-03-17_18:21:34 kern.debug: rtl819xU:FirmwareCheckReady(): LoadFWStatus(3),
success
2011-03-17_18:21:34 kern.debug: rtl819xU:FirmwareDownload92S(): Firmware
Download Success
2011-03-17_18:21:36 kern.info: ADDRCONF(NETDEV_UP): wlan0: link is not ready
2011-03-17_18:22:08 kern.debug: rtl819xU:Setting SW wep key
2011-03-17_18:22:09 kern.debug: rtl819xU:SetBWModeCallback8192SUsbWorkItem():
Switch to 20MHz bandwidth
2011-03-17_18:22:10 kern.warn: creating new IBSS cell
2011-03-17_18:22:10 kern.debug: rtl819xU:EnableHWSecurityConfig8192(): hwsec:
1, pairwise_key: 1, SECR_value: f
2011-03-17_18:22:10 kern.debug: rtl819xU:setKey(): dev: f6a00000, EntryNo: 0,
KeyIndex: 0, KeyType: 1, MacAddr: 00:00:00:00:00:00
2011-03-17_18:22:10 kern.warn: =============>ARFR0+rate_index*4:0xff5
2011-03-17_18:22:10 kern.info: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes
ready
2011-03-17_18:22:10 kern.warn: dm_check_edca_turbo():iot peer is 0x0:unknown,
bssid:1e:7f:0f:8a:5e:75
2011-03-17_18:22:16 kern.info: device wlan0 entered promiscuous mode
and this is from the broken driver:
2011-03-17_19:18:47 kern.info: usb 1-7: Product: RTL8191S WLAN Adapter
2011-03-17_19:18:47 kern.info: usb 1-7: Manufacturer: Manufacturer Realtek
2011-03-17_19:18:47 kern.info: usb 1-7: SerialNumber: 00e04c000001
2011-03-17_19:18:47 kern.warn: r8712u: module is from the staging directory,
the quality is unknown, you have been warned.
2011-03-17_19:18:47 kern.info: r8712u: DriverVersion: v7_0.20100831
2011-03-17_19:18:47 kern.info: r8712u: register rtl8712_netdev_ops to
netdev_ops
2011-03-17_19:18:47 kern.info: r8712u: USB_SPEED_HIGH with 4 endpoints
2011-03-17_19:18:47 kern.info: r8712u: Boot from EFUSE: Autoload OK
2011-03-17_19:18:47 kern.info: r8712u: CustomerID = 0x0000
2011-03-17_19:18:47 kern.info: r8712u: MAC Address from efuse =
00:1f:1f:52:9d:bd
2011-03-17_19:18:47 kern.info: usbcore: registered new interface driver r8712u
2011-03-17_19:19:07 kern.info: r8712u: 1 RCR=0x153f00e
2011-03-17_19:19:07 kern.info: r8712u: 2 RCR=0x553f00e
2011-03-17_19:19:07 kern.info: ADDRCONF(NETDEV_UP): wlan0: link is not ready
regards, clemens
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Bugme-new
mailing list