hostapd-2.3 using wired driver, crashes right after start
Tue Nov 4 06:19:21 PST 2014
The problem appears to be in ap/ap_drv_ops.c line 576:
hapd->iface->current_mode is NULL.
I would be happy to fix this, but as I am new to hostapd I'm not sure
how to go about it.
hostapd_set_freq() gets called from hostapd_set_freq() in ap_drv_ops.c
with hapd->iface->current_mode apparently set to NULL, which triggers
Afaics this caused by setup_interface2() calling
hostapd_get_hw_features(iface); hostapd_get_hw_features(iface) returns
-1 (static inline) causing the condition in setup_interface2() to be
true, and initialization is skipped.
But again, as I am not yet familiar with the master plan, I am not sure
if this is a bug or a feature :-)
Some help would be appreciated.
On 11/03/2014 08:10 PM, Jan Humme wrote:
> I am trying to get hostapd-2.3 to run on my desktop computer, using
> the wired driver on a virtual ethernet port.
> So I have downloaded and untarred hostapd-2.3.tar.gz, and adjusted the
> .config settings as follows:
>> $ diff defconfig .config
>> < CONFIG_DRIVER_HOSTAP=y
>> > #CONFIG_DRIVER_HOSTAP=y
>> < #CONFIG_DRIVER_WIRED=y
>> > CONFIG_DRIVER_WIRED=y
>> < CONFIG_DRIVER_NL80211=y
>> > #CONFIG_DRIVER_NL80211=y
> However hostapd seems to crash right after it starts up, not leaving
> much of a clue:
>> $ sudo ./hostapd -dd hostapd.conf
>> random: Trying to read entropy from /dev/random
>> Configuration file: hostapd.conf
>> Opening raw packet socket for ifindex 9
>> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
>> Using existing control interface directory.
>> Completing interface initialization
>> Mode: (null) Channel: 1 Frequency: -1 MHz
> Running hostapd in gdb gives:
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x0000000000410867 in hostapd_set_freq (hapd=hapd at entry=0x669770,
>> mode=1, freq=-1,
>> channel=1, ht_enabled=0, vht_enabled=0, sec_channel_offset=0,
>> vht_oper_chwidth=0, center_segment0=0, center_segment1=0)
>> at ../src/ap/ap_drv_ops.c:572
>> 572 if (hostapd_set_freq_params(&data, mode, freq,
>> channel, ht_enabled,
> Here is my hostapd.conf:
>> $ diff hostapd.conf.orig hostapd.conf
>> < interface=wlan0
>> > #interface=wlan0
>> > interface=sta3
>> > driver=wired
>> < logger_syslog_level=2
>> > logger_syslog_level=0
>> < logger_stdout_level=2
>> > logger_stdout_level=0
> Anyone any ideas what might be wrong?
> Thanks and best regards!
> HostAP mailing list
> HostAP at lists.shmoo.com
More information about the Hostap