How to locate hostapd errors ?


daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
kern.info kernel: [   ###] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
kern.info kernel: [   ###] br-lan: port 3(wlan0) entered blocking state
kern.info kernel: [   ###] br-lan: port 3(wlan0) entered disabled state
kern.info kernel: [   ###] device wlan0 entered promiscuous mode
daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
daemon.err hostapd: Using interface wlan0 with hwaddr *** and ssid "***"

The system log has the above , so how to locate this error?

Not enough info yet.

SSH in to the router and run

logread | grep hostapd

Post the results in preformatted text, by using the icon highlighted in red...

OpenWRT Posting Icons

The log level 4 system log has only one prompt. I want to find out which parameter in the configuration file is in conflict.

After posting the logread output, run the following -

cat /var/run/hostapd-phy1.conf

Post the results in preformatted text.

driver=nl80211
logger_syslog=127
logger_syslog_level=4
logger_stdout=127
logger_stdout_level=4
country_code=**
ieee80211d=1
hw_mode=g
supported_rates=60 90 120 180 240 360 480 540
basic_rates=60 120 240
beacon_int=100
channel=6


ieee80211n=1
ht_coex=0
ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

interface=wlan0
ctrl_interface=/var/run/hostapd
ap_isolate=1
bss_load_update_period=60
chan_util_avg_period=600
disassoc_low_ack=1
preamble=1
wmm_enabled=1
ignore_broadcast_ssid=0
uapsd_advertisement_enabled=1
wpa_passphrase=***
auth_algs=1
wpa=2
wpa_pairwise=CCMP
ssid=***
bridge=br-lan
wpa_disable_eapol_key_retries=0
wpa_key_mgmt=WPA-PSK
okc=0
disable_pmksa_caching=1
bssid=***

I added some log information