Skip to content

Commit ba3041c

Browse files
committed
Address CI failures and Gemini review feedback
1 parent 95d6aa6 commit ba3041c

20 files changed

Lines changed: 505 additions & 175 deletions

File tree

etc/cmake/options.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ ot_option(OT_NETDIAG_CLIENT OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE "Network
243243
ot_option(OT_NETDIAG_VENDOR_INFO OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE "Allow setting vendor info at runtime")
244244
ot_option(OT_OPERATIONAL_DATASET_AUTO_INIT OPENTHREAD_CONFIG_OPERATIONAL_DATASET_AUTO_INIT "operational dataset auto init")
245245
ot_option(OT_OTNS OPENTHREAD_CONFIG_OTNS_ENABLE "OTNS")
246-
ot_option(OT_P2P OPENTHREAD_CONFIG_P2P_ENABLE "peer to peer")
246+
247247
ot_option(OT_PING_SENDER OPENTHREAD_CONFIG_PING_SENDER_ENABLE "ping sender" ${OT_APP_CLI})
248248
ot_option(OT_PLATFORM_BOOTLOADER_MODE OPENTHREAD_CONFIG_PLATFORM_BOOTLOADER_MODE_ENABLE "platform bootloader mode")
249249
ot_option(OT_PLATFORM_DNSSD OPENTHREAD_CONFIG_PLATFORM_DNSSD_ENABLE "platform dnssd")
@@ -267,13 +267,14 @@ ot_option(OT_TCP OPENTHREAD_CONFIG_TCP_ENABLE "TCP")
267267
ot_option(OT_TIME_SYNC OPENTHREAD_CONFIG_TIME_SYNC_ENABLE "time synchronization service")
268268
ot_option(OT_TREL OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE "TREL radio link for Thread over Infrastructure feature")
269269
ot_option(OT_TREL_MANAGE_DNSSD OPENTHREAD_CONFIG_TREL_MANAGE_DNSSD_ENABLE "TREL to manage DNSSD and peer discovery")
270+
ot_option(OT_THREAD_DIRECT_WAKE_INITIATOR OPENTHREAD_CONFIG_THREAD_DIRECT_WAKE_INITIATOR_ENABLE "Thread Direct wake initiator")
271+
ot_option(OT_THREAD_DIRECT_WAKE_LISTENER OPENTHREAD_CONFIG_THREAD_DIRECT_WAKE_LISTENER_ENABLE "Thread Direct wake listener")
270272
ot_option(OT_TX_BEACON_PAYLOAD OPENTHREAD_CONFIG_MAC_OUTGOING_BEACON_PAYLOAD_ENABLE "tx beacon payload")
271273
ot_option(OT_TX_QUEUE_STATS OPENTHREAD_CONFIG_TX_QUEUE_STATISTICS_ENABLE "tx queue statistics")
272274
ot_option(OT_UDP_FORWARD OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE "UDP forward")
273275
ot_option(OT_UPTIME OPENTHREAD_CONFIG_UPTIME_ENABLE "uptime")
274276
ot_option(OT_VERHOEFF_CHECKSUM OPENTHREAD_CONFIG_VERHOEFF_CHECKSUM_ENABLE "verhoeff checksum")
275-
ot_option(OT_WAKEUP_COORDINATOR OPENTHREAD_CONFIG_WAKEUP_COORDINATOR_ENABLE "wake-up coordinator")
276-
ot_option(OT_WAKEUP_END_DEVICE OPENTHREAD_CONFIG_WAKEUP_END_DEVICE_ENABLE "wake-up end device")
277+
277278
ot_option(OT_SPINEL_CP_RESET_FAIL_CALLBACK_ENABLE OPENTHREAD_SPINEL_CONFIG_COPROCESSOR_RESET_FAILURE_CALLBACK_ENABLE "CP reset failure callback")
278279

279280
option(OT_DOC "build OpenThread documentation")

examples/platforms/simulation/openthread-core-simulation-config.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,4 @@
151151
#define OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT 1
152152
#endif
153153

154-
#if !OPENTHREAD_RADIO
155-
#ifndef OPENTHREAD_CONFIG_THREAD_DIRECT_WAKE_INITIATOR_ENABLE
156-
#define OPENTHREAD_CONFIG_THREAD_DIRECT_WAKE_INITIATOR_ENABLE 1
157-
#endif
158-
159-
#ifndef OPENTHREAD_CONFIG_THREAD_DIRECT_WAKE_LISTENER_ENABLE
160-
#define OPENTHREAD_CONFIG_THREAD_DIRECT_WAKE_LISTENER_ENABLE 1
161-
#endif
162-
#endif
163-
164154
#endif // OPENTHREAD_CORE_SIMULATION_CONFIG_H_

include/openthread/BUILD.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,11 @@ source_set("openthread") {
112112
"platform/radio.h",
113113
"platform/settings.h",
114114
"platform/spi-slave.h",
115+
"platform/thread_direct.h",
115116
"platform/time.h",
116117
"platform/toolchain.h",
117118
"platform/trel.h",
118119
"platform/udp.h",
119-
"provisional/link.h",
120-
"provisional/p2p.h",
121120
"radio_stats.h",
122121
"random_crypto.h",
123122
"random_noncrypto.h",
@@ -133,6 +132,7 @@ source_set("openthread") {
133132
"tcp.h",
134133
"tcp_ext.h",
135134
"thread.h",
135+
"thread_direct.h",
136136
"thread_ftd.h",
137137
"trel.h",
138138
"udp.h",

include/openthread/platform/thread_direct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ otError otPlatRadioConfigureThreadDirectEnhAckIe(otInstance *aInstance,
9696
* @retval OT_ERROR_NONE SLW schedule updated.
9797
* @retval OT_ERROR_NOT_IMPLEMENTED Feature is not implemented.
9898
*/
99-
otError otPlatRadioEnableThreadDirectSlw(otInstance *aInstance, uint32_t aSlwPeriod, const otExtAddress *aWiExtAddress);
99+
otError otPlatRadioEnableThreadDirectSlw(otInstance *aInstance, uint16_t aSlwPeriod, const otExtAddress *aWiExtAddress);
100100

101101
/**
102102
* Updates the next SLW sample time for the Thread Direct link with @p aWiExtAddress.

include/openthread/thread_direct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typedef struct otThreadDirectWakeKey
6969
typedef struct otThreadDirectPeerInfo
7070
{
7171
otExtAddress mExtAddress; ///< Peer extended address.
72-
uint16_t mTdShortAddress; ///< TD short address [0xFE00, 0xFFFE], or kShortAddrInvalid.
72+
uint16_t mTdShortAddress; ///< TD short address [0xFE00, 0xFFFE], or OT_RADIO_INVALID_SHORT_ADDR.
7373
uint16_t mSlwPeriodSlots; ///< Peer's SLW period in 160 us slots (0 = not configured).
7474
uint16_t mSlwPhaseSlots; ///< Peer's SLW phase in 160 us slots.
7575
uint16_t mSupervisionIntervalMs; ///< Supervision interval from TD Link Command, in milliseconds.

script/test

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,6 @@ build_simulation()
138138
options+=("-DOT_LINK_METRICS_INITIATOR=ON")
139139
options+=("-DOT_LINK_METRICS_SUBJECT=ON")
140140
options+=("-DOT_LINK_METRICS_MANAGER=ON")
141-
options+=("-DOT_P2P=ON")
142-
options+=("-DOT_WAKEUP_COORDINATOR=ON")
143-
options+=("-DOT_WAKEUP_END_DEVICE=ON")
144141
fi
145142

146143
if [[ ${OT_NODE_TYPE} == cli* ]]; then
@@ -189,9 +186,6 @@ build_posix()
189186
options+=("-DOT_LINK_METRICS_INITIATOR=ON")
190187
options+=("-DOT_LINK_METRICS_SUBJECT=ON")
191188
options+=("-DOT_LINK_METRICS_MANAGER=ON")
192-
options+=("-DOT_P2P=ON")
193-
options+=("-DOT_WAKEUP_COORDINATOR=ON")
194-
options+=("-DOT_WAKEUP_END_DEVICE=ON")
195189
fi
196190

197191
if [[ ${FULL_LOGS} == 1 ]]; then

0 commit comments

Comments
 (0)