feat(openthread): support preferred channel mask

This commit is contained in:
zwx 2024-12-26 22:03:34 +08:00
parent cb19765809
commit 86eed3f3ab
2 changed files with 20 additions and 0 deletions

View File

@ -360,6 +360,14 @@ menu "OpenThread"
default 120 default 120
endmenu endmenu
config OPENTHREAD_PREFERRED_CHANNEL_MASK
hex "Preferred channel mask"
default 0x7fff800
config OPENTHREAD_SUPPORTED_CHANNEL_MASK
hex "Supported channel mask"
default 0x7fff800
config OPENTHREAD_NUM_MESSAGE_BUFFERS config OPENTHREAD_NUM_MESSAGE_BUFFERS
int "The number of openthread message buffers" int "The number of openthread message buffers"
default 65 default 65

View File

@ -814,3 +814,15 @@ esp_ieee802154_coex_config_t esp_openthread_get_coex_config(void)
return esp_ieee802154_get_coex_config(); return esp_ieee802154_get_coex_config();
} }
#endif #endif
uint32_t otPlatRadioGetPreferredChannelMask(otInstance *aInstance)
{
OT_UNUSED_VARIABLE(aInstance);
return CONFIG_OPENTHREAD_PREFERRED_CHANNEL_MASK;
}
uint32_t otPlatRadioGetSupportedChannelMask(otInstance *aInstance)
{
OT_UNUSED_VARIABLE(aInstance);
return CONFIG_OPENTHREAD_SUPPORTED_CHANNEL_MASK;
}