1#! /bin/sh
2#
3# Script for testing ap mode w/ WEP.
4#
5# $FreeBSD: src/tools/tools/net80211/scripts/setup.wep,v 1.1 2008/04/20 20:43:42 sam Exp $
6#
7PATH=.:$PATH
8. config
9
10#mwldebug -i $WIRELESS +node
11WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS`
12ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
13#ifconfig $WLAN authmode shared
14wlandebug -i $WLAN state+scan+assoc+crypto
15#mwldebug -i $WIRELESS +keycache
16#ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wepmode mixed
17ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wep
18BRIDGE=`ifconfig bridge create`
19ifconfig $BRIDGE addm $WLAN addm $WIRED up
20ifconfig $WIRED up
21ifconfig $WLAN up
22