# /etc/hostapd/hostapd.conf
interface=wlan0
bridge=br0
# this is the driver that must be used for ath9k and other similar chipset devices
driver=nl80211
# yes, it says 802.11g, but the n-speeds get layered on top of it
hw_mode=g
# this enables the 802.11n speeds and capabilities ... You will also need to enable WMM for full HT functionality.
ieee80211n=1
wmm_enabled=1
# self-explanatory, but not all channels may be enabled for you - check /var/log/messages for details
channel=2
# also, make sure you survey your 2.4GHz environment, and find some uncluttered/uncrowded channels
# adjust to fit your location
country_code=US
# let your AP broadcast the settings that agree with the above-mentioned regulatory requirements per country
ieee80211d=1
# adjust to fit your preference
ssid=
# this is how I set mine up - works perfectly for iPhone, Mac OS X (SnowLeopard) & Linux
auth_algs=3
wpa=3
wpa_passphrase=
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
macaddr_acl=0
# these have to be set in agreement w/ channel and some other values... read hostapd.conf docs
ht_capab=[HT20][SHORT-GI-20]
# IIUC, this enables reauthentication for clients, so the passphrase doesn't have to be re-entered
eap_reauth_period=360000000
# makes the SSID visible and broadcasted
ignore_broadcast_ssid=0