Start and Stop hostapd WiFi Access Point on Raspberry Pi and wpa_supplicant Fix

sudo systemctl enable hostapd
sudo systemctl start hostapd
sudo systemctl stop hostapd
sudo systemctl disable hostapd

Edit this file for name, channel, password;

sudo nano /etc/hostapd/hostapd.conf

To fix couldn’t communicate with wpa_supplicant edit;

/etc/wpa_supplicant/wpa_supplicant.conf

make sure

country=US

Then enable WiFi with

rfkill unblock 0