blob: 8cbe0abc167d78be988d6b394071e913c9b29acb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#! /bin/sh
#
# Script for test vap create+destroy. Also used to verify
# resources are reclaimed properly on destroy.
#
# $FreeBSD: src/tools/tools/net80211/scripts/setup.updown,v 1.1.2.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
PATH=.:$PATH
. config
$WLANWATCH&
#mwldebug state+node+reset+xmit+recv+beacon+hal+hal2
while true
do
WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS`
ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
BRIDGE=`ifconfig bridge create`
ifconfig $BRIDGE addm $WLAN addm $WIRED up
ifconfig $WIRED up
wlandebug -i $WLAN state+scan+assoc
ifconfig $WLAN up
read x
ifconfig $WLAN destroy
ifconfig $BRIDGE destroy
done
|