diff options
Diffstat (limited to 'tools/tools/net80211/scripts/setup.wep')
-rw-r--r-- | tools/tools/net80211/scripts/setup.wep | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/tools/net80211/scripts/setup.wep b/tools/tools/net80211/scripts/setup.wep new file mode 100644 index 0000000..8045431 --- /dev/null +++ b/tools/tools/net80211/scripts/setup.wep @@ -0,0 +1,21 @@ +#! /bin/sh +# +# Script for testing ap mode w/ WEP. +# +# $FreeBSD$ +# +PATH=.:$PATH +. config + +#mwldebug -i $WIRELESS +node +WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS` +ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500 +#ifconfig $WLAN authmode shared +wlandebug -i $WLAN state+scan+assoc+crypto +#mwldebug -i $WIRELESS +keycache +#ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wepmode mixed +ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wep +BRIDGE=`ifconfig bridge create` +ifconfig $BRIDGE addm $WLAN addm $WIRED up +ifconfig $WIRED up +ifconfig $WLAN up |