# This is an interfaces(5) example for implementing an Access Point with
# WPA-PSK encryption, working in 2.4 GHz.

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual
	# IP configuration is done for the bridge interface instead,
	# no other configuration needed here for this device

# The access point VAP
auto ath0
iface ath0 inet manual
	ath_parent wifi0
	ath_vaptype ap
	ath_channel 10
	ath_ssid MadWifiAP
	ath_security wpa
	ath_wpa_passphrase MySecretPassphrase

# The bridge interface that connects wired and wireless LAN
auto br0
iface br0 inet static
	bridge_ports eth0 ath0
	address 192.168.42.2
	netmask 255.255.255.0
	network 192.168.42.0
	broadcast 192.168.42.255
	gateway 192.168.42.1
	