1#! /bin/sh
2#
3# Script for testing simple (single bss) ap operation.
4#
5# $FreeBSD: src/tools/tools/net80211/scripts/setup.simple,v 1.1 2008/04/20 20:43:42 sam Exp $
6#
7PATH=.:$PATH
8. config
9
10WLAN=`ifconfig wlan create wlanmode hostap wlandev $WIRELESS`
11ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
12BRIDGE=`ifconfig bridge create`
13ifconfig $BRIDGE addm $WLAN addm $WIRED up
14ifconfig $WIRED up
15wlandebug -i $WLAN state+scan+assoc+11n
16ifconfig $WLAN up
17