Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Auto-config wifi setup issues
#15
(10-12-2023, 11:19 PM)Tim Curtis Wrote: For sure :-)

Try a test. Edit hosted.conf and just remove the PSK so the param is like below

wpa_key_mgmt=WPA-PSK
wpa_psk=
rsn_pairwise=CCMP

In my test the "Moode" network did not show up.

True, it didn't start here either but it keeps trying. /var/log/syslog is being flooded with endless repetition of the following:


Code:
...
Oct 13 16:09:37 moode systemd[1]: Starting Access point and authentication server for Wi-Fi and Ethernet...
Oct 13 16:09:37 moode hostapd[28254]: Configuration file: /etc/hostapd/hostapd.conf
Oct 13 16:09:37 moode hostapd[28254]: Line 21: Invalid PSK ''.
Oct 13 16:09:37 moode hostapd[28254]: WPA-PSK enabled, but PSK or passphrase is not configured.
Oct 13 16:09:37 moode hostapd[28254]: 2 errors found in configuration file '/etc/hostapd/hostapd.conf'
Oct 13 16:09:37 moode hostapd[28254]: Failed to set up interface with /etc/hostapd/hostapd.conf
Oct 13 16:09:37 moode hostapd[28254]: Failed to initialize interface
Oct 13 16:09:37 moode systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE
Oct 13 16:09:37 moode systemd[1]: hostapd.service: Failed with result 'exit-code'.
Oct 13 16:09:37 moode systemd[1]: Failed to start Access point and authentication server for Wi-Fi and Ethernet.
Oct 13 16:09:39 moode systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 6530.
Oct 13 16:09:39 moode systemd[1]: Stopped Access point and authentication server for Wi-Fi and Ethernet.
...

and "Restart=on-failure" is set in /lib/systemd/system/hostapd.service

Don't know enough about hostapd to know if there's an easy hack or if one has to officially enable/disable the service.

Regards,
Kent
Reply


Messages In This Thread
Auto-config wifi setup issues - by avsfan19 - 10-11-2023, 01:22 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-11-2023, 01:39 PM
RE: Auto-config wifi setup issues - by avsfan19 - 10-11-2023, 05:57 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-11-2023, 06:09 PM
RE: Auto-config wifi setup issues - by avsfan19 - 10-13-2023, 01:28 AM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-12-2023, 08:52 PM
RE: Auto-config wifi setup issues - by Nutul - 10-12-2023, 09:23 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-12-2023, 09:52 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-12-2023, 10:31 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-12-2023, 11:19 PM
RE: Auto-config wifi setup issues - by TheOldPresbyope - 10-13-2023, 08:21 PM

Forum Jump: