summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/files/rf/uwf
blob: f6276da75ade93e14a8e8bb0694fcf284dac98e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
echo 'Optional 1st parameter is wifi channel'
echo '2nd parameter is rate 1,18,54 or other valid rate'
echo '3rd parameter is width, 0 for 20MHz, and 24 for 40MHz'
echo '2nd parameter values: 1, 2, 5.5, 11, 6, 9, 12, 18, 24, 36, 48, 54,'
echo '                      mcs0, mcs1, mcs2, mcs3, mcs4, mcs5, mcs6,'
echo '3rd parameter values:'
echo '0 is 20MHz, 2 is upper 20 of 40, 4 is lower 20 of 40, 6 is 40MHz, 8 is 20KHz for 11J'
chan=8
if [[ -n $1 ]] ; then
    chan=$1
fi
rate=54
if [[ -n $2 ]] ; then
    rate=$2
fi
flag=0
if [[ -n $3 ]] ; then
    flag=$3
fi
export DRIVER_MODE=2
export COEX_MODE=1
/etc/init.d/rs9113 stop >/dev/null 2>&1
cd /opt/rs9113
bash wlan_bt_insert.sh
sleep 2
echo "Using channel WiFi $chan BT $btchan"
echo chan $chan
echo "Start modulated signal for 10 seconds"
echo "Use antenna port 2"
set -x
sleep 2
/opt/rs9113/onebox_util rpine0 ant_sel 2
/opt/rs9113/transmit rpine0 127 $rate 1536 1 $chan 0 $flag 0 0 0 255
set +x
sleep 10
echo Bring up unmodulated signal
set -x
/opt/rs9113/transmit 0
/opt/rs9113/onebox_util rpine0 ant_sel 3
/opt/rs9113/onebox_util rpine0 cw_mode $chan 0 5