From 687c5f81111a0971a51f1438a363df027a433bcd Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 16 May 2019 16:41:28 -0500 Subject: Allow for antenna gain in wf command --- recipes-kernel/rs9113/files/rf/uwf | 6 ++++-- recipes-kernel/rs9113/files/rf/wf | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/recipes-kernel/rs9113/files/rf/uwf b/recipes-kernel/rs9113/files/rf/uwf index 061b2d3..c789299 100755 --- a/recipes-kernel/rs9113/files/rf/uwf +++ b/recipes-kernel/rs9113/files/rf/uwf @@ -31,11 +31,13 @@ echo "Use antenna port 2" set -x sleep 2 /opt/rs9113/onebox_util rpine0 ant_sel 2 -/opt/rs9113/transmit 127 $rate 1536 1 $chan 0 $flag 0 0 0 255 +# Maximum signal strength is 18 +/opt/rs9113/transmit rpine0 18 $rate 1536 1 $chan 0 $flag 0 0 0 255 set +x sleep 10 echo Bring up unmodulated signal set -x -/opt/rs9113/transmit 0 +/opt/rs9113/transmit rpine0 1 /opt/rs9113/onebox_util rpine0 ant_sel 2 /opt/rs9113/onebox_util rpine0 cw_mode $chan 0 5 + diff --git a/recipes-kernel/rs9113/files/rf/wf b/recipes-kernel/rs9113/files/rf/wf index 7c31f44..832ec51 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' -- cgit v1.2.3