FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 09-01-2012, 07:57 AM
Kirill Churin
 
Default problem with realtek 8192cu usb wireless card

On Sat, Sep 1, 2012 at 8:14 PM, Xeslaro <bfsc.yb@gmail.com> wrote:
> i bought a usb wireless card TP-Link WN821Nv4 with idVendor=0bda and idProduct=8178, which shows it's a realtek 8192cu card. although i'm using linux kernel 3.2.6, which includes a module called rtl8192cu, from the source i could see there's no support for the specific idVendor and idProduct.
>
> i downloaded the driver source from the official realtek website, which does support the idVendor and idProduct, and compiled the driver successfully, i could see wlan1 using ip link show, and there is an entry called wlan1 under /sys/class/net. however, neither iw nor wpa_supplicant would work, they all complain that there is no such device, it seems that the corresponding /sys/class/ieee80211/wlan1 entry is missing.
>
> another usb wireless card wlan0 is working normally on the system, and i compared /sys/class/net/wlan0 and /sys/class/net/wlan1, the only one missing is a symbolic link called phy80211 pointing to /sys/class/ieee80211...
>
> any idea why this is happening?
>
> iw dev wlan1 info
> command failed: No such device (-19)
>
> wpa_supplicant -c someconf -i wlan1 -d
> wpa_supplicant v1.0
> random: Trying to read entropy from /dev/random
> Initializing interface 'wlan1' conf 'someconf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
> Configuration file 'someconf' -> 'someconf'
> Reading configuration file 'someconf'
> Priority group 0
> id=0 ssid='somessid'
> Could not open file /sys/class/net/wlan1/phy80211/name: No such file or directory
> rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
> nl80211: Set mode ifindex 6 iftype 2 (STATION)
> nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
> nl80211: Try mode change after setting interface down
> nl80211: Set mode ifindex 6 iftype 2 (STATION)
> nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
> nl80211: Interface mode change to 2 from 0 failed
> nl80211: Could not configure driver to use managed mode
> netlink: Operstate: linkmode=0, operstate=6
> nl80211: Set mode ifindex 6 iftype 2 (STATION)
> nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
> nl80211: Try mode change after setting interface down
> nl80211: Set mode ifindex 6 iftype 2 (STATION)
> nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
> nl80211: Interface mode change to 2 from 0 failed
> wlan1: Failed to initialize driver interface
> Failed to add interface wlan1
> wlan1: Cancelling scan request
> wlan1: Cancelling authentication timeout
>
> dmesg from the wlan1 driver:
> [ 2537.374661] rtw driver version=v3.4.3_4369.20120622
> [ 2537.380171] Build at: Sep 1 2012 13:52:58
> [ 2537.385927] register rtw_netdev_ops to netdev_ops
> [ 2537.391583] CHIP TYPE: RTL8188C_8192C
> [ 2537.397244]
> [ 2537.397246] usb_endpoint_descriptor(0):
> [ 2537.408120] bLength=7
> [ 2537.413582] bDescriptorType=5
> [ 2537.419078] bEndpointAddress=81
> [ 2537.424544] wMaxPacketSize=200
> [ 2537.429913] bInterval=0
> [ 2537.435244] RT_usb_endpoint_is_bulk_in = 1
> [ 2537.440624]
> [ 2537.440626] usb_endpoint_descriptor(1):
> [ 2537.450986] bLength=7
> [ 2537.456117] bDescriptorType=5
> [ 2537.461147] bEndpointAddress=2
> [ 2537.466243] wMaxPacketSize=200
> [ 2537.471125] bInterval=0
> [ 2537.475760] RT_usb_endpoint_is_bulk_out = 2
> [ 2537.480458]
> [ 2537.480460] usb_endpoint_descriptor(2):
> [ 2537.489402] bLength=7
> [ 2537.493733] bDescriptorType=5
> [ 2537.497926] bEndpointAddress=3
> [ 2537.502099] wMaxPacketSize=200
> [ 2537.506073] bInterval=0
> [ 2537.509887] RT_usb_endpoint_is_bulk_out = 3
> [ 2537.513856]
> [ 2537.513858] usb_endpoint_descriptor(3):
> [ 2537.521544] bLength=7
> [ 2537.525452] bDescriptorType=5
> [ 2537.529399] bEndpointAddress=84
> [ 2537.533343] wMaxPacketSize=40
> [ 2537.537275] bInterval=1
> [ 2537.541104] RT_usb_endpoint_is_int_in = 4, Interval = 1
> [ 2537.545186] nr_endpoint=4, in_num=2, out_num=2
> [ 2537.545189]
> [ 2537.553163] USB_SPEED_HIGH
> [ 2537.557627] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_92C.
> [ 2537.562081] RF_Type is 2!!
> [ 2537.566879] EEPROM type is E-FUSE
> [ 2537.571336] ====> ReadAdapterInfo8192C
> [ 2537.576120] Boot from EFUSE, Autoload OK !
> [ 2537.723758] EEPROMVID = 0x0bda
> [ 2537.728133] EEPROMPID = 0x8178
> [ 2537.566879] EEPROM type is E-FUSE
> [ 2537.571336] ====> ReadAdapterInfo8192C
> [ 2537.576120] Boot from EFUSE, Autoload OK !
> [ 2537.723758] EEPROMVID = 0x0bda
> [ 2537.728133] EEPROMPID = 0x8178
> [ 2537.732330] EEPROMCustomerID : 0x00
> [ 2537.736555] EEPROMSubCustomerID: 0x00
> [ 2537.740796] RT_CustomerID: 0x00
> [ 2537.745040] _ReadMACAddress MAC Address from EFUSE = 6c:e8:73:bf:97:30
> [ 2537.749722] EEPROMRegulatory = 0x0
> [ 2537.754358] _ReadBoardType(0)
> [ 2537.758898] BT Coexistance = disable
> [ 2537.763473] RT_ChannelPlan: 0x02
> [ 2537.767994] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
> [ 2537.778058] ### PS params=> power_mgnt(1),usbss_enable(0) ###
> [ 2537.783578] ### AntDivCfg(0)
> [ 2537.789119] readAdapterInfo_8192CU(): REPLACEMENT = 1
> [ 2537.794760] <==== ReadAdapterInfo8192C in 223 ms
> [ 2537.801159] rtw_macaddr_cfg MAC Address = 6c:e8:73:bf:97:30
> [ 2537.806968] MAC Address from pnetdev->dev_addr= 6c:e8:73:bf:97:30
> [ 2537.816145] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
> [ 2537.823404] usbcore: registered new interface driver rtl8192cu
> [ 2823.516027] +871x_drv - drv_open, bup=0
> [ 2823.526453] ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
> [ 2823.526459] FirmwareDownload92C accquire FW from embedded image
> [ 2823.526465] fw_ver=v80, fw_subver=0, sig=0x88c0
> [ 2823.554564] fw download ok!
> [ 2823.554569] Set RF Chip ID to RF_6052 and RF type to 2.
> [ 2823.961311] IQK:Start!!!
> [ 2823.981186] Path A IQK Success!!
> [ 2823.993686] Path B IQK Success!!
> [ 2824.009685] Path A IQK Success!!
> [ 2824.021561] Path B IQK Success!!
> [ 2824.032937] IQK: final_candidate is 0
> [ 2824.039247] IQK: RegE94=100 RegE9C=5 RegEA4=f8 RegEAC=3fe RegEB4=101 RegEBC=c RegEC4=f7 RegECC=2
> [ 2824.039252] Path A IQ Calibration Success !
> [ 2824.060810] Path B IQ Calibration Success !
> [ 2824.176811] pdmpriv->TxPowerTrackControl = 1
> [ 2824.188067] MAC Address from REG_MACID = 6c:e8:73:bf:97:30
> [ 2824.194419] rtl8192cu_hal_init in 678ms
> [ 2824.200589] MAC Address = 6c:e8:73:bf:97:30
> [ 2824.212229] -871x_drv - drv_open, bup=1
> [ 2824.218500] ADDRCONF(NETDEV_UP): wlan1: link is not ready
> [ 2824.224905] (2)871x_drv - drv_close, bup=1, hw_init_completed=1
> [ 2824.212229] -871x_drv - drv_open, bup=1
> [ 2824.218500] ADDRCONF(NETDEV_UP): wlan1: link is not ready
> [ 2824.224905] (2)871x_drv - drv_close, bup=1, hw_init_completed=1
> [ 2824.232313] rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
> [ 2824.232806] -871x_drv - drv_close, bup=1
> [ 2824.234001] +871x_drv - drv_open, bup=1
> [ 2824.234022] -871x_drv - drv_open, bup=1
> [ 2824.234485] ADDRCONF(NETDEV_UP): wlan1: link is not ready
> [ 2826.240096] ==>pwr_state_check_handler .fw_state(0)
> [ 2826.247193] ==> rtw_ps_cmd , enqueue CMD
> [ 2826.257815] ==>rtw_ps_processor .fw_state(0)
> [ 2826.265242] ==>ips_enter cnts:1
> [ 2826.272692] ==>power_saving_ctrl_wk_hdl change rf to OFF...LED(0x00028208)....
> [ 2826.272696]
> [ 2826.294579] ===> rtw_ips_pwr_down...................
> [ 2826.302083] ====> rtw_ips_dev_unload...
> [ 2826.332815] usb_read_port_cancel
> [ 2826.339932] usb_write_port_cancel
> [ 2826.346315] ==> rtl8192cu_hal_deinit
> [ 2826.352436] bkeepfwalive(0)
> [ 2826.358298] card disble without HWSM...........
> [ 2826.369067] <=== rtw_ips_pwr_down..................... in 75ms

