source: src/router/aircrack-ng/scan @ 13699

Last change on this file since 13699 was 13699, checked in by BrainSlayer, 7 years ago

update scan utility for secondary driver

  • Property svn:executable set to *
File size: 530 bytes
Line 
1#!/bin/sh
2if test x$1 = x
3then
4        echo "Usage $0 interace [--band=abg] [--channel=xxxx]"
5        echo "channel = frequency"
6        echo "Band can be a / b / g / ab / ag / bg / abg"
7        echo
8        exit
9fi
10trap "/usr/sbin/scantidy ${1}"  1 2 3 6
11mode=`nvram get ath${1}_net_mode`
12
13
14if test -e "/proc/sys/dev/wifi${1}/mimo"; then
15        /usr/sbin/80211n_wlanconfig mon${1} create wlandev wifi${1} wlanmode monitor
16else
17        /usr/sbin/wlanconfig mon${1} create wlandev wifi${1} wlanmode monitor
18fi
19/usr/sbin/airodump-ng mon${1} ${2} ${3}
Note: See TracBrowser for help on using the repository browser.