1 /* 2 * Copyright 2023-2024 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __NXP_WIFI_H__ 9 #define __NXP_WIFI_H__ 10 11 #include <stdint.h> 12 #include <stdbool.h> 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 #define LWIPERF_REVERSE_MODE 1 19 #define CONFIG_11N 1 20 #define STA_SUPPORT 1 21 #define UAP_SUPPORT 1 22 #define WPA 1 23 #define KEY_MATERIAL_WEP 1 24 #define KEY_PARAM_SET_V2 1 25 #define ENABLE_802_11W 1 26 #define ENABLE_GCMP_SUPPORT 1 27 #define CONFIG_STA_AMPDU_RX 1 28 #define CONFIG_STA_AMPDU_TX 1 29 #define CONFIG_ENABLE_AMSDU_RX 1 30 #define CONFIG_UAP_AMPDU_TX 1 31 #define CONFIG_UAP_AMPDU_RX 1 32 #define CONFIG_WIFIDRIVER_PS_LOCK 1 33 #define CONFIG_WNM_PS 0 34 #define CONFIG_SCAN_CHANNEL_GAP 1 35 #define CONFIG_COMBO_SCAN 1 36 #define CONFIG_BG_SCAN 1 37 #define CONFIG_HOST_MLME 1 38 #define UAP_HOST_MLME 1 39 #define CONFIG_STA_AUTO_DHCPV4 1 40 41 #if CONFIG_NXP_WIFI_SHELL 42 #define CONFIG_WIFI_SHELL 1 43 #endif 44 45 #if CONFIG_NXP_WIFI_MAX_AP_ENTRIES 46 #define CONFIG_MAX_AP_ENTRIES CONFIG_NXP_WIFI_MAX_AP_ENTRIES 47 #endif 48 49 #if CONFIG_NXP_WIFI_WLAN_KNOWN_NETWORKS 50 #define CONFIG_WLAN_KNOWN_NETWORKS CONFIG_NXP_WIFI_WLAN_KNOWN_NETWORKS 51 #endif 52 53 #if CONFIG_NXP_WIFI_SDIO_MULTI_PORT_RX_AGGR 54 #define CONFIG_SDIO_MULTI_PORT_RX_AGGR CONFIG_NXP_WIFI_SDIO_MULTI_PORT_RX_AGGR 55 #endif 56 57 #if CONFIG_NXP_WIFI_SDIO_MULTI_PORT_TX_AGGR 58 #define CONFIG_SDIO_MULTI_PORT_TX_AGGR CONFIG_NXP_WIFI_SDIO_MULTI_PORT_TX_AGGR 59 #endif 60 61 #if CONFIG_NXP_WIFI_AUTO_POWER_SAVE 62 #define CONFIG_WIFI_AUTO_POWER_SAVE 1 63 #endif 64 65 #if CONFIG_NXP_WIFI_TX_RX_ZERO_COPY 66 #define CONFIG_TX_RX_ZERO_COPY 1 67 #endif 68 69 #if CONFIG_NXP_WIFI_RF_TEST_MODE 70 #define CONFIG_WIFI_RF_TEST_MODE 1 71 #endif 72 73 #if CONFIG_NXP_WIFI_SOFTAP_SUPPORT 74 #define CONFIG_WIFI_SOFTAP_SUPPORT 1 75 #endif 76 77 #if CONFIG_NXP_WIFI_OFFLOAD 78 #define CONFIG_OFFLOAD CONFIG_NXP_WIFI_OFFLOAD 79 #endif 80 81 #if CONFIG_NXP_WIFI_STA_RECONNECT 82 #define CONFIG_WIFI_STA_RECONNECT 1 83 #endif 84 85 #if CONFIG_NXP_WIFI_MON_THREAD_STACK_SIZE 86 #define CONFIG_MON_THREAD_STACK_SIZE CONFIG_NXP_WIFI_MON_THREAD_STACK_SIZE 87 #endif 88 89 #if CONFIG_NXP_WIFI_WLCMGR_STACK_SIZE 90 #define CONFIG_WLCMGR_STACK_SIZE CONFIG_NXP_WIFI_WLCMGR_STACK_SIZE 91 #endif 92 93 #if CONFIG_NXP_WIFI_WPS_STACK_SIZE 94 #define CONFIG_WPS_STACK_SIZE CONFIG_NXP_WIFI_WPS_STACK_SIZE 95 #endif 96 97 #if CONFIG_NXP_WIFI_POWERSAVE_STACK_SIZE 98 #define CONFIG_POWERSAVE_STACK_SIZE CONFIG_NXP_WIFI_POWERSAVE_STACK_SIZE 99 #endif 100 101 #if CONFIG_NXP_WIFI_TX_STACK_SIZE 102 #define CONFIG_TX_STACK_SIZE CONFIG_NXP_WIFI_TX_STACK_SIZE 103 #endif 104 105 #if CONFIG_NXP_WIFI_DRIVER_STACK_SIZE 106 #define CONFIG_DRIVER_STACK_SIZE CONFIG_NXP_WIFI_DRIVER_STACK_SIZE 107 #endif 108 109 #if CONFIG_NXP_WIFI_DHCP_SERVER_STACK_SIZE 110 #define CONFIG_DHCP_SERVER_STACK_SIZE CONFIG_NXP_WIFI_DHCP_SERVER_STACK_SIZE 111 #endif 112 113 #if CONFIG_NXP_WIFI_11AX 114 #define CONFIG_11AX 1 115 #endif 116 117 #if CONFIG_NXP_WIFI_11AC 118 #define CONFIG_11AC 1 119 #endif 120 121 #if CONFIG_NXP_WIFI_ENABLE_HTTPSERVER 122 #define CONFIG_ENABLE_HTTPSERVER CONFIG_NXP_WIFI_ENABLE_HTTPSERVER 123 #endif 124 125 #if CONFIG_NXP_WIFI_TX_RX_ZERO_COPY 126 #define CONFIG_TX_RX_ZERO_COPY 1 127 #endif 128 129 #if CONFIG_NXP_WIFI_CAPA 130 #define CONFIG_WIFI_CAPA 1 131 #endif 132 133 #if CONFIG_NXP_WIFI_WMM_UAPSD 134 #define CONFIG_WMM_UAPSD 1 135 #endif 136 137 #if CONFIG_NXP_WIFI_GET_LOG 138 #define CONFIG_WIFI_GET_LOG 1 139 #endif 140 141 #if CONFIG_NXP_WIFI_TX_PER_TRACK 142 #define CONFIG_WIFI_TX_PER_TRACK 1 143 #endif 144 145 #if CONFIG_NXP_WIFI_CSI 146 #define CONFIG_CSI 1 147 #endif 148 149 #if CONFIG_NXP_WIFI_RESET 150 #define CONFIG_WIFI_RESET 1 151 #endif 152 153 #if CONFIG_NXP_WIFI_NET_MONITOR 154 #define CONFIG_NET_MONITOR 1 155 #endif 156 157 #if CONFIG_NXP_WIFI_ECSA 158 #define CONFIG_ECSA 1 159 #endif 160 161 #if CONFIG_NXP_TX_AMPDU_PROT_MODE 162 #define CONFIG_TX_AMPDU_PROT_MODE 1 163 #endif 164 165 #if CONFIG_NXP_WIFI_UNII4_BAND_SUPPORT 166 #define CONFIG_UNII4_BAND_SUPPORT 1 167 #endif 168 169 #if CONFIG_NXP_WIFI_RECOVERY 170 #define CONFIG_WIFI_RECOVERY 1 171 #endif 172 173 #if CONFIG_NXP_WIFI_TSP 174 #define CONFIG_TSP 1 175 #endif 176 177 #if CONFIG_NXP_WIFI_11AX_TWT 178 #define CONFIG_11AX_TWT 1 179 #endif 180 181 #if CONFIG_NXP_WIFI_COMPRESS_TX_PWTBL 182 #define CONFIG_COMPRESS_TX_PWTBL 1 183 #endif 184 185 #if CONFIG_NXP_WIFI_COMPRESS_RU_TX_PWTBL 186 #define CONFIG_COMPRESS_RU_TX_PWTBL 1 187 #endif 188 189 #if CONFIG_NXP_WIFI_MAX_PRIO 190 #define CONFIG_WIFI_MAX_PRIO CONFIG_NXP_WIFI_MAX_PRIO 191 #endif 192 193 #if CONFIG_NXP_WIFI_IPS 194 #define CONFIG_IPS 1 195 #endif 196 197 #if CONFIG_NXP_WIFI_EXT_SCAN_SUPPORT 198 #define CONFIG_EXT_SCAN_SUPPORT 1 199 #endif 200 201 #if CONFIG_NXP_WIFI_SCAN_WITH_RSSIFILTER 202 #define CONFIG_SCAN_WITH_RSSIFILTER 1 203 #endif 204 205 #if CONFIG_NXP_WIFI_DTIM_PERIOD 206 #define CONFIG_WIFI_DTIM_PERIOD 1 207 #endif 208 209 #if CONFIG_NXP_WIFI_RX_ABORT_CFG 210 #define CONFIG_RX_ABORT_CFG 1 211 #endif 212 213 #if CONFIG_NXP_WIFI_RX_ABORT_CFG_EXT 214 #define CONFIG_RX_ABORT_CFG_EXT 1 215 #endif 216 217 #if CONFIG_NXP_WIFI_CCK_DESENSE_CFG 218 #define CONFIG_CCK_DESENSE_CFG 1 219 #endif 220 221 #if CONFIG_NXP_WIFI_MEM_ACCESS 222 #define CONFIG_WIFI_MEM_ACCESS 1 223 #endif 224 225 #if CONFIG_NXP_WIFI_REG_ACCESS 226 #define CONFIG_WIFI_REG_ACCESS 1 227 #endif 228 229 #if CONFIG_NXP_WIFI_SUBSCRIBE_EVENT_SUPPORT 230 #define CONFIG_SUBSCRIBE_EVENT_SUPPORT 1 231 #endif 232 233 #if CONFIG_NXP_WIFI_TX_RX_HISTOGRAM 234 #define CONFIG_TX_RX_HISTOGRAM 1 235 #endif 236 237 #if CONFIG_NXP_WIFI_COEX_DUTY_CYCLE 238 #define CONFIG_COEX_DUTY_CYCLE 1 239 #endif 240 241 #if CONFIG_NXP_WIFI_MMSF 242 #define CONFIG_MMSF 1 243 #endif 244 245 #if CONFIG_NXP_WIFI_USB_FILE_ACCESS 246 #define CONFIG_USB_FILE_ACCESS 1 247 #endif 248 249 #if CONFIG_NXP_WIFI_SCAN_CHANNEL_GAP_TIME 250 #define CONFIG_SCAN_CHANNEL_GAP_TIME CONFIG_NXP_WIFI_SCAN_CHANNEL_GAP_TIME 251 #endif 252 253 #if CONFIG_NXP_WIFI_INACTIVITY_TIMEOUT_EXT 254 #define CONFIG_INACTIVITY_TIMEOUT_EXT 1 255 #endif 256 257 #if CONFIG_NXP_WIFI_RF_TEST_MODE 258 #define CONFIG_RF_TEST_MODE 1 259 #endif 260 261 #if CONFIG_NXP_WIFI_IMD3_CFG 262 #define CONFIG_IMD3_CFG 1 263 #endif 264 265 #if CONFIG_NXP_WIFI_ANT_DETECT 266 #define CONFIG_ANT_DETECT 1 267 #endif 268 269 #if CONFIG_NXP_WIFI_WLAN_CALDATA_1ANT 270 #define CONFIG_WLAN_CALDATA_1ANT 1 271 #endif 272 273 #if CONFIG_NXP_WIFI_WLAN_CALDATA_1ANT_WITH_DIVERSITY 274 #define CONFIG_WLAN_CALDATA_1ANT_WITH_DIVERSITY 1 275 #endif 276 277 #if CONFIG_NXP_WIFI_WLAN_CALDATA_3ANT_DIVERSITY 278 #define CONFIG_WLAN_CALDATA_3ANT_DIVERSITY 1 279 #endif 280 281 #if CONFIG_NXP_WIFI_EU_VALIDATION 282 #define CONFIG_EU_VALIDATION 1 283 #endif 284 285 #if CONFIG_NXP_WIFI_WMM 286 #define CONFIG_WMM 1 287 #endif 288 289 #if CONFIG_NXP_WIFI_IPV6 290 #define CONFIG_IPV6 1 291 #endif 292 293 #if CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT 294 #define CONFIG_MAX_IPV6_ADDRESSES CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT 295 #endif 296 297 #if CONFIG_NXP_WIFI_5GHz_SUPPORT 298 #define CONFIG_5GHz_SUPPORT 1 299 #endif 300 301 #if CONFIG_NXP_WIFI_HOST_SLEEP 302 #define CONFIG_HOST_SLEEP 1 303 #endif 304 305 #if CONFIG_PM 306 #define CONFIG_POWER_MANAGER 1 307 #endif 308 309 #if CONFIG_NXP_WIFI_ROAMING 310 #define CONFIG_ROAMING 1 311 #endif 312 313 #if CONFIG_NXP_WIFI_CLOUD_KEEP_ALIVE 314 #define CONFIG_CLOUD_KEEP_ALIVE 1 315 #endif 316 317 #if CONFIG_NXP_WIFI_MEF_CFG 318 #define CONFIG_MEF_CFG 1 319 #endif 320 321 #if CONFIG_NXP_WIFI_TURBO_MODE 322 #define CONFIG_TURBO_MODE 1 323 #endif 324 325 #if CONFIG_NXP_WIFI_EU_CRYPTO 326 #define CONFIG_EU_CRYPTO 1 327 #endif 328 329 #if CONFIG_NXP_WIFI_FIPS 330 #define CONFIG_FIPS 1 331 #endif 332 333 #if !defined CONFIG_DRIVER_OWE 334 #define CONFIG_DRIVER_OWE 0 335 #endif 336 337 #if CONFIG_DRIVER_OWE 338 #undef CONFIG_DRIVER_OWE 339 #define CONFIG_DRIVER_OWE CONFIG_WPA_SUPP 340 #endif 341 342 #if CONFIG_DRIVER_OWE 343 #define CONFIG_OWE 344 #endif 345 346 #if !CONFIG_DRIVER_OWE 347 #undef CONFIG_OWE 348 #endif 349 350 #if CONFIG_NXP_WIFI_11K 351 #define CONFIG_11K 1 352 #endif 353 354 #if CONFIG_NXP_WIFI_11V 355 #define CONFIG_11V 1 356 #endif 357 358 #if CONFIG_NXP_WIFI_11R 359 #define CONFIG_11R 1 360 #endif 361 362 #if CONFIG_NXP_WIFI_EU_CRYPTO 363 #define CONFIG_WIFI_EU_CRYPTO 1 364 #endif 365 366 #if CONFIG_NXP_WIFI_CLOCKSYNC 367 #define CONFIG_WIFI_CLOCKSYNC 1 368 #endif 369 370 #if CONFIG_NXP_WIFI_RTS_THRESHOLD 371 #define CONFIG_WIFI_RTS_THRESHOLD 1 372 #endif 373 374 #if CONFIG_NXP_WIFI_UAP_WORKAROUND_STICKY_TIM 375 #define CONFIG_UAP_WORKAROUND_STICKY_TIM CONFIG_NXP_WIFI_UAP_WORKAROUND_STICKY_TIM 376 #endif 377 378 #if CONFIG_NXP_WIFI_AUTO_NULL_TX 379 #define CONFIG_AUTO_NULL_TX 1 380 #endif 381 382 #if CONFIG_NXP_WIFI_ENABLE_ERROR_LOGS 383 #define CONFIG_ENABLE_ERROR_LOGS 1 384 #endif 385 386 #if CONFIG_NXP_WIFI_ENABLE_WARNING_LOGS 387 #define CONFIG_ENABLE_WARNING_LOGS 1 388 #endif 389 390 #if CONFIG_NXP_WIFI_DEBUG_BUILD 391 #define CONFIG_DEBUG_BUILD 1 392 #endif 393 394 #if CONFIG_NXP_WIFI_OS_DEBUG 395 #define CONFIG_OS_DEBUG 1 396 #endif 397 398 #if CONFIG_NXP_WIFI_NET_DEBUG 399 #define CONFIG_NET_DEBUG 1 400 #endif 401 402 #if CONFIG_NXP_WIFI_WLCMGR_DEBUG 403 #define CONFIG_WLCMGR_DEBUG 1 404 #endif 405 406 #if CONFIG_NXP_WIFI_EXTRA_DEBUG 407 #define CONFIG_WIFI_EXTRA_DEBUG 1 408 #endif 409 410 #if CONFIG_NXP_WIFI_UAP_DEBUG 411 #define CONFIG_WIFI_UAP_DEBUG 1 412 #endif 413 414 #if CONFIG_NXP_WIFI_EVENTS_DEBUG 415 #define CONFIG_WIFI_EVENTS_DEBUG 1 416 #endif 417 418 #if CONFIG_NXP_WIFI_CMD_RESP_DEBUG 419 #define CONFIG_WIFI_CMD_RESP_DEBUG 1 420 #endif 421 422 #if CONFIG_NXP_WIFI_PS_DEBUG 423 #define CONFIG_WIFI_PS_DEBUG 1 424 #endif 425 426 #if CONFIG_NXP_WIFI_SCAN_DEBUG 427 #define CONFIG_WIFI_SCAN_DEBUG 1 428 #endif 429 430 #if CONFIG_NXP_WIFI_PKT_DEBUG 431 #define CONFIG_WIFI_PKT_DEBUG 1 432 #endif 433 434 #if CONFIG_NXP_WIFI_IO_INFO_DUMP 435 #define CONFIG_WIFI_IO_INFO_DUMP 1 436 #endif 437 438 #if CONFIG_NXP_WIFI_IO_DEBUG 439 #define CONFIG_WIFI_IO_DEBUG 1 440 #endif 441 442 #if CONFIG_NXP_WIFI_IO_DUMP 443 #define CONFIG_WIFI_IO_DUMP 1 444 #endif 445 446 #if CONFIG_NXP_WIFI_MEM_DEBUG 447 #define CONFIG_WIFI_MEM_DEBUG 1 448 #endif 449 450 #if CONFIG_NXP_WIFI_AMPDU_DEBUG 451 #define CONFIG_WIFI_AMPDU_DEBUG 1 452 #endif 453 454 #if CONFIG_NXP_WIFI_TIMER_DEBUG 455 #define CONFIG_WIFI_TIMER_DEBUG 1 456 #endif 457 458 #if CONFIG_NXP_WIFI_SDIO_DEBUG 459 #define CONFIG_WIFI_SDIO_DEBUG 1 460 #endif 461 462 #if CONFIG_NXP_WIFI_SDIO_IO_DEBUG 463 #define CONFIG_SDIO_IO_DEBUG 1 464 #endif 465 466 #if CONFIG_NXP_WIFI_FWDNLD_IO_DEBUG 467 #define CONFIG_FWDNLD_IO_DEBUG 1 468 #endif 469 470 #if CONFIG_NXP_WIFI_FW_DEBUG 471 #define CONFIG_WIFI_FW_DEBUG 1 472 #endif 473 474 #if CONFIG_NXP_WIFI_FW_VDLL_DEBUG 475 #define CONFIG_FW_VDLL_DEBUG 1 476 #endif 477 478 #if CONFIG_NXP_WIFI_DHCP_SERVER_DEBUG 479 #define CONFIG_DHCP_SERVER_DEBUG 1 480 #endif 481 482 #if CONFIG_NXP_WIFI_SMOKE_TESTS 483 #define CONFIG_WIFI_SMOKE_TESTS 1 484 #endif 485 486 #if CONFIG_NXP_WIFI_SM_IP_DHCP 487 #define IP_USE_DHCP 1 488 #endif 489 490 #if CONFIG_NXP_WIFI_SIGMA_AGENT 491 #define CONFIG_SIGMA_AGENT 1 492 #endif 493 494 #if CONFIG_NXP_WIFI_CUSTOM_CALDATA 495 #define CONFIG_CUSTOM_CALDATA 1 496 #endif 497 498 #if CONFIG_WIFI_NM_WPA_SUPPLICANT 499 #define CONFIG_WPA_SUPP 1 500 #endif 501 502 #if CONFIG_NXP_WIFI_SET_SU 503 #define CONFIG_SET_SU 1 504 #endif 505 506 #if CONFIG_NXP_WIFI_MULTI_BSSID_SUPPORT 507 #define CONFIG_MULTI_BSSID_SUPPORT 1 508 #endif 509 510 #if CONFIG_NXP_WIFI_FRAG_THRESHOLD 511 #define CONFIG_WIFI_FRAG_THRESHOLD 1 512 #endif 513 514 #if CONFIG_NXP_WIFI_FORCE_RTS 515 #define CONFIG_WIFI_FORCE_RTS 1 516 #endif 517 518 #if CONFIG_NXP_WIFI_TX_AMPDU_PROT_MODE 519 #define CONFIG_TX_AMPDU_PROT_MODE 1 520 #endif 521 522 #if CONFIG_NXP_WIFI_EXTERNAL_COEX_PTA 523 #define CONFIG_EXTERNAL_COEX_PTA 1 524 #endif 525 526 #if CONFIG_NXP_WIFI_FW_VDLLV2 527 #define CONFIG_FW_VDLLV2 1 528 #endif 529 530 #if CONFIG_WIFI_NM_HOSTAPD_AP 531 #define CONFIG_WPA_SUPP_AP 1 532 #endif 533 #if (CONFIG_NXP_WIFI_8978) || (CONFIG_NXP_WIFI_8987) || (CONFIG_NXP_WIFI_9177) 534 535 #define CONFIG_GTK_REKEY_OFFLOAD 1 536 537 #define CONFIG_FW_VDLL 1 538 539 #endif 540 541 #if (CONFIG_NXP_WIFI_9177) 542 #define CONFIG_TCP_ACK_ENH 1 543 #endif 544 545 #if CONFIG_11AX 546 547 #if !CONFIG_11K 548 #define CONFIG_11K 1 549 #endif 550 551 #if !CONFIG_11V 552 #define CONFIG_11V 1 553 #endif 554 555 #if !CONFIG_WPA_SUPP 556 #define CONFIG_DRIVER_MBO 1 557 #endif 558 559 #endif 560 561 #ifdef __cplusplus 562 } 563 #endif 564 565 #endif /* __NXP_WIFI_H__ */ 566