Merge branch 'feature/support_border_router' into 'master'

OpenThread: fix issues found in certification

See merge request espressif/esp-idf!23913
This commit is contained in:
Shu Chen
2023-06-09 10:20:46 +08:00
5 changed files with 16 additions and 2 deletions

View File

@@ -255,4 +255,11 @@ menu "OpenThread"
default n default n
help help
Select this option to set rx on when sleep in CSL feature, only for debug Select this option to set rx on when sleep in CSL feature, only for debug
config OPENTHREAD_DUA_ENABLE
bool "Enable Domain Unicast Address feature"
depends on OPENTHREAD_ENABLED
default n
help
Only used for Thread1.2 certification
endmenu endmenu

View File

@@ -371,6 +371,7 @@
*/ */
#define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1 #define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1
#if CONFIG_OPENTHREAD_DUA_ENABLE
/** /**
* @def OPENTHREAD_CONFIG_DUA_ENABLE * @def OPENTHREAD_CONFIG_DUA_ENABLE
* *
@@ -378,8 +379,9 @@
* *
*/ */
#ifndef OPENTHREAD_CONFIG_DUA_ENABLE #ifndef OPENTHREAD_CONFIG_DUA_ENABLE
#define OPENTHREAD_CONFIG_DUA_ENABLE 0 #define OPENTHREAD_CONFIG_DUA_ENABLE 1
#endif #endif
#endif //CONFIG_OPENTHREAD_DUA_ENABLE
/** /**
* @def OPENTHREAD_CONFIG_MLR_ENABLE * @def OPENTHREAD_CONFIG_MLR_ENABLE

View File

@@ -207,6 +207,7 @@
#define OPENTHREAD_RADIO 1 #define OPENTHREAD_RADIO 1
#if CONFIG_OPENTHREAD_LINK_METRICS
/** /**
* @def OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE * @def OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE
* *
@@ -216,3 +217,4 @@
#ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE #ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE
#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE 1 #define OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE 1
#endif #endif
#endif //CONFIG_OPENTHREAD_LINK_METRICS

View File

@@ -305,6 +305,9 @@ otError otPlatUdpConnect(otUdpSocket *udp_socket)
}; };
task.addr = map_openthread_addr_to_lwip_addr(&udp_socket->mPeerName.mAddress); task.addr = map_openthread_addr_to_lwip_addr(&udp_socket->mPeerName.mAddress);
if (ip_addr_isany_val(task.addr) && task.port == 0) {
return OT_ERROR_NONE;
}
tcpip_callback(udp_connect_task, &task); tcpip_callback(udp_connect_task, &task);
wait_for_task_notification(); wait_for_task_notification();