diff options
author | John Klug <john.klug@multitech.com> | 2019-05-16 16:27:59 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-05-16 16:27:59 -0500 |
commit | 22aab2f5435a49c6ea647b684ea3564e34e986f7 (patch) | |
tree | faad3020eec2df913aa577a2a6fc479eb191267f /recipes-kernel | |
parent | 86894d91a1c195ac414a72f2175db55158041417 (diff) | |
download | meta-multitech-22aab2f5435a49c6ea647b684ea3564e34e986f7.tar.gz meta-multitech-22aab2f5435a49c6ea647b684ea3564e34e986f7.tar.bz2 meta-multitech-22aab2f5435a49c6ea647b684ea3564e34e986f7.zip |
Add in antenna gain adjustment for wf command
Diffstat (limited to 'recipes-kernel')
-rw-r--r--[-rwxr-xr-x] | recipes-kernel/rs9113/files/rf/wf | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/recipes-kernel/rs9113/files/rf/wf b/recipes-kernel/rs9113/files/rf/wf index f40454e..7c31f44 100755..100644 --- a/recipes-kernel/rs9113/files/rf/wf +++ b/recipes-kernel/rs9113/files/rf/wf @@ -1,4 +1,4 @@ -#!/bin/bash +!/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' @@ -7,6 +7,15 @@ 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 @@ -29,4 +38,6 @@ 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 +/opt/rs9113/onebox_util rpine0 set_ext_ant_gain $gain2 $gain5 +/opt/rs9113/transmit rpine0 18 $rate 1536 1 $chan 0 $flag 0 0 0 255 + |