aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-06-19 14:48:35 +0200
committerpespin <pespin@sysmocom.de>2020-06-22 10:11:58 +0000
commit405f17a98c463a2d750f1829b431e51d0a57e3b4 (patch)
tree6da9ebdf71176016fefbd8eab99d226998948727
parentb536ab9bdf605298739bac82b496fbb35f40514a (diff)
Transceiver: Allow sending negative nominal tx power in RSP NOMTXPOWER
Some SDR devices under some bands may provide only under 0 dBm Tx Power. Change-Id: I8cecb7a37eb80db341a624eb7b826180eac4a1d4
-rw-r--r--Transceiver52M/Transceiver.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 0b7ac31..7a81b7b 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -904,10 +904,7 @@ int Transceiver::ctrl_sock_handle_rx(int chan)
sprintf(response, "RSP ADJPOWER 0 %d", power);
} else if (match_cmd(command, "NOMTXPOWER", NULL)) {
int power = mRadioInterface->getNominalTxPower(chan);
- if (power > 0)
- sprintf(response, "RSP NOMTXPOWER 0 %d", power);
- else
- sprintf(response, "RSP NOMTXPOWER 1 %d", -power);
+ sprintf(response, "RSP NOMTXPOWER 0 %d", power);
} else if (match_cmd(command, "RXTUNE", &params)) {
// tune receiver
int freqKhz;