Hello, for the free driver, it's stated that non-free firmware must be
present for this card: http://wiki.debian.org/rtl819x#Drivers
I can't find it in the Arch repos, so you can download debian's
package and put firmware in it's location yourself ugly way (or make
package of it and push it to AUR).

As of non-free drivers, you can check AUR
https://aur.archlinux.org/packages.php?O=0&K=8192&do_Search=Go and try
this packages, maybe some will work.

--
Kirill Churin
Jabber: reflexing@reflexing.ru
 
Old 09-01-2012, 02:12 PM
Xeslaro
 
Default problem with realtek 8192cu usb wireless card

i bought a usb wireless card TP-Link WN821Nv4 with idVendor=0bda and idProduct=8178, which shows it's a realtek 8192cu card. although i'm using linux kernel 3.2.6, which includes a module called rtl8192cu, from the source i could see there's no support for the specific idVendor and idProduct.

i downloaded the driver source from the official realtek website, which does support the idVendor and idProduct, and compiled the driver successfully, i could see wlan1 using ip link show, and there is an entry called wlan1 under /sys/class/net. however, neither iw nor wpa_supplicant would work, they all complain that there is no such device, it seems that the corresponding /sys/class/ieee80211/wlan1 entry is missing.

another usb wireless card wlan0 is working normally on the system, and i compared /sys/class/net/wlan0 and /sys/class/net/wlan1, the only one missing is a symbolic link called phy80211 pointing to /sys/class/ieee80211...

