mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 06:37:46 +00:00
[spinel] use OT version rather than MAC config in radio spinel (#5683)
This commit is contained in:
@@ -304,7 +304,7 @@ template <typename InterfaceType, typename ProcessContextType>
|
||||
otError RadioSpinel<InterfaceType, ProcessContextType>::CheckRadioCapabilities(void)
|
||||
{
|
||||
const otRadioCaps kRequiredRadioCaps =
|
||||
#if OPENTHREAD_CONFIG_MAC_CSL_TRANSMITTER_ENABLE
|
||||
#if OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2
|
||||
OT_RADIO_CAPS_TRANSMIT_SEC | OT_RADIO_CAPS_TRANSMIT_TIMING |
|
||||
#endif
|
||||
OT_RADIO_CAPS_ACK_TIMEOUT | OT_RADIO_CAPS_TRANSMIT_RETRIES | OT_RADIO_CAPS_CSMA_BACKOFF;
|
||||
@@ -1769,7 +1769,7 @@ otRadioState RadioSpinel<InterfaceType, ProcessContextType>::GetState(void) cons
|
||||
template <typename InterfaceType, typename ProcessContextType>
|
||||
void RadioSpinel<InterfaceType, ProcessContextType>::CalcRcpTimeOffset(void)
|
||||
{
|
||||
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE || OPENTHREAD_CONFIG_MAC_CSL_TRANSMITTER_ENABLE
|
||||
#if OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2
|
||||
otError error = OT_ERROR_NONE;
|
||||
uint64_t localTxTimestamp;
|
||||
uint64_t localRxTimestamp;
|
||||
@@ -1823,7 +1823,7 @@ void RadioSpinel<InterfaceType, ProcessContextType>::CalcRcpTimeOffset(void)
|
||||
|
||||
exit:
|
||||
LogIfFail("Error calculating RCP time offset: %s", error);
|
||||
#endif // OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE || OPENTHREAD_CONFIG_MAC_CSL_TRANSMITTER_ENABLE
|
||||
#endif // OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2
|
||||
}
|
||||
|
||||
template <typename InterfaceType, typename ProcessContextType>
|
||||
|
||||
Reference in New Issue
Block a user