WPA-2 encryption with AES-CCMP

Contributed by Captn. Kirk

interface=wlan0
# activate some syslogging
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
# WLAN Name (SSID), county setting and WLAN mode and channel
ssid=Raspberry
country_code=UK
hw_mode=g
channel=2
# Timing Parameter
beacon_int=100
dtim_period=2
max_num_sta=32
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wmm_enabled=0
ap_max_inactivity=300
# WPA key settings
wpa=2
wpa_passphrase=raspberry
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP
wpa_group_rekey=600