any idea why this is happening?

iw dev wlan1 info
command failed: No such device (-19)

wpa_supplicant -c someconf -i wlan1 -d
wpa_supplicant v1.0
random: Trying to read entropy from /dev/random
Initializing interface 'wlan1' conf 'someconf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file 'someconf' -> 'someconf'
Reading configuration file 'someconf'
Priority group 0
id=0 ssid='somessid'
Could not open file /sys/class/net/wlan1/phy80211/name: No such file or directory
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Interface mode change to 2 from 0 failed
nl80211: Could not configure driver to use managed mode
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Interface mode change to 2 from 0 failed
wlan1: Failed to initialize driver interface
Failed to add interface wlan1
wlan1: Cancelling scan request
wlan1: Cancelling authentication timeout

dmesg from the wlan1 driver:
[ 2537.374661] rtw driver version=v3.4.3_4369.20120622
[ 2537.380171] Build at: Sep 1 2012 13:52:58
[ 2537.385927] register rtw_netdev_ops to netdev_ops
[ 2537.391583] CHIP TYPE: RTL8188C_8192C
[ 2537.397244]
[ 2537.397246] usb_endpoint_descriptor(0):
[ 2537.408120] bLength=7
[ 2537.413582] bDescriptorType=5
[ 2537.419078] bEndpointAddress=81
[ 2537.424544] wMaxPacketSize=200
[ 2537.429913] bInterval=0
[ 2537.435244] RT_usb_endpoint_is_bulk_in = 1
[ 2537.440624]
[ 2537.440626] usb_endpoint_descriptor(1):
[ 2537.450986] bLength=7
[ 2537.456117] bDescriptorType=5
[ 2537.461147] bEndpointAddress=2
[ 2537.466243] wMaxPacketSize=200
[ 2537.471125] bInterval=0
[ 2537.475760] RT_usb_endpoint_is_bulk_out = 2
[ 2537.480458]
[ 2537.480460] usb_endpoint_descriptor(2):
[ 2537.489402] bLength=7
[ 2537.493733] bDescriptorType=5
[ 2537.497926] bEndpointAddress=3
[ 2537.502099] wMaxPacketSize=200
[ 2537.506073] bInterval=0
[ 2537.509887] RT_usb_endpoint_is_bulk_out = 3
[ 2537.513856]
[ 2537.513858] usb_endpoint_descriptor(3):
[ 2537.521544] bLength=7
[ 2537.525452] bDescriptorType=5
[ 2537.529399] bEndpointAddress=84
[ 2537.533343] wMaxPacketSize=40
[ 2537.537275] bInterval=1
[ 2537.541104] RT_usb_endpoint_is_int_in = 4, Interval = 1
[ 2537.545186] nr_endpoint=4, in_num=2, out_num=2
[ 2537.545189]
[ 2537.553163] USB_SPEED_HIGH
[ 2537.557627] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_92C.
[ 2537.562081] RF_Type is 2!!
[ 2537.566879] EEPROM type is E-FUSE
[ 2537.571336] ====> ReadAdapterInfo8192C
[ 2537.576120] Boot from EFUSE, Autoload OK !
[ 2537.723758] EEPROMVID = 0x0bda
[ 2537.728133] EEPROMPID = 0x8178
[ 2537.566879] EEPROM type is E-FUSE
[ 2537.571336] ====> ReadAdapterInfo8192C
[ 2537.576120] Boot from EFUSE, Autoload OK !
[ 2537.723758] EEPROMVID = 0x0bda
[ 2537.728133] EEPROMPID = 0x8178
[ 2537.732330] EEPROMCustomerID : 0x00
[ 2537.736555] EEPROMSubCustomerID: 0x00
[ 2537.740796] RT_CustomerID: 0x00
[ 2537.745040] _ReadMACAddress MAC Address from EFUSE = 6c:e8:73:bf:97:30
[ 2537.749722] EEPROMRegulatory = 0x0
[ 2537.754358] _ReadBoardType(0)
[ 2537.758898] BT Coexistance = disable
[ 2537.763473] RT_ChannelPlan: 0x02
[ 2537.767994] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
[ 2537.778058] ### PS params=> power_mgnt(1),usbss_enable(0) ###
[ 2537.783578] ### AntDivCfg(0)
[ 2537.789119] readAdapterInfo_8192CU(): REPLACEMENT = 1
[ 2537.794760] <==== ReadAdapterInfo8192C in 223 ms
[ 2537.801159] rtw_macaddr_cfg MAC Address = 6c:e8:73:bf:97:30
[ 2537.806968] MAC Address from pnetdev->dev_addr= 6c:e8:73:bf:97:30
[ 2537.816145] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 2537.823404] usbcore: registered new interface driver rtl8192cu
[ 2823.516027] +871x_drv - drv_open, bup=0
[ 2823.526453] ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
[ 2823.526459] FirmwareDownload92C accquire FW from embedded image
[ 2823.526465] fw_ver=v80, fw_subver=0, sig=0x88c0
[ 2823.554564] fw download ok!
[ 2823.554569] Set RF Chip ID to RF_6052 and RF type to 2.
[ 2823.961311] IQK:Start!!!
[ 2823.981186] Path A IQK Success!!
[ 2823.993686] Path B IQK Success!!
[ 2824.009685] Path A IQK Success!!
[ 2824.021561] Path B IQK Success!!
[ 2824.032937] IQK: final_candidate is 0
[ 2824.039247] IQK: RegE94=100 RegE9C=5 RegEA4=f8 RegEAC=3fe RegEB4=101 RegEBC=c RegEC4=f7 RegECC=2
[ 2824.039252] Path A IQ Calibration Success !
[ 2824.060810] Path B IQ Calibration Success !
[ 2824.176811] pdmpriv->TxPowerTrackControl = 1
[ 2824.188067] MAC Address from REG_MACID = 6c:e8:73:bf:97:30
[ 2824.194419] rtl8192cu_hal_init in 678ms
[ 2824.200589] MAC Address = 6c:e8:73:bf:97:30
[ 2824.212229] -871x_drv - drv_open, bup=1
[ 2824.218500] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2824.224905] (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 2824.212229] -871x_drv - drv_open, bup=1
[ 2824.218500] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2824.224905] (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 2824.232313] rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
[ 2824.232806] -871x_drv - drv_close, bup=1
[ 2824.234001] +871x_drv - drv_open, bup=1
[ 2824.234022] -871x_drv - drv_open, bup=1
[ 2824.234485] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2826.240096] ==>pwr_state_check_handler .fw_state(0)
[ 2826.247193] ==> rtw_ps_cmd , enqueue CMD
[ 2826.257815] ==>rtw_ps_processor .fw_state(0)
[ 2826.265242] ==>ips_enter cnts:1
[ 2826.272692] ==>power_saving_ctrl_wk_hdl change rf to OFF...LED(0x00028208)....
[ 2826.272696]
[ 2826.294579] ===> rtw_ips_pwr_down...................
[ 2826.302083] ====> rtw_ips_dev_unload...
[ 2826.332815] usb_read_port_cancel
[ 2826.339932] usb_write_port_cancel
[ 2826.346315] ==> rtl8192cu_hal_deinit
[ 2826.352436] bkeepfwalive(0)
[ 2826.358298] card disble without HWSM...........
[ 2826.369067] <=== rtw_ips_pwr_down..................... in 75ms
 
