3 # Script for testing single-bss WPA1+WPA2.
12 CONF=$TMPDIR/bsd-$WLAN.conf
21 ctrl_interface=$HOSTAPD_CTRL_INTERFACE
29 wpa_passphrase=$WPA_PASSPHRASE
34 trap "ifconfig $BRIDGE destroy; ifconfig $WLAN destroy; \
37 ifconfig $WLAN create wlandev $WIRELESS wlanmode hostap
38 #wlandebug -i $WLAN assoc+crypto
39 wlandebug -i $WLAN state+assoc+11n
40 ifconfig $WLAN ssid $SSID
41 ifconfig $WLAN channel $CHANNEL
42 ifconfig $WLAN mtu 1500 # NB: if_bridge requires matching mtu's
44 ifconfig $BRIDGE create
45 ifconfig $BRIDGE addm $WIRED addm $WLAN up
52 #athdebug -i $WIRELESS keycache
53 start_hostapd -K $CONF