I have this:
interface=wlan0 driver=nl80211 ssid=HOTSPOT hw_mode=g channel=6 ieee80211n=1 wmm_enabled=1 ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40] macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_key_mgmt=WPA-PSK wpa_passphrase=asd rsn_pairwise=CCMP
interface wlan0 static ip_address=10.255.255.1/24 static domain_name_servers=18.104.22.168 22.214.171.124
country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet static address 10.255.255.1 netmask 255.255.255.0 network 10.255.255.0 broadcast 192.168.5.255
and on first boot I get multiple issues but I am not sure what is the issue:
- hostapd_free_hapd_data: Interface wlan0 wasn't started
and because of that I think that I get this
- Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.
This fixed the issues and I was able to see the wifi hotspot running.
I fix it unblocking the wifi adapter: sudo rfkill unblock wifi
but I need it running from the first time and not having to do this. What is the issue and how do I solve it without running rfkill to unblock, I suspect the problem is either wpa_supplicant OR the fact that I was somehow turning off the interface in my setup. Also after running rfkill list phy0 wireless LAN soft blocked: yes shows up, so how do I enable it?