sudo apt-get install hostapd
sudo apt-get install dnsmasq
sudo systemctl stop hostapd
sudo systemctl stop dnsmasq
vi /etc/dhcpcd.conf
interface wlan0
static ip_address=192.168.8.10/24
denyinterfaces eth0
denyinterfaces wlan0
sudo vi /etc/dnsmasq.conf
interface=wlan0
dhcp-range=192.168.8.11,192.168.8.30,255.255.255.0,24h
nohook wpa_supplicant
sudo vi /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=NameOfNetwork
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=AardvarkBadgerHedgehog
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
sudo vi /etc/default/hostapd
DAEMON_OPTS="-dd -t -f /home/pi/hostapd.log"
DAEMON_CONF="/etc/hostapd/hostapd.conf"
/etc/udev/rules.d/72-wlan.rules
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="brcmfmac", NAME="wlan0"
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="r8188eu", NAME="wlan1"
udevadm test /sys/class/net/wifi1 | grep -i driver