Old 09-01-2012, 02:14 PM
Xeslaro
 
Default problem with realtek 8192cu usb wireless card

i bought a usb wireless card TP-Link WN821Nv4 with idVendor=0bda and idProduct=8178, which shows it's a realtek 8192cu card. although i'm using linux kernel 3.2.6, which includes a module called rtl8192cu, from the source i could see there's no support for the specific idVendor and idProduct.

i downloaded the driver source from the official realtek website, which does support the idVendor and idProduct, and compiled the driver successfully, i could see wlan1 using ip link show, and there is an entry called wlan1 under /sys/class/net. however, neither iw nor wpa_supplicant would work, they all complain that there is no such device, it seems that the corresponding /sys/class/ieee80211/wlan1 entry is missing.

another usb wireless card wlan0 is working normally on the system, and i compared /sys/class/net/wlan0 and /sys/class/net/wlan1, the only one missing is a symbolic link called phy80211 pointing to /sys/class/ieee80211...

any idea why this is happening?

iw dev wlan1 info
command failed: No such device (-19)

wpa_supplicant -c someconf -i wlan1 -d
wpa_supplicant v1.0
random: Trying to read entropy from /dev/random
Initializing interface 'wlan1' conf 'someconf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file 'someconf' -> 'someconf'
Reading configuration file 'someconf'
Priority group 0
id=0 ssid='somessid'
Could not open file /sys/class/net/wlan1/phy80211/name: No such file or directory
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Interface mode change to 2 from 0 failed
nl80211: Could not configure driver to use managed mode
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Interface mode change to 2 from 0 failed
wlan1: Failed to initialize driver interface
Failed to add interface wlan1
wlan1: Cancelling scan request
wlan1: Cancelling authentication timeout

