I have already put a lot of effort into my PI trying to get the following to work and I sort of succeeded but it needs a manual intervention each time to get it going.
I have set up a Pi 2B with two Wifi adapters. One of the adapters I want to use as access point, the other one to connect to an external wifi. I live on a boat and 220 V is only available at a cost (running the generator or an inverter) so I like the idea of having the Pi provide the accespoint and if available connect my devices to a wifi that is usually available in port. I might also try to set the PI up with a 3G/4G dongle.
Now after a lot of effort I am getting this configuration to work, but after booting the hostapd will not start properly.
Starting it manually with log reveals the following lines:
Code: Select all
nl80211: interface wlan1 in phy phy0
nl80211: Set mode ifindex 5 iftype 3 (AP)
nl80211: Failed to set interface 5 to mode 3: -19 (No such device)
nl80211: Could not configure driver mode
Looks to me like it uses an index to access a device and that index is not available.
Now if I remove both USB adapters and the put them back in (wlan0 first then wlan1) it works.
The adapter I use for the hostapd is a Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter on wlan1
The adapter I use to access the port Wifi is a Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]. I did not get that adapter to work with hostapd.
The edimax seems to be a bit special, when I call iw list I get Information for an adapter Wiphy phy1. Before I had the ralink installed I saw nothing at all, so it seems iw does not even recognise the edimax.
Is there a way of making sure that the adapters are correctly associated with the right interfaces and whatever that index might be that hostapd stumbles over is set correctly ?