I've got an Edison running ubilinux build 150309 (as of this writing, the most recent). I'm trying to configure wifi in access point mode, but experiencing what appear to be driver issues. However, numerous users have reported working APs, both on Yocto and Ubilinux. Where else might the three of us (and any others) look to find the problem?
My suspicion is that nl80211 is either not trying, or is falling back on, the older, two-interface method that requires monitor mode. (https://wireless.wiki.kernel.org/en/users/documentation/hostapd) Perhaps I'm wrong, but the Edison wireless chipset driver doesn't support monitor mode. I cannot find any information about "forcing" one mode or the other.
The usual steps first:
rfkill is not blocking.
/etc/default/hostapd includes only this uncommented line:
/etc/hostapd/hostapd.conf is very near to the default values, and can be seen here hostapd.conf - Pastebin.com.
/etc/network/interfaces has only:
iface wlan0 inet static
When trying to start hostapd (either on boot, with service, or by running # hostapd -ddK /etc/hostapd/hostapd.conf) , I receive the following output (full text for searchability):
[....] Starting advanced IEEE 802.11 management: hostapdrmdir[ctrl_interface]: No such file or directory
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
nl80211: interface wlan0 in phy phy2
rfkill: initial event: idx=2 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=5 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=6 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=7 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: TDLS supported
nl80211: Add own interface ifindex 6
nl80211: Set mode ifindex 6 iftype 3 (AP)
nl80211: Create interface iftype 6 (MONITOR)
Failed to create interface mon.wlan0: -19 (No such device)
nl80211: Failed to set interface wlan0 into AP mode
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
dmesg produces only one line of new content:
CFG80211-ERROR) wl_cfg80211_add_virtual_iface : device is not ready
To me, this looks like a driver issue. iw list includes AP mode, but running # iwconfig wlan0 mode master generates:
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.