I'm trying to configure an additional SSID (on 2.4GHz band) with hostapd but with no success yet.
I've tried to do it with the following steps:
"wifi down" to disable wifi and kill the default hostapd daemon.
run hostapd with "hostapd hostapd.conf" and the output is:
"Failed to create interface mon.wlan0: -95 (Not supported)
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:55:d8:fb and ssid "test"
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED"
With these two steps the SSID is broadcasted but I can't connect to it because the driver nl80211failed to initialize.
Thanks @mk24. I have verified that the hostapd configuration file is dynamically generated but i want to configure a new hostapd daemon besides the default one. Is it possible?
One instance of hostapd controls all the operations of one radio, including multiple SSIDs. Trying to attach a second instance of hostapd to the same radio will fail.
UCI will take care of this for you, provided the hardware and driver are capable.
Use iw list to see what interface combinations are allowed.
The MAC OUI suggests you have a Raspberry Pi 3, which has a Broadcom wifi chip with limited driver capabilities.
That's right @mk24. For that reason, I killed the hostapd daemon that is running by default and after that I ran a new hostapd daemon that gives the message above. This is not suppose to happen right?
UCI controls the services in a higher level and I want to do it in a lower level (with hostapd).
Thanks.
OpenWrt was not designed to directly manipulate the file you describe. You are supposed to use the UCI via command line at /etc/config/wireless or via LuCI web GUI in Network > Wireless.
In addition as @mk24, some Broadcom chipsets do not accept multiple SSID configurations.