hostapd service only starts manually

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The systemd service hostapd is enabled and when the system is started
the service reports that it is up but none of my Wifi devices can find
the network.
# systemctl status hostapd
● hostapd.service - Access point and authentication server for Wi-Fi
and Ethernet
     Loaded: loaded (/lib/systemd/system/hostapd.service; enabled;
vendor preset: enabled)
     Active: active (running) since Mon 2022-11-28 23:52:31 GMT; 52s ago
       Docs: man:hostapd(8)
    Process: 492 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B
$DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=0/SUCCESS)
   Main PID: 521 (hostapd)
      Tasks: 1 (limit: 8986)
        CPU: 82ms
     CGroup: /system.slice/hostapd.service
             └─521 /usr/sbin/hostapd -B -P /run/hostapd.pid -B
/etc/hostapd/hostapd.conf

Nov 28 23:52:31 raspberrypi systemd[1]: Starting Access point and
authentication server for Wi-Fi and Ethernet...
Nov 28 23:52:31 raspberrypi hostapd[492]: Configuration file:
/etc/hostapd/hostapd.conf
Nov 28 23:52:31 raspberrypi hostapd[492]: wlan0: interface state
UNINITIALIZED->COUNTRY_UPDATE
Nov 28 23:52:31 raspberrypi systemd[1]: Started Access point and
authentication server for Wi-Fi and Ethernet.


So I have to shutdown the service with a # systemctl stop hostapd and
then start the hostapd service manually.
# hostapd -dd /etc/hostapd/hostapd.conf.

When the hostapd service is started with the method above my wifi
devices are able to find the wifi access point.

I don't find anything in the logs which point to the issue and both
methods use the conf file /etc/hostapd/hostapd.conf to start the
service via systemd and manully.


Here is a copy of the hostapd.conf file:
# cat /etc/hostapd/hostapd.conf
ssid=rpi
wpa_passphrase=redacted

driver=nl80211
auth_algs=1
wpa_key_mgmt=WPA-PSK
beacon_int=100
channel=6
hw_mode=g

ieee80211n=1
require_ht=1
#ht_capab=[MAX-AMSDU-3839][HT40+][SHORT-GI-20][SHORT-GI-40][DSSS_CCK-40]
#ht_capab=[SHORT-GI-40][HT40+][HT40-][DSSS_CCK-40]

#ieee80211ac=1
require_vht=1
ieee80211d=0
ieee80211h=0
vht_capab=[MAX-AMSDU-3839][SHORT-GI-80]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42

interface=wlan0
#bridge=br0
wpa=2
wpa_pairwise=CCMP
rsn_pairwise=CCMP
country_code=BR
ignore_broadcast_ssid=0




Regards,
-Jaime

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux