3 # Script for testing WPA1 w/ AES.
13 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 assoc
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 #mwldebug -i $WIRELESS keycache
53 start_hostapd -K $CONF