After researching many websites I developed an Access Point for use by students in an environment that has no internet access. It turned out to be something like "Internet In A Box" but with a specialized website and Samba sharing.
With the latest Raspbian, December 2018, with hostapd
installed, I tested and it works in that the SSID
shows on the mobile device. It can not connect since there is nothing to provide an IP number.
After I set up dnsmasq
I get the same results when I try to connect.
My hostapd.conf
# This is the name of the WiFi interface
interface=wlan0
# Use the nl80211 driver with the brcmfmac driver
# driver=nl80211
# This is the name of the network
ssid=XXXXXXX
# Use the 2.4GHz band
hw_mode=g
# Use channel 6
channel=6
# Enable 802.11n
ieee80211n=1
# Enable WMM
wmm_enabled=1
# Enable 40MHz channels with 20ns guard interval
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
# Accept all MAC addresses
macaddr_acl=0
# Use WPA authentication
auth_algs=1
# Require clients to know the network name
ignore_broadcast_ssid=0
# Use WPA2
wpa=2
# Use a pre-shared key
wpa_key_mgmt=WPA-PSK
# The network passphrase
wpa_passphrase=XXXXXXXXX
# Use AES, instead of TKIP
rsn_pairwise=CCMP
dnsmasq.conf
Add this:
#don't use resolv.conf
no-resolv
#don't recheck resolv.conf for changes
no-poll
# If you don't want dnsmasq to read /etc/hosts, uncomment the
# following line.
# no-hosts
# or if you want it to read another file, as well as /etc/hosts, use
# this.
#addn-hosts=/etc/banner_add_hosts
# Interface that serves ip-addresses
# Use the require wireless interface - usually wlan0
interface=wlan0
# Explicitly specify the address to listen on
listen-address=10.10.0.1
# Forward DNS requests to Google DNS
server=8.8.8.8
# Don't forward short names
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
dhcp-range=10.10.0.50,10.10.0.150,255.255.255.0,24h
dhcp-leasefile=/tmp/lease.file
This worked great when I set it up about a year ago with an older version of Raspbian. I have tried it both with and without the driver=
line.
Any help would be appreciated.