[Solved] RTL8188 Driver for 18.06.01


#1

Hi, I'm trying to compile driver for RTL8189ES for the OPi R1 board. I've used patch from Hauke Mehrtens and latest git distro. All compiles well, but the wifi works only in scan mode. When tried to enable AP, the wlan0 disappears for ever. It's not available even after hard reset. All modules are persistent.
Any ideas what may be wrong?


Realtek RTL8188SU USB WiFi
#2

Ask him: @hauke


#3

I did, but no response. Therefor I opened topic here.

Some more details to the topic. This is the system log related to the wifi:

Sun Jan 13 17:33:23 2019 kern.warn kernel: [  140.644263] ==> rtl8188e_iol_efuse_patch
Sun Jan 13 17:33:24 2019 kern.info kernel: [  140.879204] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sun Jan 13 17:33:35 2019 user.notice mac80211: Failed command: iw phy phy0 set antenna all all
Sun Jan 13 17:33:35 2019 daemon.notice netifd: radio0 (3259): command failed: Not supported (-95)
Sun Jan 13 17:33:35 2019 user.notice mac80211: Failed command: iw phy phy0 set antenna_gain 0
Sun Jan 13 17:33:35 2019 daemon.notice netifd: radio0 (3259): command failed: No such device (-19)
Sun Jan 13 17:33:35 2019 user.notice mac80211: Failed command: iw phy phy0 interface add wlan0 type __ap
Sun Jan 13 17:33:35 2019 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Sun Jan 13 17:33:35 2019 daemon.err hostapd: Could not read interface wlan0 flags: No such device
Sun Jan 13 17:33:35 2019 daemon.notice hostapd: nl80211: Driver does not support authentication/association or connect commands
Sun Jan 13 17:33:35 2019 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sun Jan 13 17:33:35 2019 daemon.err hostapd: Could not read interface wlan0 flags: No such device
Sun Jan 13 17:33:35 2019 daemon.err hostapd: nl80211 driver initialization failed.
Sun Jan 13 17:33:35 2019 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Sun Jan 13 17:33:35 2019 daemon.notice hostapd: wlan0: AP-DISABLED
Sun Jan 13 17:33:35 2019 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sun Jan 13 17:33:35 2019 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sun Jan 13 17:33:35 2019 daemon.notice netifd: radio0 (3259): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Sun Jan 13 17:33:35 2019 daemon.notice netifd: radio0 (3259): WARNING (wireless_add_process): executable path /usr/sbin/hostapd does not match process  path (/proc/exe)
Sun Jan 13 17:33:35 2019 daemon.notice netifd: radio0 (3259): Command failed: Invalid argument
Sun Jan 13 17:33:35 2019 daemon.notice netifd: radio0 (3259): Device setup failed: HOSTAPD_START_FAILED


#4

For those who are interrested in the topic on non working WiFi dongles, this is what I've found:

  1. Utility iw exclusively uses the nl80211 interface.
  2. some drivers, like RTL8188EU, RTL8188ETV, RTL8188FTV etc. don't implement those ioctls and therefor iw command is not working partially, or at all.

The OpenWrt uses /package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh to manipulate the WiFi and it's based on iw command.
The major issue in it is that it uses simplified way how to do so. First it removes all the interfaces and that creates them again with the new required setup. Generally it works, when the WiFi driver supports the needed commands, but when not, it fails.
I've solved it with the rewriting of iw commands with old-fasshioned ifconfig, iwconfig commands and it works now. I've modified only the AP functions which I need, but it will work for the other functions too.
I will suggest to include simple test if the WiFi driver supports the iw ioctls, or not and than use the appropriate commands in the mac80211.sh.


rtl8812AU and/or rtl8814AU drivers
closed #5

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.