1 /* 2 * Copyright (c) 2018, The OpenThread Authors. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * 2. Redistributions in binary form must reproduce the above copyright 10 * notice, this list of conditions and the following disclaimer in the 11 * documentation and/or other materials provided with the distribution. 12 * 3. Neither the name of the copyright holder nor the 13 * names of its contributors may be used to endorse or promote products 14 * derived from this software without specific prior written permission. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 * POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29 /** 30 * @file 31 * Checking for configuration options. Removed or replaced OPENTHREAD_CONFIG options. 32 * 33 * The checks below verify that none of the older configuration definition are 34 * still defined and being used. The list below is not necessarily complete and 35 * the error message is only intended to give a hint of what the possible new 36 * configuration name may be. Please check the documentation of the new 37 * configuration parameter for details about behavior of each option before use. 38 * 39 */ 40 41 #ifndef OPENTHREAD_CORE_CONFIG_CHECK_H_ 42 #define OPENTHREAD_CORE_CONFIG_CHECK_H_ 43 44 #if defined(OPENTHREAD_CONFIG_DISABLE_CCA_ON_LAST_ATTEMPT) || \ 45 defined(OPENTHREAD_CONFIG_DISABLE_CSMA_CA_ON_LAST_ATTEMPT) || \ 46 defined(OPENTHREAD_CONFIG_MAC_DISABLE_CSMA_CA_ON_LAST_ATTEMPT) 47 #error \ 48 "OPENTHREAD_CONFIG_DISABLE_CCA_ON_LAST_ATTEMPT, OPENTHREAD_CONFIG_DISABLE_CSMA_CA_ON_LAST_ATTEMPT and OPENTHREAD_CONFIG_MAC_DISABLE_CSMA_CA_ON_LAST_ATTEMPT were removed." 49 #endif 50 51 #ifdef OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_DIRECT 52 #error "OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_DIRECT was replaced by OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_DIRECT." 53 #endif 54 55 #ifdef OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_INDIRECT_PER_POLL 56 #error \ 57 "OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_INDIRECT_PER_POLL was replaced by OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_INDIRECT." 58 #endif 59 60 #ifdef OPENTHREAD_CONFIG_MAX_SERVER_ALOCS 61 #error "OPENTHREAD_CONFIG_MAX_SERVER_ALOCS was replaced by OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_MAX_ALOCS." 62 #endif 63 64 #ifdef OPENTHREAD_CONFIG_ENABLE_AUTO_START_SUPPORT 65 #error "OPENTHREAD_CONFIG_ENABLE_AUTO_START_SUPPORT was removed." 66 #endif 67 68 #ifdef OPENTHREAD_ENABLE_ANDROID_NDK 69 #error "OPENTHREAD_ENABLE_ANDROID_NDK was replaced by OPENTHREAD_CONFIG_ANDROID_NDK_ENABLE." 70 #endif 71 72 #ifdef OPENTHREAD_ENABLE_CERT_LOG 73 #error "OPENTHREAD_ENABLE_CERT_LOG was replaced by OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE." 74 #endif 75 76 #ifdef OPENTHREAD_ENABLE_MULTIPLE_INSTANCES 77 #error "OPENTHREAD_ENABLE_MULTIPLE_INSTANCES was replaced by OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE." 78 #endif 79 80 #ifdef OPENTHREAD_CONFIG_NCP_UART_ENABLE 81 #error "OPENTHREAD_CONFIG_NCP_UART_ENABLE was replaced by OPENTHREAD_CONFIG_NCP_HDLC_ENABLE." 82 #endif 83 84 #ifdef OPENTHREAD_ENABLE_NCP_UART 85 #error "OPENTHREAD_ENABLE_NCP_UART was replaced by OPENTHREAD_CONFIG_NCP_HDLC_ENABLE." 86 #endif 87 88 #ifdef OPENTHREAD_ENABLE_NCP_SPI 89 #error "OPENTHREAD_ENABLE_NCP_SPI was replaced by OPENTHREAD_CONFIG_NCP_SPI_ENABLE." 90 #endif 91 92 #ifdef OPENTHREAD_ENABLE_UDP_FORWARD 93 #error "OPENTHREAD_ENABLE_UDP_FORWARD was replaced by OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE." 94 #endif 95 96 #ifdef OPENTHREAD_ENABLE_BORDER_AGENT 97 #error "OPENTHREAD_ENABLE_BORDER_AGENT was replaced by OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE." 98 #endif 99 100 #ifdef OPENTHREAD_ENABLE_MTD_NETWORK_DIAGNOSTIC 101 #error "OPENTHREAD_ENABLE_MTD_NETWORK_DIAGNOSTIC was replaces by OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE." 102 #endif 103 104 #ifdef OPENTHREAD_ENABLE_APPLICATION_COAP_SECURE 105 #error "OPENTHREAD_ENABLE_APPLICATION_COAP_SECURE was replaced by OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE." 106 #endif 107 108 #ifdef OPENTHREAD_ENABLE_PLATFORM_UDP 109 #error "OPENTHREAD_ENABLE_PLATFORM_UDP was replaced by OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE." 110 #endif 111 112 #ifdef OPENTHREAD_ENABLE_PLATFORM_NETIF 113 #error "OPENTHREAD_ENABLE_PLATFORM_NETIF was replaced by OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE." 114 #endif 115 116 #ifdef OPENTHREAD_ENABLE_COMMISSIONER 117 #error "OPENTHREAD_ENABLE_COMMISSIONER was replaced by OPENTHREAD_CONFIG_COMMISSIONER_ENABLE." 118 #endif 119 120 #ifdef OPENTHREAD_ENABLE_JOINER 121 #error "OPENTHREAD_ENABLE_JOINER was replaced by OPENTHREAD_CONFIG_JOINER_ENABLE." 122 #endif 123 124 #ifdef OPENTHREAD_ENABLE_DTLS 125 #error "OPENTHREAD_ENABLE_DTLS was replaced by OPENTHREAD_CONFIG_DTLS_ENABLE." 126 #endif 127 128 #ifdef OPENTHREAD_ENABLE_JAM_DETECTION 129 #error "OPENTHREAD_ENABLE_JAM_DETECTION was replaced by OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE." 130 #endif 131 132 #ifdef OPENTHREAD_ENABLE_CHANNEL_MONITOR 133 #error "OPENTHREAD_ENABLE_CHANNEL_MONITOR was replaced by OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE." 134 #endif 135 136 #ifdef OPENTHREAD_ENABLE_CHANNEL_MANAGER 137 #error "OPENTHREAD_ENABLE_CHANNEL_MANAGER was replaced by OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE." 138 #endif 139 140 #ifdef OPENTHREAD_ENABLE_MAC_FILTER 141 #error "OPENTHREAD_ENABLE_MAC_FILTER was replaced by OPENTHREAD_CONFIG_MAC_FILTER_ENABLE." 142 #endif 143 144 #ifdef OPENTHREAD_ENABLE_DIAG 145 #error "OPENTHREAD_ENABLE_DIAG was replaced by OPENTHREAD_CONFIG_DIAG_ENABLE." 146 #endif 147 148 #ifdef OPENTHREAD_ENABLE_LEGACY 149 #error "OPENTHREAD_ENABLE_LEGACY was replaced by OPENTHREAD_CONFIG_LEGACY_ENABLE." 150 #endif 151 152 #ifdef OPENTHREAD_CONFIG_LEGACY_ENABLE 153 #error "OPENTHREAD_CONFIG_LEGACY_ENABLE was removed." 154 #endif 155 156 #ifdef OPENTHREAD_ENABLE_CHILD_SUPERVISION 157 #error "OPENTHREAD_ENABLE_CHILD_SUPERVISION was replaced by OPENTHREAD_CONFIG_CHILD_SUPERVISION_ENABLE." 158 #endif 159 160 #ifdef OPENTHREAD_ENABLE_DHCP6_SERVER 161 #error "OPENTHREAD_ENABLE_DHCP6_SERVER was replaced by OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE." 162 #endif 163 164 #ifdef OPENTHREAD_ENABLE_DNS_CLIENT 165 #error "OPENTHREAD_ENABLE_DNS_CLIENT was replaced by OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE." 166 #endif 167 168 #ifdef OPENTHREAD_ENABLE_SNTP_CLIENT 169 #error "OPENTHREAD_ENABLE_SNTP_CLIENT was replaced by OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE." 170 #endif 171 172 #ifdef OPENTHREAD_ENABLE_APPLICATION_COAP 173 #error "OPENTHREAD_ENABLE_APPLICATION_COAP was replaced by OPENTHREAD_CONFIG_COAP_API_ENABLE." 174 #endif 175 176 #ifdef OPENTHREAD_ENABLE_RAW_LINK_API 177 #error "OPENTHREAD_ENABLE_RAW_LINK_API was replaced by OPENTHREAD_CONFIG_LINK_RAW_ENABLE." 178 #endif 179 180 #ifdef OPENTHREAD_ENABLE_BORDER_ROUTER 181 #error "OPENTHREAD_ENABLE_BORDER_ROUTER was replaced by OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE." 182 #endif 183 184 #ifdef OPENTHREAD_ENABLE_SERVICE 185 #error "OPENTHREAD_ENABLE_SERVICE was replaced by OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE." 186 #endif 187 188 #ifdef OPENTHREAD_ENABLE_ECDSA 189 #error "OPENTHREAD_ENABLE_ECDSA was replaced by OPENTHREAD_CONFIG_ECDSA_ENABLE." 190 #endif 191 192 #ifdef OPENTHREAD_CONFIG_ENABLE_TIME_SYNC 193 #error "OPENTHREAD_CONFIG_ENABLE_TIME_SYNC was replaced by OPENTHREAD_CONFIG_TIME_SYNC_ENABLE." 194 #endif 195 196 #ifdef OPENTHREAD_ENABLE_REFERENCE_DEVICE 197 #error "OPENTHREAD_ENABLE_REFERENCE_DEVICE was replaced by OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE." 198 #endif 199 200 #ifdef OPENTHREAD_ENABLE_DHCP6_CLIENT 201 #error "OPENTHREAD_ENABLE_DHCP6_CLIENT was replaced by OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE." 202 #endif 203 204 #ifdef OPENTHREAD_ENABLE_SPINEL_VENDOR_SUPPORT 205 #error "OPENTHREAD_ENABLE_SPINEL_VENDOR_SUPPORT was replaced by OPENTHREAD_ENABLE_NCP_VENDOR_HOOK." 206 #endif 207 208 #ifdef OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_INDIRECT_POLLS 209 #error \ 210 "OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_INDIRECT_POLLS was replaced by OPENTHREAD_CONFIG_MAC_MAX_TX_ATTEMPTS_INDIRECT_POLLS." 211 #endif 212 213 #ifdef OPENTHREAD_CONFIG_TX_NUM_BCAST 214 #error "OPENTHREAD_CONFIG_TX_NUM_BCAST was replaced by OPENTHREAD_CONFIG_MAC_TX_NUM_BCAST." 215 #endif 216 217 #ifdef OPENTHREAD_CONFIG_ATTACH_DATA_POLL_PERIOD 218 #error "OPENTHREAD_CONFIG_ATTACH_DATA_POLL_PERIOD was replaced by OPENTHREAD_CONFIG_MAC_ATTACH_DATA_POLL_PERIOD." 219 #endif 220 221 #ifdef OPENTHREAD_CONFIG_ADDRESS_CACHE_ENTRIES 222 #error "OPENTHREAD_CONFIG_ADDRESS_CACHE_ENTRIES was replaced by OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES." 223 #endif 224 225 #ifdef OPENTHREAD_CONFIG_ADDRESS_QUERY_TIMEOUT 226 #error "OPENTHREAD_CONFIG_ADDRESS_QUERY_TIMEOUT was replaced by OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_TIMEOUT." 227 #endif 228 229 #ifdef OPENTHREAD_CONFIG_ADDRESS_QUERY_INITIAL_RETRY_DELAY 230 #error \ 231 "OPENTHREAD_CONFIG_ADDRESS_QUERY_INITIAL_RETRY_DELAY was replaced by OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_INITIAL_RETRY_DELAY." 232 #endif 233 234 #ifdef OPENTHREAD_CONFIG_ADDRESS_QUERY_MAX_RETRY_DELAY 235 #error \ 236 "OPENTHREAD_CONFIG_ADDRESS_QUERY_MAX_RETRY_DELAY was replaced by OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX_RETRY_DELAY." 237 #endif 238 239 #ifdef OPENTHREAD_CONFIG_MAX_ROUTERS 240 #error "OPENTHREAD_CONFIG_MAX_ROUTERS was replaced by OPENTHREAD_CONFIG_MLE_MAX_ROUTERS." 241 #endif 242 243 #ifdef OPENTHREAD_CONFIG_MAX_CHILDREN 244 #error "OPENTHREAD_CONFIG_MAX_CHILDREN was replaced by OPENTHREAD_CONFIG_MLE_MAX_CHILDREN." 245 #endif 246 247 #ifdef OPENTHREAD_CONFIG_DEFAULT_CHILD_TIMEOUT 248 #error "OPENTHREAD_CONFIG_DEFAULT_CHILD_TIMEOUT was replaced by OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT." 249 #endif 250 251 #ifdef OPENTHREAD_CONFIG_IP_ADDRS_PER_CHILD 252 #error "OPENTHREAD_CONFIG_IP_ADDRS_PER_CHILD was replaced by OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD." 253 #endif 254 255 #ifdef OPENTHREAD_CONFIG_IP_ADDRS_TO_REGISTER 256 #error "OPENTHREAD_CONFIG_IP_ADDRS_TO_REGISTER was replaced by OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER." 257 #endif 258 259 #ifdef OPENTHREAD_CONFIG_MAX_EXT_IP_ADDRS 260 #error "OPENTHREAD_CONFIG_MAX_EXT_IP_ADDRS was replaced by OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS." 261 #endif 262 263 #ifdef OPENTHREAD_CONFIG_MAX_EXT_MULTICAST_IP_ADDRS 264 #error "OPENTHREAD_CONFIG_MAX_EXT_MULTICAST_IP_ADDRS was replaced by OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS." 265 #endif 266 267 #ifdef OPENTHREAD_CONFIG_MAX_SERVICE_ALOCS 268 #error "OPENTHREAD_CONFIG_MAX_SERVICE_ALOCS was replaced by OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_MAX_ALOCS." 269 #endif 270 271 #ifdef OPENTHREAD_CONFIG_MAX_ENERGY_RESULTS 272 #error "OPENTHREAD_CONFIG_MAX_ENERGY_RESULTS was replaced by OPENTHREAD_CONFIG_TMF_ENERGY_SCAN_MAX_RESULTS." 273 #endif 274 275 #ifdef OPENTHREAD_CONFIG_MAX_JOINER_ROUTER_ENTRIES 276 #error "OPENTHREAD_CONFIG_MAX_JOINER_ROUTER_ENTRIES was replaced by OPENTHREAD_CONFIG_JOINER_MAX_CANDIDATES." 277 #endif 278 279 #ifdef OPENTHREAD_CONFIG_SNTP_RESPONSE_TIMEOUT 280 #error "OPENTHREAD_CONFIG_SNTP_RESPONSE_TIMEOUT was replaced by OPENTHREAD_CONFIG_SNTP_CLIENT_RESPONSE_TIMEOUT." 281 #endif 282 283 #ifdef OPENTHREAD_CONFIG_SNTP_MAX_RETRANSMIT 284 #error "OPENTHREAD_CONFIG_SNTP_MAX_RETRANSMIT was replaced by OPENTHREAD_CONFIG_SNTP_CLIENT_MAX_RETRANSMIT." 285 #endif 286 287 #ifdef OPENTHREAD_CONFIG_JOIN_BEACON_VERSION 288 #error "OPENTHREAD_CONFIG_JOIN_BEACON_VERSION was replaced by OPENTHREAD_CONFIG_MAC_JOIN_BEACON_VERSION." 289 #endif 290 291 #ifdef OPENTHREAD_CONFIG_MESHCOP_PENDING_DATASET_MINIMUM_DELAY 292 #error \ 293 "OPENTHREAD_CONFIG_MESHCOP_PENDING_DATASET_MINIMUM_DELAY was replaced by OPENTHREAD_CONFIG_TMF_PENDING_DATASET_MINIMUM_DELAY." 294 #endif 295 296 #ifdef OPENTHREAD_CONFIG_MESHCOP_PENDING_DATASET_DEFAULT_DELAY 297 #error \ 298 "OPENTHREAD_CONFIG_MESHCOP_PENDING_DATASET_DEFAULT_DELAY was replaced by OPENTHREAD_CONFIG_TMF_PENDING_DATASET_DEFAULT_DELAY." 299 #endif 300 301 #ifdef OPENTHREAD_CONFIG_ENABLE_SLAAC 302 #error "OPENTHREAD_CONFIG_ENABLE_SLAAC was replaced by OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE." 303 #endif 304 305 #ifdef OPENTHREAD_CONFIG_NUM_SLAAC_ADDRESSES 306 #error "OPENTHREAD_CONFIG_NUM_SLAAC_ADDRESSES was replaced by OPENTHREAD_CONFIG_IP6_SLAAC_NUM_ADDRESSES." 307 #endif 308 309 #ifdef OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT 310 #error \ 311 "OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE." 312 #endif 313 314 #ifdef OPENTHREAD_CONFIG_SOFTWARE_ACK_TIMEOUT_ENABLE 315 #error \ 316 "OPENTHREAD_CONFIG_SOFTWARE_ACK_TIMEOUT_ENABLE was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE." 317 #endif 318 319 #ifdef OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT 320 #error "OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE." 321 #endif 322 323 #ifdef OPENTHREAD_CONFIG_SOFTWARE_RETRANSMIT_ENABLE 324 #error "OPENTHREAD_CONFIG_SOFTWARE_RETRANSMIT_ENABLE was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE." 325 #endif 326 327 #ifdef OPENTHREAD_CONFIG_ENABLE_SOFTWARE_CSMA_BACKOFF 328 #error \ 329 "OPENTHREAD_CONFIG_ENABLE_SOFTWARE_CSMA_BACKOFF was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE." 330 #endif 331 332 #ifdef OPENTHREAD_CONFIG_SOFTWARE_CSMA_BACKOFF_ENABLE 333 #error \ 334 "OPENTHREAD_CONFIG_SOFTWARE_CSMA_BACKOFF_ENABLE was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE." 335 #endif 336 337 #ifdef OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN 338 #error \ 339 "OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_ENERGY_SCAN_ENABLE." 340 #endif 341 342 #ifdef OPENTHREAD_CONFIG_SOFTWARE_ENERGY_SCAN_ENABLE 343 #error \ 344 "OPENTHREAD_CONFIG_SOFTWARE_ENERGY_SCAN_ENABLE was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_ENERGY_SCAN_ENABLE." 345 #endif 346 347 #ifdef OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER 348 #error "OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER was replaced by OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE." 349 #endif 350 351 #ifdef OPENTHREAD_CONFIG_ENABLE_BEACON_RSP_WHEN_JOINABLE 352 #error \ 353 "OPENTHREAD_CONFIG_ENABLE_BEACON_RSP_WHEN_JOINABLE was replaced by OPENTHREAD_CONFIG_MAC_BEACON_RSP_WHEN_JOINABLE_ENABLE." 354 #endif 355 356 #ifdef OPENTHREAD_CONFIG_ENABLE_STEERING_DATA_SET_OOB 357 #error \ 358 "OPENTHREAD_CONFIG_ENABLE_STEERING_DATA_SET_OOB was replaced by OPENTHREAD_CONFIG_MLE_STEERING_DATA_SET_OOB_ENABLE." 359 #endif 360 361 #ifdef OPENTHREAD_CONFIG_SUPERVISION_CHECK_TIMEOUT 362 #error "OPENTHREAD_CONFIG_SUPERVISION_CHECK_TIMEOUT was replaced by OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT." 363 #endif 364 365 #ifdef OPENTHREAD_CONFIG_SUPERVISION_MSG_NO_ACK_REQUEST 366 #error \ 367 "OPENTHREAD_CONFIG_SUPERVISION_MSG_NO_ACK_REQUEST was replaced by OPENTHREAD_CONFIG_CHILD_SUPERVISION_MSG_NO_ACK_REQUEST." 368 #endif 369 370 #ifdef OPENTHREAD_CONFIG_ENABLE_PERIODIC_PARENT_SEARCH 371 #error "OPENTHREAD_CONFIG_ENABLE_PERIODIC_PARENT_SEARCH was replaced by OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE." 372 #endif 373 374 #ifdef OPENTHREAD_CONFIG_ENABLE_ATTACH_BACKOFF 375 #error "OPENTHREAD_CONFIG_ENABLE_ATTACH_BACKOFF was replaced by OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_ENABLE." 376 #endif 377 378 #ifdef OPENTHREAD_CONFIG_ATTACH_BACKOFF_MINIMUM_INTERVAL 379 #error \ 380 "OPENTHREAD_CONFIG_ATTACH_BACKOFF_MINIMUM_INTERVAL was replaced by OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_MINIMUM_INTERVAL." 381 #endif 382 383 #ifdef OPENTHREAD_CONFIG_ATTACH_BACKOFF_MAXIMUM_INTERVAL 384 #error \ 385 "OPENTHREAD_CONFIG_ATTACH_BACKOFF_MAXIMUM_INTERVAL was replaced by OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_MAXIMUM_INTERVAL." 386 #endif 387 388 #ifdef OPENTHREAD_CONFIG_ATTACH_BACKOFF_JITTER_INTERVAL 389 #error \ 390 "OPENTHREAD_CONFIG_ATTACH_BACKOFF_JITTER_INTERVAL was replaced by OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_JITTER_INTERVAL." 391 #endif 392 393 #ifdef OPENTHREAD_CONFIG_SEND_UNICAST_ANNOUNCE_RESPONSE 394 #error \ 395 "OPENTHREAD_CONFIG_SEND_UNICAST_ANNOUNCE_RESPONSE was replaced by OPENTHREAD_CONFIG_MLE_SEND_UNICAST_ANNOUNCE_RESPONSE." 396 #endif 397 398 #ifdef OPENTHREAD_CONFIG_ENABLE_ANNOUNCE_SENDER 399 #error "OPENTHREAD_CONFIG_ENABLE_ANNOUNCE_SENDER was replaced by OPENTHREAD_CONFIG_ANNOUNCE_SENDER_ENABLE." 400 #endif 401 402 #ifdef OPENTHREAD_CONFIG_STAY_AWAKE_BETWEEN_FRAGMENTS 403 #error \ 404 "OPENTHREAD_CONFIG_STAY_AWAKE_BETWEEN_FRAGMENTS was replaced by OPENTHREAD_CONFIG_MAC_STAY_AWAKE_BETWEEN_FRAGMENTS." 405 #endif 406 407 #ifdef OPENTHREAD_CONFIG_ENABLE_DYNAMIC_MPL_INTERVAL 408 #error "OPENTHREAD_CONFIG_ENABLE_DYNAMIC_MPL_INTERVAL was replaced by OPENTHREAD_CONFIG_MPL_DYNAMIC_INTERVAL_ENABLE." 409 #endif 410 411 #ifdef OPENTHREAD_CONFIG_ENABLE_LONG_ROUTES 412 #error "OPENTHREAD_CONFIG_ENABLE_LONG_ROUTES was replaced by OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE." 413 #endif 414 415 #ifdef OPENTHREAD_CONFIG_MINIMUM_POLL_PERIOD 416 #error "OPENTHREAD_CONFIG_MINIMUM_POLL_PERIOD was replaced by OPENTHREAD_CONFIG_MAC_MINIMUM_POLL_PERIOD." 417 #endif 418 419 #ifdef OPENTHREAD_CONFIG_RETX_POLL_PERIOD 420 #error "OPENTHREAD_CONFIG_RETX_POLL_PERIOD was replaced by OPENTHREAD_CONFIG_MAC_RETX_POLL_PERIOD." 421 #endif 422 423 #ifdef OPENTHREAD_CONFIG_IPV6_DEFAULT_HOP_LIMIT 424 #error "OPENTHREAD_CONFIG_IPV6_DEFAULT_HOP_LIMIT was replaced by OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT." 425 #endif 426 427 #ifdef OPENTHREAD_CONFIG_IPV6_DEFAULT_MAX_DATAGRAM 428 #error "OPENTHREAD_CONFIG_IPV6_DEFAULT_MAX_DATAGRAM was replaced by OPENTHREAD_CONFIG_IP6_MAX_DATAGRAM_LENGTH." 429 #endif 430 431 #ifdef OPENTHREAD_CONFIG_HEADER_IE_SUPPORT 432 #error "OPENTHREAD_CONFIG_HEADER_IE_SUPPORT was replaced by OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT." 433 #endif 434 435 #ifdef OPENTHREAD_CONFIG_MAX_JOINER_ENTRIES 436 #error "OPENTHREAD_CONFIG_MAX_JOINER_ENTRIES was replaced by OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES." 437 #endif 438 439 #ifdef OPENTHREAD_CONFIG_NUM_DHCP_PREFIXES 440 #error "OPENTHREAD_CONFIG_NUM_DHCP_PREFIXES was replaced by OPENTHREAD_CONFIG_DHCP6_SERVER_NUM_PREFIXES." 441 #endif 442 443 #ifdef OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH 444 #error \ 445 "OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH was replaced by OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH." 446 #endif 447 448 #ifdef OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_METRICS_ENABLE 449 #error \ 450 "OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_METRICS_ENABLE was replaced by OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE." 451 #endif 452 453 #ifdef OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_DIRECT 454 #error \ 455 "OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_DIRECT was replaced by OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_DIRECT." 456 #endif 457 458 #ifdef OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_INDIRECT 459 #error \ 460 "OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_INDIRECT was replaced by OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_INDIRECT." 461 #endif 462 463 #ifdef OPENTHREAD_CONFIG_ENABLE_TX_ERROR_RATE_TRACKING 464 #error "OPENTHREAD_CONFIG_ENABLE_TX_ERROR_RATE_TRACKING was removed." 465 #endif 466 467 #ifdef OPENTHREAD_CONFIG_ENABLE_DYNAMIC_LOG_LEVEL 468 #error "OPENTHREAD_CONFIG_ENABLE_DYNAMIC_LOG_LEVEL was replaced by OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE." 469 #endif 470 471 #ifdef OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL 472 #error "OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL was replaced by OPENTHREAD_CONFIG_LOG_LEVEL_INIT." 473 #endif 474 475 #ifdef OPENTHREAD_CONFIG_COAP_ACK_TIMEOUT 476 #error \ 477 "OPENTHREAD_CONFIG_COAP_ACK_TIMEOUT was removed. Use otCoapSendRequestWithParameters to configure CoAP transmission parameters." 478 #endif 479 480 #ifdef OPENTHREAD_CONFIG_COAP_ACK_TIMEOUT_MILLIS 481 #error \ 482 "OPENTHREAD_CONFIG_COAP_ACK_TIMEOUT_MILLIS was removed. Use otCoapSendRequestWithParameters to configure CoAP transmission parameters." 483 #endif 484 485 #ifdef OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL 486 #error "OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL is removed, use OPENTHREAD_CONFIG_LOG_OUTPUT_APP instead" 487 #endif 488 489 #ifdef OPENTHREAD_CONFIG_DNS_RESPONSE_TIMEOUT 490 #error "OPENTHREAD_CONFIG_DNS_RESPONSE_TIMEOUT was replaced by OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_RESPONSE_TIMEOUT" 491 #endif 492 493 #ifdef OPENTHREAD_CONFIG_DNS_MAX_RETRANSMIT 494 #error "OPENTHREAD_CONFIG_DNS_MAX_RETRANSMIT was replaced by OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_MAX_TX_ATTEMPTS" 495 #endif 496 497 #ifdef OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_HOST_ADDRSSES 498 #error "OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_HOST_ADDRSSES was replaced by "\ 499 "OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_HOST_ADDRESSES" 500 #endif 501 502 #ifdef OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER 503 #error "OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER was replaced by OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL" 504 #endif 505 506 #ifdef OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_REED 507 #error "OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_REED was replaced by OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL" 508 #endif 509 510 #ifdef OPENTHREAD_CONFIG_SRP_SERVER_SERVICE_NUMBER 511 #error "OPENTHREAD_CONFIG_SRP_SERVER_SERVICE_NUMBER was removed. "\ 512 "Service numbers are defined in `network_data_service.hpp` per spec" 513 #endif 514 515 #ifdef OPENTHREAD_CONFIG_SRP_SERVER_UDP_PORT 516 #error "OPENTHREAD_CONFIG_SRP_SERVER_UDP_PORT was removed. "\ 517 "You can make OPENTHREAD_CONFIG_SRP_SERVER_UDP_PORT_MIN = OPENTHREAD_CONFIG_SRP_SERVER_UDP_PORT_MAX to specify a static UDP port. " 518 #endif 519 520 #ifdef OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE 521 #error "OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE was replaced by OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE" \ 522 " and OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE" 523 #endif 524 525 #ifdef OPENTHREAD_CONFIG_LOG_DEFINE_AS_MACRO_ONLY 526 #error "OPENTHREAD_CONFIG_LOG_DEFINE_AS_MACRO_ONLY was removed and no longer supported" 527 #endif 528 529 #ifdef OPENTHREAD_CONFIG_PLAT_LOG_MACRO_NAME 530 #error "OPENTHREAD_CONFIG_PLAT_LOG_MACRO_NAME was removed and no longer supported" 531 #endif 532 533 #ifdef OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION 534 #error "OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION was removed and no longer supported" 535 #endif 536 537 #ifdef OPENTHREAD_CONFIG_UNSECURE_TRAFFIC_MANAGED_BY_STACK_ENABLE 538 #error "OPENTHREAD_CONFIG_UNSECURE_TRAFFIC_MANAGED_BY_STACK_ENABLE was removed and no longer supported" 539 #endif 540 541 #ifdef OPENTHREAD_CONFIG_LOG_API 542 #error "OPENTHREAD_CONFIG_LOG_API was removed and no longer supported" 543 #endif 544 545 #ifdef OPENTHREAD_CONFIG_LOG_MLE 546 #error "OPENTHREAD_CONFIG_LOG_MLE was removed and no longer supported" 547 #endif 548 549 #ifdef OPENTHREAD_CONFIG_LOG_MESHCOP 550 #error "OPENTHREAD_CONFIG_LOG_MESHCOP was removed and no longer supported" 551 #endif 552 553 #ifdef OPENTHREAD_CONFIG_LOG_ARP 554 #error "OPENTHREAD_CONFIG_LOG_ARP was removed and no longer supported" 555 #endif 556 557 #ifdef OPENTHREAD_CONFIG_LOG_NETDATA 558 #error "OPENTHREAD_CONFIG_LOG_NETDATA was removed and no longer supported" 559 #endif 560 561 #ifdef OPENTHREAD_CONFIG_LOG_ICMP 562 #error "OPENTHREAD_CONFIG_LOG_ICMP was removed and no longer supported" 563 #endif 564 565 #ifdef OPENTHREAD_CONFIG_LOG_IP6 566 #error "OPENTHREAD_CONFIG_LOG_IP6 was removed and no longer supported" 567 #endif 568 569 #ifdef OPENTHREAD_CONFIG_LOG_TCP 570 #error "OPENTHREAD_CONFIG_LOG_TCP was removed and no longer supported" 571 #endif 572 573 #ifdef OPENTHREAD_CONFIG_LOG_MAC 574 #error "OPENTHREAD_CONFIG_LOG_MAC was removed and no longer supported" 575 #endif 576 577 #ifdef OPENTHREAD_CONFIG_LOG_MEM 578 #error "OPENTHREAD_CONFIG_LOG_MEM was removed and no longer supported" 579 #endif 580 581 #ifdef OPENTHREAD_CONFIG_LOG_NETDIAG 582 #error "OPENTHREAD_CONFIG_LOG_NETDIAG was removed and no longer supported" 583 #endif 584 585 #ifdef OPENTHREAD_CONFIG_LOG_COAP 586 #error "OPENTHREAD_CONFIG_LOG_COAP was removed and no longer supported" 587 #endif 588 589 #ifdef OPENTHREAD_CONFIG_LOG_CORE 590 #error "OPENTHREAD_CONFIG_LOG_CORE was removed and no longer supported" 591 #endif 592 593 #ifdef OPENTHREAD_CONFIG_LOG_UTIL 594 #error "OPENTHREAD_CONFIG_LOG_UTIL was removed and no longer supported" 595 #endif 596 597 #ifdef OPENTHREAD_CONFIG_LOG_BBR 598 #error "OPENTHREAD_CONFIG_LOG_BBR was removed and no longer supported" 599 #endif 600 601 #ifdef OPENTHREAD_CONFIG_LOG_MLR 602 #error "OPENTHREAD_CONFIG_LOG_MLR was removed and no longer supported" 603 #endif 604 605 #ifdef OPENTHREAD_CONFIG_LOG_DUA 606 #error "OPENTHREAD_CONFIG_LOG_DUA was removed and no longer supported" 607 #endif 608 609 #ifdef OPENTHREAD_CONFIG_LOG_BR 610 #error "OPENTHREAD_CONFIG_LOG_BR was removed and no longer supported" 611 #endif 612 613 #ifdef OPENTHREAD_CONFIG_LOG_SRP 614 #error "OPENTHREAD_CONFIG_LOG_SRP was removed and no longer supported" 615 #endif 616 617 #ifdef OPENTHREAD_CONFIG_LOG_DNS 618 #error "OPENTHREAD_CONFIG_LOG_DNS was removed and no longer supported" 619 #endif 620 621 #ifdef OPENTHREAD_CONFIG_LOG_PREPEND_REGION 622 #error "OPENTHREAD_CONFIG_LOG_PREPEND_REGION was removed and not longer supported" 623 #endif 624 625 #ifdef OPENTHREAD_CONFIG_SRP_SERVER_MAX_ADDRESSES_NUM 626 #error "OPENTHREAD_CONFIG_SRP_SERVER_MAX_ADDRESSES_NUM was removed. "\ 627 "SRP host uses dynamic heap array to store addresses so no need for config on max number of addresses". 628 #endif 629 630 #ifdef OPENTHREAD_CONFIG_PLATFORM_CSL_UNCERT 631 #error "OPENTHREAD_CONFIG_PLATFORM_CSL_UNCERT was removed and no longer supported" 632 #endif 633 634 #ifdef OPENTHREAD_CONFIG_BORDER_ROUTING_VICARIOUS_RS_ENABLE 635 #error "OPENTHREAD_CONFIG_BORDER_ROUTING_VICARIOUS_RS_ENABLE was removed and no longer supported" 636 #endif 637 638 #ifdef OPENTHREAD_CONFIG_SRP_CLIENT_UPDATE_TX_DELAY 639 #error "OPENTHREAD_CONFIG_SRP_CLIENT_UPDATE_TX_DELAY was replaced with "\ 640 "OPENTHREAD_CONFIG_SRP_CLIENT_UPDATE_TX_MIN_DELAY and OPENTHREAD_CONFIG_SRP_CLIENT_UPDATE_TX_MAX_DELAY" 641 #endif 642 643 #ifdef OPENTHREAD_CONFIG_BORDER_ROUTING_NAT64_ENABLE 644 #error "OPENTHREAD_CONFIG_BORDER_ROUTING_NAT64_ENABLE was replaced by OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE" 645 #endif 646 647 #ifdef OPENTHREAD_CONFIG_CHILD_SUPERVISION_ENABLE 648 #error "OPENTHREAD_CONFIG_CHILD_SUPERVISION_ENABLE is removed. The feature is now supported by default (on 1.3.0)" 649 #endif 650 651 #ifdef OPENTHREAD_CONFIG_CHILD_SUPERVISION_MSG_NO_ACK_REQUEST 652 #error "OPENTHREAD_CONFIG_CHILD_SUPERVISION_MSG_NO_ACK_REQUEST is removed". 653 #endif 654 655 #ifdef OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE 656 #error "OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE is removed. "\ 657 "Use OPENTHREAD_CONFIG_TMF_NETDIAG_CLIENT_ENABLE to enable client functionality."\ 658 "Netdiag server functionality is always supported." 659 #endif 660 661 #ifdef OPENTHREAD_CONFIG_PING_SENDER_DEFAULT_INTEVRAL 662 #error "OPENTHREAD_CONFIG_PING_SENDER_DEFAULT_INTEVRAL was replaced by "\ 663 "OPENTHREAD_CONFIG_PING_SENDER_DEFAULT_INTERVAL." 664 #endif 665 666 #ifdef OPENTHREAD_CONFIG_SRP_SERVER_DEFAULT_ADDDRESS_MODE 667 #error "OPENTHREAD_CONFIG_SRP_SERVER_DEFAULT_ADDDRESS_MODE was replaced by "\ 668 "OPENTHREAD_CONFIG_SRP_SERVER_DEFAULT_ADDRESS_MODE." 669 #endif 670 671 #ifdef OPENTHREAD_CONFIG_CSL_MIN_RECEIVE_ON 672 #error "OPENTHREAD_CONFIG_CSL_MIN_RECEIVE_ON was replaced with "\ 673 "OPENTHREAD_CONFIG_MIN_RECEIVE_ON_AHEAD and OPENTHREAD_CONFIG_MIN_RECEIVE_ON_AFTER" 674 #endif 675 676 #endif // OPENTHREAD_CORE_CONFIG_CHECK_H_ 677