dmesg from the wlan1 driver:
[ 2537.374661] rtw driver version=v3.4.3_4369.20120622
[ 2537.380171] Build at: Sep 1 2012 13:52:58
[ 2537.385927] register rtw_netdev_ops to netdev_ops
[ 2537.391583] CHIP TYPE: RTL8188C_8192C
[ 2537.397244]
[ 2537.397246] usb_endpoint_descriptor(0):
[ 2537.408120] bLength=7
[ 2537.413582] bDescriptorType=5
[ 2537.419078] bEndpointAddress=81
[ 2537.424544] wMaxPacketSize=200
[ 2537.429913] bInterval=0
[ 2537.435244] RT_usb_endpoint_is_bulk_in = 1
[ 2537.440624]
[ 2537.440626] usb_endpoint_descriptor(1):
[ 2537.450986] bLength=7
[ 2537.456117] bDescriptorType=5
[ 2537.461147] bEndpointAddress=2
[ 2537.466243] wMaxPacketSize=200
[ 2537.471125] bInterval=0
[ 2537.475760] RT_usb_endpoint_is_bulk_out = 2
[ 2537.480458]
[ 2537.480460] usb_endpoint_descriptor(2):
[ 2537.489402] bLength=7
[ 2537.493733] bDescriptorType=5
[ 2537.497926] bEndpointAddress=3
[ 2537.502099] wMaxPacketSize=200
[ 2537.506073] bInterval=0
[ 2537.509887] RT_usb_endpoint_is_bulk_out = 3
[ 2537.513856]
[ 2537.513858] usb_endpoint_descriptor(3):
[ 2537.521544] bLength=7
[ 2537.525452] bDescriptorType=5
[ 2537.529399] bEndpointAddress=84
[ 2537.533343] wMaxPacketSize=40
[ 2537.537275] bInterval=1
[ 2537.541104] RT_usb_endpoint_is_int_in = 4, Interval = 1
[ 2537.545186] nr_endpoint=4, in_num=2, out_num=2
[ 2537.545189]
[ 2537.553163] USB_SPEED_HIGH
[ 2537.557627] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_92C.
[ 2537.562081] RF_Type is 2!!
[ 2537.566879] EEPROM type is E-FUSE
[ 2537.571336] ====> ReadAdapterInfo8192C
[ 2537.576120] Boot from EFUSE, Autoload OK !
[ 2537.723758] EEPROMVID = 0x0bda
[ 2537.728133] EEPROMPID = 0x8178
[ 2537.566879] EEPROM type is E-FUSE
[ 2537.571336] ====> ReadAdapterInfo8192C
[ 2537.576120] Boot from EFUSE, Autoload OK !
[ 2537.723758] EEPROMVID = 0x0bda
[ 2537.728133] EEPROMPID = 0x8178
[ 2537.732330] EEPROMCustomerID : 0x00
[ 2537.736555] EEPROMSubCustomerID: 0x00
[ 2537.740796] RT_CustomerID: 0x00
[ 2537.745040] _ReadMACAddress MAC Address from EFUSE = 6c:e8:73:bf:97:30
[ 2537.749722] EEPROMRegulatory = 0x0
[ 2537.754358] _ReadBoardType(0)
[ 2537.758898] BT Coexistance = disable
[ 2537.763473] RT_ChannelPlan: 0x02
[ 2537.767994] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
[ 2537.778058] ### PS params=> power_mgnt(1),usbss_enable(0) ###
[ 2537.783578] ### AntDivCfg(0)
[ 2537.789119] readAdapterInfo_8192CU(): REPLACEMENT = 1
[ 2537.794760] <==== ReadAdapterInfo8192C in 223 ms
[ 2537.801159] rtw_macaddr_cfg MAC Address = 6c:e8:73:bf:97:30
[ 2537.806968] MAC Address from pnetdev->dev_addr= 6c:e8:73:bf:97:30
[ 2537.816145] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 2537.823404] usbcore: registered new interface driver rtl8192cu
[ 2823.516027] +871x_drv - drv_open, bup=0
[ 2823.526453] ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
[ 2823.526459] FirmwareDownload92C accquire FW from embedded image
[ 2823.526465] fw_ver=v80, fw_subver=0, sig=0x88c0
[ 2823.554564] fw download ok!
[ 2823.554569] Set RF Chip ID to RF_6052 and RF type to 2.
[ 2823.961311] IQK:Start!!!
[ 2823.981186] Path A IQK Success!!
[ 2823.993686] Path B IQK Success!!
[ 2824.009685] Path A IQK Success!!
[ 2824.021561] Path B IQK Success!!
[ 2824.032937] IQK: final_candidate is 0
[ 2824.039247] IQK: RegE94=100 RegE9C=5 RegEA4=f8 RegEAC=3fe RegEB4=101 RegEBC=c RegEC4=f7 RegECC=2
[ 2824.039252] Path A IQ Calibration Success !
[ 2824.060810] Path B IQ Calibration Success !
[ 2824.176811] pdmpriv->TxPowerTrackControl = 1
[ 2824.188067] MAC Address from REG_MACID = 6c:e8:73:bf:97:30
[ 2824.194419] rtl8192cu_hal_init in 678ms
[ 2824.200589] MAC Address = 6c:e8:73:bf:97:30
[ 2824.212229] -871x_drv - drv_open, bup=1
[ 2824.218500] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2824.224905] (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 2824.212229] -871x_drv - drv_open, bup=1
[ 2824.218500] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2824.224905] (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 2824.232313] rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
[ 2824.232806] -871x_drv - drv_close, bup=1
[ 2824.234001] +871x_drv - drv_open, bup=1
[ 2824.234022] -871x_drv - drv_open, bup=1
[ 2824.234485] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2826.240096] ==>pwr_state_check_handler .fw_state(0)
[ 2826.247193] ==> rtw_ps_cmd , enqueue CMD
[ 2826.257815] ==>rtw_ps_processor .fw_state(0)
[ 2826.265242] ==>ips_enter cnts:1
[ 2826.272692] ==>power_saving_ctrl_wk_hdl change rf to OFF...LED(0x00028208)....
[ 2826.272696]
[ 2826.294579] ===> rtw_ips_pwr_down...................
[ 2826.302083] ====> rtw_ips_dev_unload...
[ 2826.332815] usb_read_port_cancel
[ 2826.339932] usb_write_port_cancel
[ 2826.346315] ==> rtl8192cu_hal_deinit
[ 2826.352436] bkeepfwalive(0)
[ 2826.358298] card disble without HWSM...........
[ 2826.369067] <=== rtw_ips_pwr_down..................... in 75ms
 
