summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/files/rf/wfr
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/rs9113/files/rf/wfr')
-rwxr-xr-xrecipes-kernel/rs9113/files/rf/wfr23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-kernel/rs9113/files/rf/wfr b/recipes-kernel/rs9113/files/rf/wfr
new file mode 100755
index 0000000..ace244d
--- /dev/null
+++ b/recipes-kernel/rs9113/files/rf/wfr
@@ -0,0 +1,23 @@
+#!/bin/bash
+echo 'WiFi recieve'
+echo 'Parameter 1 is channel'
+echo 'Paramter 2 is width'
+echo '0 is 20MHz, 6 is 40MHz'
+sed -i 's/DRIVER_MODE=1/DRIVER_MODE=2/' /opt/rs9113/common_insert.sh
+sed -i 's/COEX_MODE=[0-9]*/COEX_MODE=1/' /opt/rs9113/common_insert.sh
+/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 /dev/null $chan 0 $width
+