lwfinger / rtl8188eu

Repository for stand-alone RTL8188EU driver.
Other
1.68k stars 592 forks source link

Can't work on Ubuntu 13.04 with kernel 3.8.13 #70

Open jewsuscn opened 10 years ago

jewsuscn commented 10 years ago

After compile the driver code, and insmod 8188eu.ko, the NIC can't work up automatically, when I execute the follow command "ifconfig wlan13 up", Occur the error: "SIOCSIFFLAGS: Operation not permitted."
I used Ubuntu 13.04 Linux kernel version : 3.8.13.16 NIC : Mercury MW150us v2(Chipset: RTL8188eu)

jewsuscn commented 10 years ago

I find a old version rtl8188eu driver code in google, After compile and load the driver module , my NIC(Mercury MW150us v2) can work well as a wireless station, but when i config it an a SoftAP using hostapd-0.8, I can scan this AP on other station workstation, but can't connect to it even it work on Open mode. When using WPA/WPA2, it always occurs Authentication failed.

  The hostapd log as follow:

/opt/rtl_hostapd_open.conf file:

hostapd configuration file

interface=wlan13 ssid=ZRT-Mercury-MW150us channel=10 driver=rtl871xdrv

hostapd -d /opt/rtl_hostapd_open.conf random: Trying to read entropy from /dev/random Configuration file: /opt/rtl_hostapd_open.conf drv->ifindex=7 l2_sock_recv==l2_sock_xmit=0x0x54648 BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits) Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=0 dBm Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=0 dBm Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=0 dBm Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=0 dBm Completing interface initialization Mode: IEEE 802.11b Channel: 10 Frequency: 2457 MHz RATE[0] rate=10 flags=0x1 RATE[1] rate=20 flags=0x1 RATE[2] rate=55 flags=0x0 RATE[3] rate=110 flags=0x0 Flushing old station entries Deauthenticate all stations +rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2 rtl871x_set_key_ops rtl871x_set_key_ops rtl871x_set_key_ops rtl871x_set_key_ops Using interface wlan13 with hwaddr 08:57:00:3a:de:9c and ssid 'ZRT-Mercury-MW150us' rtl871x_set_wps_assoc_resp_ie rtl871x_set_wps_beacon_ie rtl871x_set_wps_probe_resp_ie rtl871x_set_beacon_ops wlan13: Setup of interface done. random: Got 20/20 bytes from /dev/random Wireless event: cmd=0x8b15 len=20 Wireless event: cmd=0x8b15 len=20

Wireless event: cmd=0x8b19 len=8 Wireless event: cmd=0x8b19 len=8 Wireless event: cmd=0x8b19 len=8 Wireless event: cmd=0x8b19 len=8 Wireless event: cmd=0x8b19 len=8 Wireless event: cmd=0x8b19 len=8 Wireless event: cmd=0x8b19 len=8 Wireless event: cmd=0x8b19 len=8

jewsuscn commented 10 years ago

Who can help me?

lwfinger commented 10 years ago

I have no idea if soft AP works with this driver or not. If you really want to use it, you will likely need to debug it yourself. One theory is that the firmware will not support an AP, but I do not know if that is correct.

At the moment, I have no time to test if the RTL8188EU will work as an AP.

jewsuscn commented 10 years ago

But there are many people in internet successfully configured.SoftAP with RTL8188eu, e.g: http://www.cnblogs.com/XDJjy/p/3866534.html

jewsuscn commented 10 years ago

When i copy the fireware rtl8188eufw.bin to /lib/firmware/rtlwifi, it can work as a wireless workstation successfully, but after i run hostapd and udhcpd, I can't scan the softAP anymore, the kernel log message as following:

[ 106.253552] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) [ 106.286425] usbcore: registered new interface driver r8188eu [ 106.335993] R8188EU: Firmware Version 11, SubVersion 1, Signature 0x88e1 [ 106.719032] MAC Address = 08:57:00:3a:de:9c [ 106.723931] IPv6: ADDRCONF(NETDEV_UP): wlan13: link is not ready [ 106.724696] IPv6: ADDRCONF(NETDEV_UP): wlan13: link is not ready [ 106.732030] R8188EU: ERROR indicate disassoc [ 106.734057] IPv6: ADDRCONF(NETDEV_UP): wlan13: link is not ready [ 106.788782] R8188EU: ERROR indicate disassoc [ 106.790308] IPv6: ADDRCONF(NETDEV_UP): wlan13: link is not ready [ 106.797278] R8188EU: ERROR indicate disassoc [ 106.798789] IPv6: ADDRCONF(NETDEV_UP): wlan13: link is not ready [ 192.997670] R8188EU: ERROR assoc success [ 192.997745] IPv6: ADDRCONF(NETDEV_CHANGE): wlan13: link becomes ready [ 192.998170] R8188EU: ERROR indicate disassoc

jewsuscn commented 10 years ago

Why? It indicate that the firmware rtl8188eufw.bin can't support SoftAP? What can i do next step?