File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
modules/openthread/platform Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_OPENTHREAD_L2_LOG_LEVEL);
63
63
*/
64
64
#define PHR_DURATION_US 32U
65
65
66
+ #define DEFAULT_SENSITIVITY -100
67
+
66
68
enum pending_events {
67
69
PENDING_EVENT_FRAME_TO_SEND , /* There is a tx frame to send */
68
70
PENDING_EVENT_FRAME_RECEIVED , /* Radio has received new frame */
@@ -363,7 +365,7 @@ void platformRadioInit(void)
363
365
radio_api -> configure (radio_dev , IEEE802154_CONFIG_EVENT_HANDLER , & cfg );
364
366
365
367
#if defined(CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT )
366
- otLinkMetricsInit (otPlatRadioGetReceiveSensitivity () );
368
+ otLinkMetricsInit (DEFAULT_SENSITIVITY );
367
369
#endif
368
370
}
369
371
@@ -1110,7 +1112,7 @@ int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance)
1110
1112
{
1111
1113
ARG_UNUSED (aInstance );
1112
1114
1113
- return -100 ;
1115
+ return DEFAULT_SENSITIVITY ;
1114
1116
}
1115
1117
1116
1118
otError otPlatRadioGetTransmitPower (otInstance * aInstance , int8_t * aPower )
You can’t perform that action at this time.
0 commit comments