How to setup edimax ew-7811un 802.11n wireless adapter on Openwrt 19.07.3 x86_64
opkg update
opkg install iwinfo kmod-usb2 kmod-usb3 kmod-rtlwifi kmod-rtlwifi-usb kmod-rtl8192c-common kmod-rtl8192cu wpad-mini
wpad-mini is the key. I try to setup many time for edimax ew-7811un 802.11n with chip :
Bus 002 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
But when I enable wireless in /etc/config/wireless then
/etc/init.d/network restart
wlan0 is down and wireless is failed
So I try logread -f
I saw a log like this.
Wed Apr 25 19:31:21 2018 daemon.notice netifd: radio0 (1578): command failed: Not supported (-95) Wed Apr 25 19:31:21 2018 daemon.notice netifd: radio0 (1578): ./mac80211.sh: eval: line 1: /usr/sbin/hostapd: not found
Wed Apr 25 19:31:21 2018 daemon.notice netifd: radio0 (1578): cat: can’t open ‘/var/run/wifi-phy0.pid’: No such file or directory Wed Apr 25 19:31:21 2018 daemon.notice netifd: radio0 (1578): Command failed: Invalid argument
Wed Apr 25 19:31:21 2018 daemon.notice netifd: radio0 (1578): Device setup failed: HOSTAPD_START_FAILED
I follow this forum https://forum.openwrt.org/t/wireless-enabled-but-not-up-solved/13862/3
Mr.Jeff told :
Typically wpad-mini or one of the other variants supply both hostapd and wpa_supplicant
Then I install wpad-mini then
/etc/init.d/network restart
Everything work fine
Hope this help.