(2019-06-19, 09:17 PM)e-sailing Wrote: To debug hostapd you should use following commands and send the output.
Code:sudo service hostapd stop
hostapd -d /etc/hostapd/hostapd.conf
hostapd -d /etc/hostapd/hostapd.conf
gives this output:
Code:
pi@openplotter:~ $ sudo hostapd -d /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
Could not read interface wlan1 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan1 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=0 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
Could not read interface wlan1 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_interface_deinit_free(0x138dcf8)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x138dcf8)
wlan1: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan1
wlan1: AP-DISABLED
hostapd_cleanup(hapd=0x138ea48 (wlan1))
hostapd_free_hapd_data: Interface wlan1 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x138dcf8)
hostapd_interface_free: free hapd 0x138ea48
hostapd_cleanup_iface(0x138dcf8)
hostapd_cleanup_iface_partial(0x138dcf8)
hostapd_cleanup_iface: free iface=0x138dcf8