I'm trying to set up a computer that will start in wireless access point mode, receive SSID and Password from the user on their android/ios device, then join that network that was received from the user on the form.
So far this is working great on Android devices. However, for some reason attempting this on any ios device results in no communication to the wireless access point. It seems as though ios automatically attempts to find the static ip (in this case 192.168.0.20) through lte/wireless data rather than sending the request to my access point.
Here is the following configuration files:
hostapd.conf:
interface=wlan0
ctrl_interface=/run/hostapd
ctrl_interface_group=0
ssid=my_access_point_ssid
country_code=US
auth_algs=3
dnsmasq.conf:
interface=wlan0
dhcp-range=10.0.0.3,10.0.0.20,12h
port=80
Once the wireless access point is created and the ssid and password form is filled out and POST request sent to the wireless access point, a shell script takes in the information and connects to that access point with the following:
nmcli device wifi connect "$1" password "$2"