1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 14:50:38 +02:00

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.
This commit is contained in:
Werner Almesberger 2013-03-29 17:03:31 -03:00
parent 211280356d
commit cd566129ec

View File

@ -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();