An access point AP interface needs to know its network and broadcast details. A client is required to receive dns and dhcp requests.
# Configure wifi as access point auto wlan0 iface wlan0 inet static hostapd /etc/hostapd/hostapd.conf address 192.168.7.1 netmask 255.255.255.0