Report comment

Hi roboberry,

I feel stupid on this first part as I forgot to remove the "#" from the DAEMON_CONF="/etc/hostapd/hostapd.conf" line. Sorry about that.

After fixing that issue, the Pi will make the hotspot and I can connect to it from my iPad. It will not, however, join my home network that I set it up on. I checked, using my iPad while in the hotspot, the wpa_supplicant.conf file and my ssid and password are still set correctly.

I did the "grep -i dhcpcd /var/log/syslog" like you asked, and it has a few lines saying "waiting for carrier", "carrier acquired", "adding address", "carrier lost", "deleting address" before it says "Starting dnsmasq" and creating the hotspot.

Using my iPad, I was able to do the troubleshooting things you requested. I commented out the "interface wlan0" from /etc/dhcpcd.conf and did "sudo systemctl disable autohotspot". This allowed the Pi to join my home network upon a shutdown and restart. Upon un-commenting the "interface wlan0" and enabling the autohotspot again, the Pi won't join the home network and instead makes the hotspot.

So it now seems I have an issue with it connecting to a known wifi network at boot, where it drops the connection and proceeds to making a working hotspot instead.

This progress includes the 2 lines you had me put in the creatAdHocNetwork function:
ip link set dev "$wifidev" down
ip link set dev "$wifidev" up