Old 09-01-2012, 09:06 PM
Řyvind Heggstad
 
Default problem with realtek 8192cu usb wireless card

On Sat, 1 Sep 2012 13:57:26 +0600
Kirill Churin <reflexing@reflexing.ru> wrote:

> On Sat, Sep 1, 2012 at 8:14 PM, Xeslaro <bfsc.yb@gmail.com> wrote:
> > i bought a usb wireless card TP-Link WN821Nv4 with idVendor=0bda
> > and idProduct=8178, which shows it's a realtek 8192cu card.
> > although i'm using linux kernel 3.2.6, which includes a module
> > called rtl8192cu, from the source i could see there's no support
> > for the specific idVendor and idProduct.
> >
> > i downloaded the driver source from the official realtek website,
> > which does support the idVendor and idProduct, and compiled the
> > driver successfully, i could see wlan1 using ip link show, and
> > there is an entry called wlan1 under /sys/class/net. however,
> > neither iw nor wpa_supplicant would work, they all complain that
> > there is no such device, it seems that the
> > corresponding /sys/class/ieee80211/wlan1 entry is missing.
> >
> > another usb wireless card wlan0 is working normally on the
> > system, and i compared /sys/class/net/wlan0
> > and /sys/class/net/wlan1, the only one missing is a symbolic link
> > called phy80211 pointing to /sys/class/ieee80211...
> >
> > any idea why this is happening?
> >
> > iw dev wlan1 info
> > command failed: No such device (-19)
> >
> > wpa_supplicant -c someconf -i wlan1 -d
> > wpa_supplicant v1.0
> > random: Trying to read entropy from /dev/random
> > Initializing interface 'wlan1' conf 'someconf' driver 'default'
> > ctrl_interface 'N/A' bridge 'N/A' Configuration file 'someconf' ->
> > 'someconf' Reading configuration file 'someconf'
> > Priority group 0
> > id=0 ssid='somessid'
> > Could not open file /sys/class/net/wlan1/phy80211/name: No such
> > file or directory rfkill: initial event: idx=0 type=1 op=0 soft=0
> > hard=0 nl80211: Set mode ifindex 6 iftype 2 (STATION)
> > nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
> > nl80211: Try mode change after setting interface down
> > nl80211: Set mode ifindex 6 iftype 2 (STATION)
> > nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
> > nl80211: Interface mode change to 2 from 0 failed
> > nl80211: Could not configure driver to use managed mode
> > netlink: Operstate: linkmode=0, operstate=6
> > nl80211: Set mode ifindex 6 iftype 2 (STATION)
> > nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
> > nl80211: Try mode change after setting interface down
> > nl80211: Set mode ifindex 6 iftype 2 (STATION)
> > nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
> > nl80211: Interface mode change to 2 from 0 failed
> > wlan1: Failed to initialize driver interface
> > Failed to add interface wlan1
> > wlan1: Cancelling scan request
> > wlan1: Cancelling authentication timeout
> >
> > dmesg from the wlan1 driver:
> > [ 2537.374661] rtw driver version=v3.4.3_4369.20120622
> > [ 2537.380171] Build at: Sep 1 2012 13:52:58
> > [ 2537.385927] register rtw_netdev_ops to netdev_ops
> > [ 2537.391583] CHIP TYPE: RTL8188C_8192C
> > [ 2537.397244]
> > [ 2537.397246] usb_endpoint_descriptor(0):
> > [ 2537.408120] bLength=7
> > [ 2537.413582] bDescriptorType=5
> > [ 2537.419078] bEndpointAddress=81
> > [ 2537.424544] wMaxPacketSize=200
> > [ 2537.429913] bInterval=0
> > [ 2537.435244] RT_usb_endpoint_is_bulk_in = 1
> > [ 2537.440624]
> > [ 2537.440626] usb_endpoint_descriptor(1):
> > [ 2537.450986] bLength=7
> > [ 2537.456117] bDescriptorType=5
> > [ 2537.461147] bEndpointAddress=2
> > [ 2537.466243] wMaxPacketSize=200
> > [ 2537.471125] bInterval=0
> > [ 2537.475760] RT_usb_endpoint_is_bulk_out = 2
> > [ 2537.480458]
> > [ 2537.480460] usb_endpoint_descriptor(2):
> > [ 2537.489402] bLength=7
> > [ 2537.493733] bDescriptorType=5
> > [ 2537.497926] bEndpointAddress=3
> > [ 2537.502099] wMaxPacketSize=200
> > [ 2537.506073] bInterval=0
> > [ 2537.509887] RT_usb_endpoint_is_bulk_out = 3
> > [ 2537.513856]
> > [ 2537.513858] usb_endpoint_descriptor(3):
> > [ 2537.521544] bLength=7
> > [ 2537.525452] bDescriptorType=5
> > [ 2537.529399] bEndpointAddress=84
> > [ 2537.533343] wMaxPacketSize=40
> > [ 2537.537275] bInterval=1
> > [ 2537.541104] RT_usb_endpoint_is_int_in = 4, Interval = 1
> > [ 2537.545186] nr_endpoint=4, in_num=2, out_num=2
> > [ 2537.545189]
> > [ 2537.553163] USB_SPEED_HIGH
> > [ 2537.557627] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_92C.
> > [ 2537.562081] RF_Type is 2!!
> > [ 2537.566879] EEPROM type is E-FUSE
> > [ 2537.571336] ====> ReadAdapterInfo8192C
> > [ 2537.576120] Boot from EFUSE, Autoload OK !
> > [ 2537.723758] EEPROMVID = 0x0bda
> > [ 2537.728133] EEPROMPID = 0x8178
> > [ 2537.566879] EEPROM type is E-FUSE
> > [ 2537.571336] ====> ReadAdapterInfo8192C
> > [ 2537.576120] Boot from EFUSE, Autoload OK !
> > [ 2537.723758] EEPROMVID = 0x0bda
> > [ 2537.728133] EEPROMPID = 0x8178
> > [ 2537.732330] EEPROMCustomerID : 0x00
> > [ 2537.736555] EEPROMSubCustomerID: 0x00
> > [ 2537.740796] RT_CustomerID: 0x00
> > [ 2537.745040] _ReadMACAddress MAC Address from EFUSE =
> > 6c:e8:73:bf:97:30 [ 2537.749722] EEPROMRegulatory = 0x0
> > [ 2537.754358] _ReadBoardType(0)
> > [ 2537.758898] BT Coexistance = disable
> > [ 2537.763473] RT_ChannelPlan: 0x02
> > [ 2537.767994]
> > _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
> > [ 2537.778058] ### PS params=> power_mgnt(1),usbss_enable(0) ###
> > [ 2537.783578] ### AntDivCfg(0) [ 2537.789119]
> > readAdapterInfo_8192CU(): REPLACEMENT = 1 [ 2537.794760] <====
> > ReadAdapterInfo8192C in 223 ms [ 2537.801159] rtw_macaddr_cfg MAC
> > Address = 6c:e8:73:bf:97:30 [ 2537.806968] MAC Address from
> > pnetdev->dev_addr= 6c:e8:73:bf:97:30 [ 2537.816145]
> > bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
> > [ 2537.823404] usbcore: registered new interface driver rtl8192cu
> > [ 2823.516027] +871x_drv - drv_open, bup=0 [ 2823.526453] ===>
> > FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC [ 2823.526459]
> > FirmwareDownload92C accquire FW from embedded image [ 2823.526465]
> > fw_ver=v80, fw_subver=0, sig=0x88c0 [ 2823.554564] fw download ok!
> > [ 2823.554569] Set RF Chip ID to RF_6052 and RF type to 2.
> > [ 2823.961311] IQK:Start!!!
> > [ 2823.981186] Path A IQK Success!!
> > [ 2823.993686] Path B IQK Success!!
> > [ 2824.009685] Path A IQK Success!!
> > [ 2824.021561] Path B IQK Success!!
> > [ 2824.032937] IQK: final_candidate is 0
> > [ 2824.039247] IQK: RegE94=100 RegE9C=5 RegEA4=f8 RegEAC=3fe
> > RegEB4=101 RegEBC=c RegEC4=f7 RegECC=2 [ 2824.039252] Path A IQ
> > Calibration Success ! [ 2824.060810] Path B IQ Calibration Success !
> > [ 2824.176811] pdmpriv->TxPowerTrackControl = 1
> > [ 2824.188067] MAC Address from REG_MACID = 6c:e8:73:bf:97:30
> > [ 2824.194419] rtl8192cu_hal_init in 678ms
> > [ 2824.200589] MAC Address = 6c:e8:73:bf:97:30
> > [ 2824.212229] -871x_drv - drv_open, bup=1
> > [ 2824.218500] ADDRCONF(NETDEV_UP): wlan1: link is not ready
> > [ 2824.224905] (2)871x_drv - drv_close, bup=1, hw_init_completed=1
> > [ 2824.212229] -871x_drv - drv_open, bup=1
> > [ 2824.218500] ADDRCONF(NETDEV_UP): wlan1: link is not ready
> > [ 2824.224905] (2)871x_drv - drv_close, bup=1, hw_init_completed=1
> > [ 2824.232313] rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
> > [ 2824.232806] -871x_drv - drv_close, bup=1
> > [ 2824.234001] +871x_drv - drv_open, bup=1
> > [ 2824.234022] -871x_drv - drv_open, bup=1
> > [ 2824.234485] ADDRCONF(NETDEV_UP): wlan1: link is not ready
> > [ 2826.240096] ==>pwr_state_check_handler .fw_state(0)
> > [ 2826.247193] ==> rtw_ps_cmd , enqueue CMD
> > [ 2826.257815] ==>rtw_ps_processor .fw_state(0)
> > [ 2826.265242] ==>ips_enter cnts:1
> > [ 2826.272692] ==>power_saving_ctrl_wk_hdl change rf to
> > OFF...LED(0x00028208).... [ 2826.272696]
> > [ 2826.294579] ===> rtw_ips_pwr_down...................
> > [ 2826.302083] ====> rtw_ips_dev_unload...
> > [ 2826.332815] usb_read_port_cancel
> > [ 2826.339932] usb_write_port_cancel
> > [ 2826.346315] ==> rtl8192cu_hal_deinit
> > [ 2826.352436] bkeepfwalive(0)
> > [ 2826.358298] card disble without HWSM...........
> > [ 2826.369067] <=== rtw_ips_pwr_down..................... in 75ms
>
> Hello, for the free driver, it's stated that non-free firmware must be
> present for this card: http://wiki.debian.org/rtl819x#Drivers
> I can't find it in the Arch repos, so you can download debian's
> package and put firmware in it's location yourself ugly way (or make
> package of it and push it to AUR).
>
> As of non-free drivers, you can check AUR
> https://aur.archlinux.org/packages.php?O=0&K=8192&do_Search=Go and try
> this packages, maybe some will work.
>

