2017-04-07 11:38:41 -03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-06-23 10:31:20 -03:00
|
|
|
####
|
|
|
|
#### WARNING!!!
|
|
|
|
#### This script is depricated and **not supported** by author!
|
|
|
|
#### I leave it only for reference for **developers**.
|
|
|
|
#### Use python services instead.
|
|
|
|
####
|
|
|
|
|
2017-04-07 11:38:41 -03:00
|
|
|
WLANS=$@
|
2017-08-08 09:36:29 -03:00
|
|
|
BAND="5G"
|
|
|
|
#BAND="2G"
|
|
|
|
|
|
|
|
CHANNEL2G="6"
|
2017-04-07 11:38:41 -03:00
|
|
|
CHANNEL5G="149"
|
|
|
|
|
|
|
|
for WLAN in $WLANS
|
|
|
|
do
|
|
|
|
ifconfig $WLAN down
|
|
|
|
iw dev $WLAN set monitor otherbss
|
|
|
|
iw reg set BO
|
|
|
|
ifconfig $WLAN up
|
2017-08-08 09:36:29 -03:00
|
|
|
|
|
|
|
case $BAND in
|
|
|
|
"5G")
|
|
|
|
echo "Setting $WLAN to channel $CHANNEL5G"
|
|
|
|
iw dev $WLAN set channel $CHANNEL5G HT40+
|
|
|
|
;;
|
|
|
|
"2G")
|
|
|
|
echo "Setting $WLAN to channel $CHANNEL2G"
|
|
|
|
iw dev $WLAN set channel $CHANNEL2G HT40+
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Select 2G or 5G band"
|
|
|
|
exit -1;
|
|
|
|
;;
|
|
|
|
esac
|
2017-04-07 11:38:41 -03:00
|
|
|
done
|
|
|
|
|
2018-09-21 07:58:05 -03:00
|
|
|
# No UI, video only
|
2018-12-13 14:33:16 -04:00
|
|
|
./wfb_rx -p 1 -u 5600 -K gs.key $WLANS
|