I am porting the monitor example to Linux, MMWL_setRfTxPowMonConfig only returns TX0 Power report,I can't get the power report for tx1, tx2
int32_t MMWL_setRfTxPowMonConfig(unsigned char deviceMap)
{
int32_t retVal;
// rlTxPowMonConf_t tx0PowrMonCfg = {0};
rlTxPowMonConf_t tx0PowrMonCfg = { 0, 7, 0, 0, 0, 30, 30, 0, 0 };
// rlTxPowMonConf_t tx1PowrMonCfg = {0};
rlTxPowMonConf_t tx1PowrMonCfg = { 0, 7, 0, 0, 0, 30, 30, 0, 0 };
rlTxPowMonConf_t tx2PowrMonCfg = { 0, 7, 0, 0, 0, 30, 30, 0, 0 };
rlAllTxPowMonConf_t data = { &tx0PowrMonCfg, &tx1PowrMonCfg, &tx2PowrMonCfg };
/* TX Power Monitoring configuration */
retVal = rlRfTxPowrMonConfig(RL_DEVICE_MAP_CASCADED_1, &data);
/* Sanity Check: Was the mmWave link successful? */
if (retVal != 0)
{
/* Error: Link reported an issue. */
printf("Error: rlRfTxPowrMonConfig retVal=%d\n", retVal);
return -1;
}
printf("Debug: Finished information related to TX Power monitor configurations to BSS\n");
return retVal;
}