usb wifi can't work normally on linux

Started by kimdou, December 15, 2014, 04:06:45 PM

Previous topic - Next topic

kimdou

i have usb wifi rtl8188eu on the board, the hard ware is ok. i've downloaded an android system on the board,works well.
but can't work on linux.
# uname -a
Linux sun7i 3.4.39 #17 SMP PREEMPT Mon Dec 15 01:35:39 EST 2014 armv7l GNU/Linux

# insmod /lib/modules/3.4.39/8188eu.ko
[   14.914483] sw_usb_enable_hcd: usbc_num = 1
[   14.919876] -- wifi_pm_power --wifi name:rtl8188eu wifi_used:1
[   14.926739] [rtl8188eu]: rtl8188eu module power set by gpio and it is turned ON.
[   14.935148] [rtl8188eu]: usb wifi power state: on
[color=red][   14.950577] WRN:L876(drivers/usb/host/ehci_sun7i.c):ERR: not support sw_usb_enable_ehci
[   14.959559] WRN:L762(drivers/usb/host/ohci_sun7i.c):ERR: not support sw_usb_enable_ohci[/color]
[   14.969107] usbcore: registered new interface driver rtl8188eu
[   14.977298] insmod used greatest stack depth: 5456 bytes left
# [   15.245756] usb 2-1: new high-speed USB device number 2 using sw-ehci
[   15.402935] bFWReady == _FALSE call reset 8051...


then, there are too wlans...strange. wlan0 and wlan1.
# ifconfig -a
gre0      Link encap:UNSPEC  HWaddr 00-00-00-00-E6-B6-88-1A-00-00-00-00-00-00-00-00
          NOARP  MTU:1476  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1452  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tunl0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:C6:B2:17:21:53
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan1     Link encap:Ethernet  HWaddr 02:C6:B2:17:21:53
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)



# ifconfig wlan0 up
[  392.856326] ==> rtl8188e_iol_efuse_patch
[  393.151196] ADDRCONF(NETDEV_UP): wlan0: link is not ready
# [  395.153580] RTL871X: nolinked power save enter





# iwlist wlan0 scan
[  432.566324] ==> rtl8188e_iol_efuse_patch
[  432.856234] RTL871X: nolinked power save leave
wlan0     Scan completed :
          Cell 01 - Address: A8:57:4E:A5:4B:82
                    ESSID:"Pandy-HOME"
      [  434.194613] iwlist used greatest stack depth: 4984 bytes left
              Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD310050F204104A00011010440001021047001000000000000010000000A8574EA54B82103C0001011049000600372A000120
                    Quality=0/100  Signal level=23/100
          Cell 02 - Address: E0:05:C5:C0:C7:FA
                    ESSID:"D-LINK-R"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.452 GHz (Channel 9)
                    Encryption key:on
                    Bit Rates:300 Mb/s
                    Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                    IE: WPA Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD810050F204104A0001101044000102103B0001031047001000000000000010000000E005C5C0C7FA1021000754502D4C494E4B10230009544C2D57523834314E10240003372E3010420003312E301054000800060050F204000110110019576972656C65737320526F7574657220544C2D57523834314E100800020086103C000101
                    Quality=0/100  Signal level=50/100
          Cell 03 - Address: EC:88:8F:59:0F:7E
                    ESSID:"hellen"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.447 GHz (Channel 8)
                    Encryption key:off
                    Bit Rates:300 Mb/s
                    IE: Unknown: DD0E0050F204104A0001101044000102
                    Quality=0/100  Signal level=23/100

[  436.855750] RTL871X: nolinked power save enter


the wifi can search three hubs.

wpa_passphrase D-LINK-R password > /etc/wpa_supplicant.conf

# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B
[  589.766323] ==> rtl8188e_iol_efuse_patch
[  590.056362] RTL871X: nolinked power save leave
[  590.061635] RTL871X: set bssid:00:00:00:00:00:00
ioctl[SIOCSIWAP]: Operation not permitted
# [  594.055756] RTL871X: nolinked power save enter
[  595.546323] ==> rtl8188e_iol_efuse_patch
[  595.826235] RTL871X: nolinked power save leave
[  595.832695] RTL871X: set bssid:e0:05:c5:c0:c7:fa
[  595.838324] RTL871X: set ssid [D-LINK-R] fw_state=0x00000088
[  596.354258] RTL871X: start auth
[  596.359454] RTL871X: auth success, start assoc
[  596.368281] RTL871X: assoc success
[  596.372904] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  596.382090] UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
[  596.382102]   ==> rssi_level:0, rate_bitmap:0x000ff015
[  596.396802] ODM_ARFBRefresh_8188E(): RateID=0 RateMask=000ff015 RAUseRate=000ff015 HighestRate=19,DecisionRate=19
[  599.372725] RTL871X: sta recv deauth reason code(2) sta:e0:05:c5:c0:c7:fa, ignore = 0
[  603.825745] RTL871X: nolinked power save enter
[  606.176322] ==> rtl8188e_iol_efuse_patch
[  606.466233] RTL871X: nolinked power save leave
[  607.095737] wlan0: no IPv6 routers present
[  610.465745] RTL871X: nolinked power save enter
[  611.796318] ==> rtl8188e_iol_efuse_patch
[  612.076357] RTL871X: nolinked power save leave
[  612.082799] RTL871X: set bssid:e0:05:c5:c0:c7:fa
[  612.088726] RTL871X: set ssid [D-LINK-R] fw_state=0x00000088
[  612.637016] RTL871X: start auth
[  612.642073] RTL871X: auth success, start assoc
[  612.650906] RTL871X: assoc success
[  612.658212] UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
[  612.658221]   ==> rssi_level:0, rate_bitmap:0x000ff015
[  612.672676] ODM_ARFBRefresh_8188E(): RateID=0 RateMask=000ff015 RAUseRate=000ff015 HighestRate=19,DecisionRate=19
[  615.654725] RTL871X: sta recv deauth reason code(2) sta:e0:05:c5:c0:c7:fa, ignore = 0


# udhcpc -i wlan0
udhcpc (v1.18.3) started
Sending discover...
Sending discover...
Sending discover...


rouvas

My usb wifi sticks are usable from wlan6 through wlan8 depending on model.
I have tried both WIFI USBs offered from olimex site.