summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/files/rf/wfr
blob: 38b6518f5edb9fcdecc0454b516c9024a0f9e2fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
echo 'WiFi recieve'
echo 'Parameter 1 is channel'
echo 'Paramter 2 is width'
echo '0 is 20MHz, 2 is upper 20 of 40, 4 is lower 20 of 40, 6 is 40MHz, 8 is 20KHz for 11J'
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
chan=1
if [[ -n $1 ]] ; then
    chan=$1
fi
width=0
if [[ -n $2 ]] ; then
    width=$2
fi
echo Using channel $1 for wifi receive
set -x
/opt/rs9113/receive rpine0 /dev/null $chan 0 $width