summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-09-07 03:38:35 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-09-07 03:38:38 +0700
commit5c94d87c62cf60bcbf144eda7666f38ce1ebac88 (patch)
tree82ed6b8a690a61390461b82532f0edb4263b841a
parentb570cd532aaa925c7a3815777be8ea5dc6ddfa51 (diff)
trxcon/trx_if.c: drop unused SETPOWER and ADJPOWER
I am not sure we need the both control commands, as every burst on DATA interface has a header that includes TX power. Change-Id: Id14603e71df6dedb5a843bb3e20a320192dbca3d
-rw-r--r--src/host/trxcon/trx_if.c25
-rw-r--r--src/host/trxcon/trx_if.h3
2 files changed, 0 insertions, 28 deletions
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index 89331f30..b3735c2b 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -258,31 +258,6 @@ int trx_if_cmd_poweron(struct trx_instance *trx)
}
/*
- * SETPOWER sets output power in dB wrt full scale.
- * This command fails if the transmitter and receiver are not running.
- * CMD SETPOWER <dB>
- * RSP SETPOWER <status> <dB>
- */
-
-int trx_if_cmd_setpower(struct trx_instance *trx, int db)
-{
- return trx_ctrl_cmd(trx, 0, "SETPOWER", "%d", db);
-}
-
-/*
- * ADJPOWER adjusts power by the given dB step.
- * Response returns resulting power level wrt full scale.
- * This command fails if the transmitter and receiver are not running.
- * CMD ADJPOWER <dBStep>
- * RSP ADJPOWER <status> <dBLevel>
-*/
-
-int trx_if_cmd_adjpower(struct trx_instance *trx, int db)
-{
- return trx_ctrl_cmd(trx, 0, "ADJPOWER", "%d", db);
-}
-
-/*
* Timeslot Control
*
* SETSLOT sets the format of the uplink timeslots in the ARFCN.
diff --git a/src/host/trxcon/trx_if.h b/src/host/trxcon/trx_if.h
index ed6bd3f9..be0d41a6 100644
--- a/src/host/trxcon/trx_if.h
+++ b/src/host/trxcon/trx_if.h
@@ -61,9 +61,6 @@ int trx_if_cmd_poweron(struct trx_instance *trx);
int trx_if_cmd_poweroff(struct trx_instance *trx);
int trx_if_cmd_echo(struct trx_instance *trx);
-int trx_if_cmd_setpower(struct trx_instance *trx, int db);
-int trx_if_cmd_adjpower(struct trx_instance *trx, int db);
-
int trx_if_cmd_setta(struct trx_instance *trx, int8_t ta);
int trx_if_cmd_rxtune(struct trx_instance *trx, uint16_t band_arfcn);