Extend CC13xx PROP mode driver

We now write a dummy LQI in read() and we also add support for `RADIO_PARAM_RX_MODE` in `set_value()`
This commit is contained in:
George Oikonomou 2016-07-24 04:03:35 +01:00
parent d7028652fe
commit 983a618a36

View file

@ -763,6 +763,7 @@ read_frame(void *buf, unsigned short buf_len)
}
packetbuf_set_attr(PACKETBUF_ATTR_RSSI, (int8_t)data_ptr[len]);
packetbuf_set_attr(PACKETBUF_ATTR_LINK_QUALITY, 0x7F);
}
/* Move read entry pointer to next entry */
@ -1050,6 +1051,8 @@ set_value(radio_param_t param, radio_value_t value)
rv = RADIO_RESULT_ERROR;
}
return RADIO_RESULT_OK;
case RADIO_PARAM_RX_MODE:
return RADIO_RESULT_OK;
case RADIO_PARAM_CCA_THRESHOLD:
rssi_threshold = (int8_t)value;