linux-firmware package should be enough.
 
Old 09-01-2012, 09:13 PM
Kyle
 
Default problem with realtek 8192cu usb wireless card

Try installing dkms-8192cu from AUR. This may or may not work for your specific card, but it appears to work perfectly without any firmware using my 8188CUS USB card. Since your model is different, your mileage may vary, but hopefully this will help.
~Kyle
 
Old 09-02-2012, 04:50 AM
Xeslaro
 
Default problem with realtek 8192cu usb wireless card

On Sat, Sep 01, 2012 at 01:57:26PM +0600, Kirill Churin wrote:
> Hello, for the free driver, it's stated that non-free firmware must be
> present for this card: http://wiki.debian.org/rtl819x#Drivers
> I can't find it in the Arch repos, so you can download debian's
> package and put firmware in it's location yourself ugly way (or make
> package of it and push it to AUR).
>
> As of non-free drivers, you can check AUR
> https://aur.archlinux.org/packages.php?O=0&K=8192&do_Search=Go and try
> this packages, maybe some will work.
>
> --
> Kirill Churin
> Jabber: reflexing@reflexing.ru

thanks for the information, i changed the kernel to 3.5.3 and saw this card is supported and found the firmware you mentioned in my arch distro, everything seems working fine, however wpa_supplicant wouldn't pass the 4 way handshake state and reports the pre-shared key isn't correct while the same configuration file for wpa_supplicant worked for another wireless card, also, when using iw to create an ibss cell no error is reported but actually it isn't created, and after exiting from wpa_supplicant the card couldn't get anying result via iw scan, i must unplug it and plug it again to get scanning results...

i tried kernel 3.5.3 and the most recent one from git, also tried the official driver from realtek on 3.2.6 and 2.6.34.13, none is at least working...

just wanna forget all the mess after reporting something to the wireless.kernel.org mailing list.
 
Old 09-02-2012, 09:01 PM
Xeslaro
 
Default problem with realtek 8192cu usb wireless card

On Sat, Sep 01, 2012 at 05:13:32PM -0400, Kyle wrote:
> Try installing dkms-8192cu from AUR. This may or may not work for your specific card, but it appears to work perfectly without any firmware using my 8188CUS USB card. Since your model is different, your mileage may vary, but hopefully this will help.
> ~Kyle

thanks everybody, i've finally got everything working!

i checked the pkgbuild for this package and found out that this is the same driver from www.realtek.com, this driver does work well. the reason it didn't work at first is that i recompiled wpa_supplicant without the WEXT driver support which is said to be deprecated, however the official driver from realtek only support WEXT, after recompiling wpa_supplicant with WEXT support and use -Dwext at the command line, everything is working fine. however there is indeed something broken in the driver within the linux kernel, which doesn't work in either way.
 

Thread Tools




All times are GMT. The time now is 08:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org