mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 21:00:37 +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:
parent
211280356d
commit
cd566129ec
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user