summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrecipes-kernel/rs9113/files/rf/ble238
-rwxr-xr-xrecipes-kernel/rs9113/files/rf/bt238
-rwxr-xr-xrecipes-kernel/rs9113/files/rf/wf241
-rw-r--r--recipes-kernel/rs9113/rs9113rf.inc5
4 files changed, 121 insertions, 1 deletions
diff --git a/recipes-kernel/rs9113/files/rf/ble2 b/recipes-kernel/rs9113/files/rf/ble2
new file mode 100755
index 0000000..3332223
--- /dev/null
+++ b/recipes-kernel/rs9113/files/rf/ble2
@@ -0,0 +1,38 @@
+#!/bin/bash
+echo 'Bluetooth transmit'
+echo 'Optional 1st parameter is channel, 2nd is data rate, 2 or 3Mbps'
+echo '3rd parameter is hopping type: 0 (no hopping) 1 (fixed hopping) 2 (random hopping)'
+echo '4th parameter is receive channel required for fixed hopping'
+btchan=8
+if [[ -n $1 ]] ; then
+ btchan=$1
+fi
+dr=3
+if [[ -n $2 ]] ; then
+ dr=$2
+fi
+ht=0
+if [[ -n $3 ]] ; then
+ ht=$3
+fi
+rcvchan=9
+if [[ -n $4 ]] ; then
+ rcvchan=$4
+fi
+((burst=1))
+if ((ht != 0)) ; then
+ ((burst=0))
+fi
+export DRIVER_MODE=2
+export COEX_MODE=8
+/etc/init.d/rs9113 stop >/dev/null 2>&1
+echo 1 >/sys/devices/platform/mts-io/wifi-bt-reset
+echo 0 >/sys/devices/platform/mts-io/wifi-bt-reset
+sleep 1
+echo 1 >/sys/devices/platform/mts-io/wifi-bt-reset
+sleep 2
+cd /opt/rs9113
+bash onebox_insert.sh
+sleep 2
+echo "Using channel WiFi BT channel $btchan BT Data Rate $dr"
+echo "Using receive channel $rcvchan"
diff --git a/recipes-kernel/rs9113/files/rf/bt2 b/recipes-kernel/rs9113/files/rf/bt2
new file mode 100755
index 0000000..feb77f4
--- /dev/null
+++ b/recipes-kernel/rs9113/files/rf/bt2
@@ -0,0 +1,38 @@
+#!/bin/bash
+echo 'Bluetooth transmit'
+echo 'Optional 1st parameter is channel, 2nd is data rate, 2 or 3Mbps'
+echo '3rd parameter is hopping type: 0 (no hopping) 1 (fixed hopping) 2 (random hopping)'
+echo '4th parameter is receive channel required for fixed hopping'
+btchan=8
+if [[ -n $1 ]] ; then
+ btchan=$1
+fi
+dr=3
+if [[ -n $2 ]] ; then
+ dr=$2
+fi
+ht=0
+if [[ -n $3 ]] ; then
+ ht=$3
+fi
+rcvchan=9
+if [[ -n $4 ]] ; then
+ rcvchan=$4
+fi
+((burst=1))
+if ((ht != 0)) ; then
+ ((burst=0))
+fi
+export DRIVER_MODE=2
+export COEX_MODE=4
+/etc/init.d/rs9113 stop >/dev/null 2>&1
+echo 1 >/sys/devices/platform/mts-io/wifi-bt-reset
+echo 0 >/sys/devices/platform/mts-io/wifi-bt-reset
+sleep 1
+echo 1 >/sys/devices/platform/mts-io/wifi-bt-reset
+sleep 2
+cd /opt/rs9113
+bash onebox_insert.sh
+sleep 2
+echo "Using channel WiFi BT channel $btchan BT Data Rate $dr"
+echo "Using receive channel $rcvchan"
diff --git a/recipes-kernel/rs9113/files/rf/wf2 b/recipes-kernel/rs9113/files/rf/wf2
new file mode 100755
index 0000000..b56a68f
--- /dev/null
+++ b/recipes-kernel/rs9113/files/rf/wf2
@@ -0,0 +1,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 ' and mcs7'
+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'
+echo '4th and 5th parameters: antenna gain values in db of 2.4GHZ and 5GHZ respectively'
+gain2=0
+gain5=0
+if [[ -n $4 ]] ; then
+ gain2=$4
+fi
+if [[ -n $5 ]] ; then
+ gain5=$5
+fi
+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"
+set -x
+echo chan $chan
+/opt/rs9113/onebox_util rpine0 ant_sel 2
+/opt/rs9113/onebox_util rpine0 set_ext_ant_gain $gain2 $gain5
diff --git a/recipes-kernel/rs9113/rs9113rf.inc b/recipes-kernel/rs9113/rs9113rf.inc
index ce8b7fc..86a1f5e 100644
--- a/recipes-kernel/rs9113/rs9113rf.inc
+++ b/recipes-kernel/rs9113/rs9113rf.inc
@@ -2,17 +2,20 @@ DESCRIPTION = "Immunity testing for rs9113"
SECTION = "base"
PRIORITY = "optional"
LICENSE = "GPLv2+"
-PR = "r1"
+PR = "r2"
inherit allarch
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
SRC_URI = " \
file://rf/LICENSE.txt \
+ file://rf/ble2 \
file://rf/bt \
+ file://rf/bt2 \
file://rf/btr \
file://rf/stop \
file://rf/ubt \
file://rf/uwf \
file://rf/wf \
+ file://rf/wf2 \
file://rf/wfr \
"