]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/tools/net80211/scripts/setup.wep
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / tools / tools / net80211 / scripts / setup.wep
1 #! /bin/sh
2 #
3 # Script for testing ap mode w/ WEP.
4 #
5 # $FreeBSD$
6 #
7 PATH=.:$PATH
8 . config
9
10 #mwldebug -i $WIRELESS +node
11 WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS`
12 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
13 #ifconfig $WLAN authmode shared
14 wlandebug -i $WLAN state+scan+assoc+crypto
15 #mwldebug -i $WIRELESS +keycache
16 #ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wepmode mixed
17 ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wep
18 BRIDGE=`ifconfig bridge create`
19 ifconfig $BRIDGE addm $WLAN addm $WIRED up
20 ifconfig $WIRED up
21 ifconfig $WLAN up