source: src/router/aircrack-ng/scantidy @ 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: 834 bytes
Line 
1#!/bin/sh
2if test x$1 = x
3then
4        echo "Usage $0 interfacenumber [frequency]"
5fi
6mode=`nvram get ath${1}_net_mode`
7
8if test -e "/proc/sys/dev/wifi${1}/mimo"; then
9        /usr/sbin/80211n_wlanconfig mon${1} destroy
10else
11        /usr/sbin/wlanconfig mon${1} destroy
12fi
13#restore mode
14/sbin/ifconfig ath${1} down
15if test mode = "mixed"
16then
17        /usr/sbin/iwpriv ath${1} mode 0
18fi
19if test mode = "b-only"
20then
21        /usr/sbin/iwpriv ath${1} mode 2
22fi
23if test mode = "g-only"
24then
25        /usr/sbin/iwpriv ath${1} mode 3
26        /usr/sbin/iwpriv ath${1} protmode 0
27fi
28if test mode = "bg-mixed"
29then
30        /usr/sbin/iwpriv ath${1} mode 3
31        /usr/sbin/iwpriv ath${1} protmode 1
32fi
33if test mode = "a-only"
34then
35        /usr/sbin/iwpriv ath${1} mode 1
36fi
37/sbin/ifconfig ath${1} up
38echo "mon interface removed"
39echo
40echo "have a nice day"
Note: See TracBrowser for help on using the repository browser.