I had the misfortune to buy two of these devices off ebay on the basis they were "compatible with linux, raspberry pi, and access point mode".
I'm running Xbian on my Raspberry Pi using a wired ethernet link. But since there's no wifi in my room, I need to set up the pi as an access point in bridged mode.
I've gotten as far as installing hostapd and bridge-utils but the device isn't recognised in 4.1.13+ (I don't think). So after many hours of searching I finally found the kernel sources and headers, downloaded the driver source from github, and compiled the thing. After I had the 8192.ko file I did this:
# mv 8192eu /lib/modules/4.1.13+/kernel/drivers/net/wireless
# echo "options 8192eu rtw_power_mgnt=0 rtw_enusbss=0" > /etc/modprobe.d/8192eu.conf
# depmod -a
Before when I ran modprobe 8192eu I got some errors. Now when I run modprobe 8192eu I get nothing which I assume is a good thing. Yet
# iw list
... still shows no output at all either.
The module is definitly loaded:
root@walle:/home/xbian# lsmod
Module Size Used by
8192eu 936651 0
... and I have what appears to be a working iface:
# ifconfig
wlan0 Link encap:Ethernet HWaddr 00:13:EF:35:14:03
UP 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)
Yet hostapd complains:
root@walle:/home/xbian# hostapd -d /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
Line 2: invalid/unknown driver '8192eu'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Failed to set up interface with /etc/hostapd/hostapd.conf
hostapd_init: free iface 0x561419f0
Failed to initialize interface
Perhaps I need to recompile hostapd with the new driver?
I have grabbed the hostapd sources and started to compile. Yet I cannot find where in the defconfig file I would tell it to find the new driver. I have tried adding:
CONFIG_DRIVER_8192EU=y
and
CONFIG_DRIVER_8192eu=y
... yet it does not make a difference -- the new hostapd binary still cannot find the driver.
The new hostapd is:
root@walle:/home/xbian/hostapd-2.5/hostapd# ./hostapd -v
hostapd v2.5
User space daemon for IEEE 802.11 AP management,
The old hostapd is:
root@walle:/home/xbian/hostapd-2.5/hostapd# hostapd -v
hostapd v2.3
User space daemon for IEEE 802.11 AP management,
Thanks in advance.