I am working on an embedded Linux system (kernel-5.14), and I am trying to configure the device as a WIFI AP by using hostapd (and using softAP mode).
The main modification of hostapd.conf is as follows to support AP connecting with passphase,
interface=uap0 wpa=2 wpa_passphrase=12345678 wpa_key_mgmt=WPA-PSK rsn_pairwise=CCMP TKIP wpa_pairwise=TKIP CCMP auth-algs=3 And I configured udhcpd.conf accordingly.
After hostapd -B /etc/hostapd.conf and udhcpd -c /etc/udhcpd.conf &, I can see the log to save AP ENABLED.
I can connect this AP from my cellphone after entering the passphase, and I can ping my cellphone's IP (got from udhcpd on the AP device) from AP.
Now, I want to connect the AP from my cellphone without entering the passphase. I tried to change hostapd.conf, as follows,
wpa=0 auth_algs=1 #wpa_passphrase=12345678 Then I restart the hostapd and udhcpd and connect the AP from cellphone.
This time, the udhcpd in the AP reports logs as follows,
Sending IP 192.168.1.33 Sending IP 192.168.1.33 Sending IP 192.168.1.33 Sending IP 192.168.1.33 And my cellphone is showing getting IP Address for a while, then failed to connect to the AP.
So I am not sure if it is possible to connect to AP (hostapd) without passphase, if it is possible, how to configure the hostapd.conf to do that?