summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/files/rf/wf
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/rs9113/files/rf/wf')
-rwxr-xr-xrecipes-kernel/rs9113/files/rf/wf27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-kernel/rs9113/files/rf/wf b/recipes-kernel/rs9113/files/rf/wf
new file mode 100755
index 0000000..5a5d295
--- /dev/null
+++ b/recipes-kernel/rs9113/files/rf/wf
@@ -0,0 +1,27 @@
+#!/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'
+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
+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
+echo "Using channel WiFi $chan BT $btchan"
+set -x
+echo chan $chan
+/opt/rs9113/onebox_util rpine0 ant_sel 2
+/opt/rs9113/transmit 127 $rate 1536 1 $chan 0 $flag 0 0 0 255