From 83a9c9ef50caf133df810587f645b70d11129919 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 3 Jun 2017 19:02:20 +0700 Subject: host/trxcon/trx_if.c: add ECHO command This command should be used to check transceiver availability. Change-Id: I6af2d5e413ff7ab751cb34e1659742b0f59b6cca --- src/host/trxcon/trx_if.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/host/trxcon/trx_if.c') diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c index 9ae49006..5b0b7b1c 100644 --- a/src/host/trxcon/trx_if.c +++ b/src/host/trxcon/trx_if.c @@ -239,6 +239,10 @@ static int trx_ctrl_cmd(struct trx_instance *trx, int critical, /* * Power Control * + * ECHO is used to check transceiver availability. + * CMD ECHO + * RSP ECHO + * * POWEROFF shuts off transmitter power and stops the demodulator. * CMD POWEROFF * RSP POWEROFF @@ -253,6 +257,11 @@ static int trx_ctrl_cmd(struct trx_instance *trx, int critical, * RSP POWERON */ +int trx_if_cmd_echo(struct trx_instance *trx) +{ + return trx_ctrl_cmd(trx, 1, "ECHO", ""); +} + int trx_if_cmd_poweroff(struct trx_instance *trx) { return trx_ctrl_cmd(trx, 1, "POWEROFF", ""); -- cgit v1.2.3