From cd566129ec9e535331e7eea0657a92872d3a8aff Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 29 Mar 2013 17:03:31 -0300 Subject: [PATCH] tools/lib/misctxrx.c (set_power_step): set SPI_CMD_MODE to PHY_RSSI This way, we don't interfere with "hard MAC" using it for CRC checking. --- tools/lib/misctxrx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/misctxrx.c b/tools/lib/misctxrx.c index 89e79c9..2b46e9a 100644 --- a/tools/lib/misctxrx.c +++ b/tools/lib/misctxrx.c @@ -155,7 +155,8 @@ void set_power_step(struct atrf_dsc *dsc, int power, int crc) tmp = (tmp & ~TX_PWR_MASK) | power; atrf_reg_write(dsc, REG_PHY_TX_PWR, tmp); atrf_reg_write(dsc, REG_TRX_CTRL_1, - crc ? TX_AUTO_CRC_ON : 0); + (crc ? TX_AUTO_CRC_ON : 0) | + SPI_CMD_MODE_PHY_RSSI << SPI_CMD_MODE_SHIFT); break; default: abort();