003 File Manager
Current Path:
/usr/src/tools/tools/net80211/scripts
usr
/
src
/
tools
/
tools
/
net80211
/
scripts
/
📁
..
📄
config
(1.47 KB)
📁
mesh
📄
setup.dfs
(654 B)
📄
setup.fixed
(403 B)
📄
setup.local
(363 B)
📄
setup.mixed
(1.36 KB)
📄
setup.simple
(373 B)
📄
setup.simple2
(623 B)
📄
setup.sta
(255 B)
📄
setup.tdma-master
(402 B)
📄
setup.tdma-slave
(339 B)
📄
setup.tsn
(951 B)
📄
setup.updown
(600 B)
📄
setup.updown.wpa
(1013 B)
📄
setup.wds
(511 B)
📄
setup.wdsmain
(1.64 KB)
📄
setup.wdsrelay
(1.09 KB)
📄
setup.wep
(567 B)
📄
setup.wpa
(947 B)
📄
setup.wpa1.aes
(928 B)
📄
setup.wpa1.tkip
(929 B)
📄
setup.wpa2
(955 B)
📄
setup.wpa2.tkip
(956 B)
Editing: config
# # Common configuration settings for vap test scripts. # # $FreeBSD$ # media_type() { ifconfig $1 2>/dev/null | while read line; do case "$line" in *media:?Ethernet*) echo 802.3 ;; *media:?IEEE?802.11*) echo 802.11 ;; esac done } # # Auto-detect WIRED and WIRELESS. # NB: takes first device of each type; to fix # either specify them before . config. # for i in `ifconfig -l`; do case `media_type $i` in 802.3) test -z "$WIRED" && WIRED=$i ;; 802.11) test -z "$WIRELESS" && WIRELESS=$i ;; esac done test -z "$WIRED" && { echo "No wired device detected!"; exit; } test -z "$WIRELESS" && { echo "No wireless device detected!"; exit; } # fixed channel #CHANNEL=${1:-36:a} #CHANNEL=${1:-36:ht/20} CHANNEL=${1:-36} #CHANNEL=${1:-6:g} #CHANNEL=${1:-6:b} # default WPA passphrase test -z "$WPA_PASSPHRASE" && WPA_PASSPHRASE='I am not a geek' # default ssid for ap vaps test -z "$SSID" && SSID=freebsd-ap # default meshid for mesh vaps test -z "$MESHID" && MESHID=freebsd-mesh # directory to create files like hostapd.conf test -z "$TMPDIR" && TMPDIR=. test -z "$HOSTAPD_CTRL_INTERFACE" && HOSTAPD_CTRL_INTERFACE=/var/run/hostapd # applications (may want ../ for wlan test apps) test -z "$HOSTAPD" && HOSTAPD=/usr/sbin/hostapd test -z "$WLANWATCH" && WLANWATCH=/usr/local/bin/wlanwatch test -z "$WLANWDS" && WLANWDS=/usr/local/bin/wlanwds start_hostapd() { for m in wlan_xauth wlan_ccmp wlan_tkip wlan_wep; do kldstat -q -m $m || kldload $m done $HOSTAPD $* }
Upload File
Create Folder