On hostapd ADD command.
Nicolas Cavallari
Nicolas.Cavallari
Mon Aug 17 03:11:56 PDT 2015
I have some questions/problems concerning the hostapd ADD command:
- Why does "ADD file.conf" adds the interface without enabling it,
while "ADD bss=phy0:file.conf" enables the interface right away ?
- I'm having problems with "ADD bss=phy0:/tmp/vif.hostapd.conf", where
vif.hostapd.conf specify "interface=vif": if phy0 is not known to
hostapd, it expects "vif" to exist:
# /usr/sbin/hostapd -dddd -g /var/run/hostapd/global
random: Trying to read entropy from /dev/random
random: Got 20/20 bytes from /dev/random
Global ctrl_iface command: ADD bss_config=phy0:/tmp/vif.hostapd.conf
Configuration file: /tmp/vif.hostapd.conf (phy phy0) --> new PHY
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
Could not read interface vif flags: No such device
nl80211: Driver does not support authentication/association or connect
commands
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=0 linkmode=0 (kernel-control), operstate=6
(IF_OPER_UP)
Could not read interface vif flags: No such device
nl80211: Set mode ifindex 0 iftype 2 (STATION)
nl80211: Failed to set interface 0 to mode 2: -19 (No such device)
nl80211 driver initialization failed.
hostapd_add_iface: free hapd 0x9d7c958 (vif)
hostapd_add_iface: free iface 0x9d7c470
Adding interface bss_config=phy0 failed
Is that a bug or a (missing) feature ? It is not clear from the code.
More information about the Hostap
mailing list