 
     defmodule State do
       @moduledoc false
-      defstruct [:hostapd, :interface, :ip_addr]
+      defstruct [:hostapd, :dnsmasq, :interface, :ip_addr]
     end
 
     use GenServer

    def handle_info(_, state), do: {:noreply, state}

    defp handle_hostapd(data, state) when is_bitstring(data) do
      Logger.debug(3, String.trim(data))
      {:noreply, state}
    end


    @hostapd_conf_file "hostapd.conf"
    @hostapd_pid_file "hostapd.pid"

    @dnsmasq_conf_file "dnsmasq.conf"
    @dnsmasq_pid_file "dnsmasq.pid"

    defp ensure_interface(interface) do
      unless interface in Nerves.NetworkInterface.interfaces() do
