1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2019 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 #ifndef __HAL_IC_CFG_H__ 16 #define __HAL_IC_CFG_H__ 17 18 #define RTL8188E_SUPPORT 0 19 #define RTL8812A_SUPPORT 0 20 #define RTL8821A_SUPPORT 0 21 #define RTL8723B_SUPPORT 0 22 #define RTL8723D_SUPPORT 0 23 #define RTL8723F_SUPPORT 0 24 #define RTL8192E_SUPPORT 0 25 #define RTL8192F_SUPPORT 0 26 #define RTL8814A_SUPPORT 0 27 #define RTL8195A_SUPPORT 0 28 #define RTL8197F_SUPPORT 0 29 #define RTL8703B_SUPPORT 0 30 #define RTL8188F_SUPPORT 0 31 #define RTL8822B_SUPPORT 0 32 #define RTL8821B_SUPPORT 0 33 #define RTL8821C_SUPPORT 0 34 #define RTL8710B_SUPPORT 0 35 #define RTL8814B_SUPPORT 0 36 #define RTL8824B_SUPPORT 0 37 #define RTL8198F_SUPPORT 0 38 #define RTL8195B_SUPPORT 0 39 #define RTL8822C_SUPPORT 0 40 #define RTL8721D_SUPPORT 0 41 #define RTL8812F_SUPPORT 0 42 #define RTL8197G_SUPPORT 0 43 #define RTL8710C_SUPPORT 0 44 #define RTL8814C_SUPPORT 0 45 #define RTL8735B_SUPPORT 0 46 #define RTL8730A_SUPPORT 0 47 48 /*#if (RTL8188E_SUPPORT==1)*/ 49 #define RATE_ADAPTIVE_SUPPORT 0 50 #define POWER_TRAINING_ACTIVE 0 51 52 #ifdef CONFIG_MULTIDRV 53 #endif 54 55 #ifdef CONFIG_RTL8188E 56 #undef RTL8188E_SUPPORT 57 #undef RATE_ADAPTIVE_SUPPORT 58 #undef POWER_TRAINING_ACTIVE 59 60 #define RTL8188E_SUPPORT 1 61 #define RATE_ADAPTIVE_SUPPORT 1 62 #define POWER_TRAINING_ACTIVE 1 63 64 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 65 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 66 #endif 67 #endif 68 69 #ifdef CONFIG_RTL8812A 70 #undef RTL8812A_SUPPORT 71 #define RTL8812A_SUPPORT 1 72 #ifndef CONFIG_FW_C2H_PKT 73 #define CONFIG_FW_C2H_PKT 74 #endif 75 #ifdef CONFIG_BEAMFORMING 76 #define CONFIG_BEAMFORMER_FW_NDPA 77 #define BEAMFORMING_SUPPORT 1 /*for phydm beamforming*/ 78 #define SUPPORT_MU_BF 0 79 #endif /*CONFIG_BEAMFORMING*/ 80 #define CONFIG_RTS_FULL_BW 81 82 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 83 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 84 #endif 85 #endif 86 87 #ifdef CONFIG_RTL8821A 88 #undef RTL8821A_SUPPORT 89 #define RTL8821A_SUPPORT 1 90 #ifndef CONFIG_FW_C2H_PKT 91 #define CONFIG_FW_C2H_PKT 92 #endif 93 #ifdef CONFIG_BEAMFORMING 94 #define CONFIG_BEAMFORMER_FW_NDPA 95 #define BEAMFORMING_SUPPORT 1 /*for phydm beamforming*/ 96 #define SUPPORT_MU_BF 0 97 #endif 98 #define CONFIG_RTS_FULL_BW 99 100 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 101 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 102 #endif 103 #endif 104 105 #ifdef CONFIG_RTL8192E 106 #undef RTL8192E_SUPPORT 107 #define RTL8192E_SUPPORT 1 108 #ifndef CONFIG_FW_C2H_PKT 109 #define CONFIG_FW_C2H_PKT 110 #endif 111 #define CONFIG_RTS_FULL_BW 112 113 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 114 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 115 #endif 116 #endif 117 118 #ifdef CONFIG_RTL8192F 119 #undef RTL8192F_SUPPORT 120 #define RTL8192F_SUPPORT 1 121 #ifndef CONFIG_FW_C2H_PKT 122 #define CONFIG_FW_C2H_PKT 123 #endif 124 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 125 #define CONFIG_RTW_MAC_HIDDEN_RPT 126 #endif 127 /*#define CONFIG_AMPDU_PRETX_CD*/ 128 /*#define DBG_LA_MODE*/ 129 #ifdef CONFIG_P2P_PS 130 #define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP 131 #endif 132 #define CONFIG_RTS_FULL_BW 133 /* #define CONFIG_NARROWBAND_SUPPORTING */ 134 #ifdef CONFIG_NARROWBAND_SUPPORTING 135 #define CONFIG_NB_VALUE RTW_NB_CONFIG_NONE /*RTW_NB_CONFIG_WIDTH_10 or RTW_NB_CONFIG_WIDTH_5 */ 136 #endif 137 #ifdef CONFIG_WOWLAN 138 #define CONFIG_WOW_PATTERN_IN_TXFIFO 139 #endif 140 141 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 142 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 143 #endif 144 #define CONFIG_STOP_RESUME_BCN_BY_TXPAUSE /*to fixed no bcn issue*/ 145 #define CONFIG_TSF_SYNC 146 #endif 147 148 #ifdef CONFIG_RTL8723B 149 #undef RTL8723B_SUPPORT 150 #define RTL8723B_SUPPORT 1 151 #ifndef CONFIG_FW_C2H_PKT 152 #define CONFIG_FW_C2H_PKT 153 #endif 154 #define CONFIG_RTS_FULL_BW 155 156 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 157 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 158 #endif 159 #endif 160 161 #ifdef CONFIG_RTL8723D 162 #undef RTL8723D_SUPPORT 163 #define RTL8723D_SUPPORT 1 164 #ifndef CONFIG_FW_C2H_PKT 165 #define CONFIG_FW_C2H_PKT 166 #endif 167 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 168 #define CONFIG_RTW_MAC_HIDDEN_RPT 169 #endif 170 #ifndef CONFIG_RTW_CUSTOMER_STR 171 #define CONFIG_RTW_CUSTOMER_STR 172 #endif 173 #define CONFIG_RTS_FULL_BW 174 175 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 176 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 177 #endif 178 #endif 179 180 #ifdef CONFIG_RTL8814A 181 #undef RTL8814A_SUPPORT 182 #define RTL8814A_SUPPORT 1 183 #ifndef CONFIG_FW_C2H_PKT 184 #define CONFIG_FW_C2H_PKT 185 #endif 186 #define CONFIG_FW_CORRECT_BCN 187 #ifdef CONFIG_BEAMFORMING 188 #define BEAMFORMING_SUPPORT 1 /*for phydm beamforming*/ 189 #define SUPPORT_MU_BF 0 190 #endif 191 #define CONFIG_RTS_FULL_BW 192 193 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 194 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 195 #endif 196 #endif 197 198 #ifdef CONFIG_RTL8703B 199 #undef RTL8703B_SUPPORT 200 #define RTL8703B_SUPPORT 1 201 #ifndef CONFIG_FW_C2H_PKT 202 #define CONFIG_FW_C2H_PKT 203 #endif 204 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 205 #define CONFIG_RTW_MAC_HIDDEN_RPT 206 #endif 207 #define CONFIG_RTS_FULL_BW 208 209 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 210 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 211 #endif 212 #endif 213 214 #ifdef CONFIG_RTL8188F 215 #undef RTL8188F_SUPPORT 216 #define RTL8188F_SUPPORT 1 217 #ifndef CONFIG_FW_C2H_PKT 218 #define CONFIG_FW_C2H_PKT 219 #endif 220 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 221 #define CONFIG_RTW_MAC_HIDDEN_RPT 222 #endif 223 #ifndef CONFIG_RTW_CUSTOMER_STR 224 #define CONFIG_RTW_CUSTOMER_STR 225 #endif 226 #define CONFIG_RTS_FULL_BW 227 228 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 229 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 230 #endif 231 #endif 232 233 #ifdef CONFIG_RTL8188GTV 234 #undef RTL8188F_SUPPORT 235 #define RTL8188F_SUPPORT 1 236 #ifndef CONFIG_FW_C2H_PKT 237 #define CONFIG_FW_C2H_PKT 238 #endif 239 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 240 #define CONFIG_RTW_MAC_HIDDEN_RPT 241 #endif 242 #ifndef CONFIG_RTW_CUSTOMER_STR 243 #define CONFIG_RTW_CUSTOMER_STR 244 #endif 245 #define CONFIG_RTS_FULL_BW 246 247 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 248 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 249 #endif 250 251 #if defined(CONFIG_USB_HCI) && !defined(CONFIG_FW_OFFLOAD_SET_TXPWR_IDX) 252 #define CONFIG_FW_OFFLOAD_SET_TXPWR_IDX 253 #endif 254 #endif 255 256 #ifdef CONFIG_RTL8822B 257 #undef RTL8822B_SUPPORT 258 #define RTL8822B_SUPPORT 1 259 #ifndef CONFIG_FW_C2H_PKT 260 #define CONFIG_FW_C2H_PKT 261 #endif /* CONFIG_FW_C2H_PKT */ 262 #define RTW_TX_PA_BIAS /* Adjust TX PA Bias from eFuse */ 263 #define RTW_AMPDU_AGG_RETRY_AND_NEW 264 265 #ifdef CONFIG_WOWLAN 266 #define CONFIG_GTK_OL 267 /*#define CONFIG_ARP_KEEP_ALIVE*/ 268 269 #ifdef CONFIG_GPIO_WAKEUP 270 #ifndef WAKEUP_GPIO_IDX 271 #define WAKEUP_GPIO_IDX 6 /* WIFI Chip Side */ 272 #endif /* !WAKEUP_GPIO_IDX */ 273 #endif /* CONFIG_GPIO_WAKEUP */ 274 #endif /* CONFIG_WOWLAN */ 275 276 #ifdef CONFIG_CONCURRENT_MODE 277 #define CONFIG_AP_PORT_SWAP 278 #define CONFIG_FW_MULTI_PORT_SUPPORT 279 #endif /* CONFIG_CONCURRENT_MODE */ 280 281 /* 282 * Beamforming related definition 283 */ 284 /* Only support new beamforming mechanism */ 285 #ifdef CONFIG_BEAMFORMING 286 #define RTW_BEAMFORMING_VERSION_2 287 #endif /* CONFIG_BEAMFORMING */ 288 289 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 290 #define CONFIG_RTW_MAC_HIDDEN_RPT 291 #endif /* CONFIG_RTW_MAC_HIDDEN_RPT */ 292 293 #ifndef DBG_RX_DFRAME_RAW_DATA 294 #define DBG_RX_DFRAME_RAW_DATA 295 #endif /* DBG_RX_DFRAME_RAW_DATA */ 296 297 #ifndef RTW_IQK_FW_OFFLOAD 298 #define RTW_IQK_FW_OFFLOAD 299 #endif /* RTW_IQK_FW_OFFLOAD */ 300 301 /* Checksum offload feature */ 302 /*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/ 303 #if defined(CONFIG_TCP_CSUM_OFFLOAD_TX) && !defined(CONFIG_RTW_NETIF_SG) 304 #define CONFIG_RTW_NETIF_SG 305 #endif 306 #define CONFIG_TCP_CSUM_OFFLOAD_RX 307 308 #define CONFIG_ADVANCE_OTA 309 310 #ifdef CONFIG_MCC_MODE 311 #define CONFIG_MCC_MODE_V2 312 #define CONFIG_MCC_PHYDM_OFFLOAD 313 #endif /* CONFIG_MCC_MODE */ 314 315 #if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW) 316 #define CONFIG_TDLS_CH_SW_V2 317 #endif 318 319 #ifndef RTW_CHANNEL_SWITCH_OFFLOAD 320 #ifdef CONFIG_TDLS_CH_SW_V2 321 #define RTW_CHANNEL_SWITCH_OFFLOAD 322 #endif 323 #endif /* RTW_CHANNEL_SWITCH_OFFLOAD */ 324 325 #if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW) 326 /* Supported since fw v22.1 */ 327 #define RTW_PER_CMD_SUPPORT_FW 328 #endif /* RTW_PER_CMD_SUPPORT_FW */ 329 #define CONFIG_SUPPORT_FIFO_DUMP 330 #define CONFIG_HW_P0_TSF_SYNC 331 #define CONFIG_BCN_RECV_TIME 332 #ifdef CONFIG_P2P_PS 333 #define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP 334 #endif 335 #define CONFIG_RTS_FULL_BW 336 337 #ifdef CONFIG_LPS 338 #define CONFIG_LPS_ACK /* Supported after FW v30 & v27.9 */ 339 #endif 340 341 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 342 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 343 #endif 344 #endif /* CONFIG_RTL8822B */ 345 346 #ifdef CONFIG_RTL8822C 347 #undef RTL8822C_SUPPORT 348 #define RTL8822C_SUPPORT 1 349 /*#define DBG_LA_MODE*/ 350 #ifndef CONFIG_FW_C2H_PKT 351 #define CONFIG_FW_C2H_PKT 352 #endif /* CONFIG_FW_C2H_PKT */ 353 #define RTW_TX_PA_BIAS /* Adjust TX PA Bias from eFuse */ 354 355 #ifdef CONFIG_WOWLAN 356 #define CONFIG_GTK_OL 357 /*#define CONFIG_ARP_KEEP_ALIVE*/ 358 359 #ifdef CONFIG_GPIO_WAKEUP 360 #ifndef WAKEUP_GPIO_IDX 361 #define WAKEUP_GPIO_IDX 6 /* WIFI Chip Side */ 362 #endif /* !WAKEUP_GPIO_IDX */ 363 #endif /* CONFIG_GPIO_WAKEUP */ 364 #endif /* CONFIG_WOWLAN */ 365 366 #ifdef CONFIG_CONCURRENT_MODE 367 #define CONFIG_AP_PORT_SWAP 368 #define CONFIG_FW_MULTI_PORT_SUPPORT 369 #endif /* CONFIG_CONCURRENT_MODE */ 370 371 /* 372 * Beamforming related definition 373 */ 374 /* Only support new beamforming mechanism */ 375 #ifdef CONFIG_BEAMFORMING 376 #define RTW_BEAMFORMING_VERSION_2 377 #endif /* CONFIG_BEAMFORMING */ 378 379 #ifdef CONFIG_NO_FW 380 #ifdef CONFIG_RTW_MAC_HIDDEN_RPT 381 #undef CONFIG_RTW_MAC_HIDDEN_RPT 382 #endif 383 #else 384 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 385 #define CONFIG_RTW_MAC_HIDDEN_RPT 386 #endif 387 #endif 388 389 #ifndef DBG_RX_DFRAME_RAW_DATA 390 #define DBG_RX_DFRAME_RAW_DATA 391 #endif /* DBG_RX_DFRAME_RAW_DATA */ 392 393 #ifndef RTW_IQK_FW_OFFLOAD 394 /* #define RTW_IQK_FW_OFFLOAD */ 395 #endif /* RTW_IQK_FW_OFFLOAD */ 396 #define CONFIG_ADVANCE_OTA 397 398 #ifdef CONFIG_MCC_MODE 399 #define CONFIG_MCC_MODE_V2 400 #define CONFIG_MCC_PHYDM_OFFLOAD 401 #endif /* CONFIG_MCC_MODE */ 402 403 #if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW) 404 #define CONFIG_TDLS_CH_SW_V2 405 #endif 406 407 #ifndef RTW_CHANNEL_SWITCH_OFFLOAD 408 #ifdef CONFIG_TDLS_CH_SW_V2 409 #define RTW_CHANNEL_SWITCH_OFFLOAD 410 #endif 411 #endif /* RTW_CHANNEL_SWITCH_OFFLOAD */ 412 413 #if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW) 414 /* Supported since fw v22.1 */ 415 #define RTW_PER_CMD_SUPPORT_FW 416 #endif /* RTW_PER_CMD_SUPPORT_FW */ 417 #define CONFIG_SUPPORT_FIFO_DUMP 418 #define CONFIG_HW_P0_TSF_SYNC 419 #define CONFIG_BCN_RECV_TIME 420 421 /*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/ 422 #if defined(CONFIG_TCP_CSUM_OFFLOAD_TX) && !defined(CONFIG_RTW_NETIF_SG) 423 #define CONFIG_RTW_NETIF_SG 424 #endif 425 #define CONFIG_TCP_CSUM_OFFLOAD_RX 426 427 #ifdef CONFIG_P2P_PS 428 #define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP 429 #endif 430 #define CONFIG_RTS_FULL_BW 431 432 #ifdef CONFIG_LPS 433 #define CONFIG_LPS_ACK /* Supported after FW v07 */ 434 #define CONFIG_LPS_1T1R /* Supported after FW v07 */ 435 #endif 436 437 #define CONFIG_BT_EFUSE_MASK 438 439 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 440 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 441 #endif 442 #ifndef CONFIG_TXPWR_PG_WITH_TSSI_OFFSET 443 #define CONFIG_TXPWR_PG_WITH_TSSI_OFFSET 444 #endif 445 446 #define CONFIG_RTL8822C_XCAP_NEW_POLICY 447 448 /*#define CONFIG_NARROWBAND_SUPPORTING*/ 449 #ifdef CONFIG_NARROWBAND_SUPPORTING 450 #define CONFIG_NB_VALUE RTW_NB_CONFIG_WIDTH_10 /* RTW_NB_CONFIG_NONE / RTW_NB_CONFIG_WIDTH_10 / RTW_NB_CONFIG_WIDTH_5 */ 451 #endif 452 #define CONFIG_SUPPORT_DYNAMIC_TXPWR 453 #endif /* CONFIG_RTL8822C */ 454 455 #ifdef CONFIG_RTL8821C 456 #undef RTL8821C_SUPPORT 457 #define RTL8821C_SUPPORT 1 458 #ifndef CONFIG_FW_C2H_PKT 459 #define CONFIG_FW_C2H_PKT 460 #endif 461 #ifdef CONFIG_NO_FW 462 #ifdef CONFIG_RTW_MAC_HIDDEN_RPT 463 #undef CONFIG_RTW_MAC_HIDDEN_RPT 464 #endif 465 #else 466 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 467 #define CONFIG_RTW_MAC_HIDDEN_RPT 468 #endif 469 #endif 470 #define LOAD_FW_HEADER_FROM_DRIVER 471 #define CONFIG_PHY_CAPABILITY_QUERY 472 #ifdef CONFIG_CONCURRENT_MODE 473 #define CONFIG_AP_PORT_SWAP 474 #define CONFIG_FW_MULTI_PORT_SUPPORT 475 #endif 476 #define CONFIG_SUPPORT_FIFO_DUMP 477 #ifndef RTW_IQK_FW_OFFLOAD 478 #define RTW_IQK_FW_OFFLOAD 479 #endif /* RTW_IQK_FW_OFFLOAD */ 480 /*#define CONFIG_AMPDU_PRETX_CD*/ 481 /*#define DBG_PRE_TX_HANG*/ 482 483 /* Beamforming related definition */ 484 /* Only support new beamforming mechanism */ 485 #ifdef CONFIG_BEAMFORMING 486 #define RTW_BEAMFORMING_VERSION_2 487 #endif /* CONFIG_BEAMFORMING */ 488 #define CONFIG_HW_P0_TSF_SYNC 489 #define CONFIG_BCN_RECV_TIME 490 #ifdef CONFIG_P2P_PS 491 #define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP 492 #endif 493 #define CONFIG_RTS_FULL_BW 494 495 #ifdef CONFIG_LPS 496 /* #define CONFIG_LPS_ACK */ /* Supported after FW v25 */ 497 #endif 498 499 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 500 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 501 #endif 502 503 #define CONFIG_BT_EFUSE_MASK 504 #endif /*CONFIG_RTL8821C*/ 505 506 #ifdef CONFIG_RTL8710B 507 #undef RTL8710B_SUPPORT 508 #define RTL8710B_SUPPORT 1 509 #ifndef CONFIG_FW_C2H_PKT 510 #define CONFIG_FW_C2H_PKT 511 #endif 512 #define CONFIG_RTS_FULL_BW 513 514 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 515 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 516 #endif 517 #endif 518 519 #ifdef CONFIG_RTL8814B 520 #undef RTL8814B_SUPPORT 521 #define RTL8814B_SUPPORT 1 522 #ifdef CONFIG_RTL8814C 523 #undef RTL8814C_SUPPORT 524 #define RTL8814C_SUPPORT 1 525 #endif 526 #ifndef CONFIG_FW_C2H_PKT 527 #define CONFIG_FW_C2H_PKT 528 #endif /* CONFIG_FW_C2H_PKT */ 529 #define RTW_TX_PA_BIAS /* Adjust TX PA Bias from eFuse */ 530 #define RTW_AMPDU_AGG_RETRY_AND_NEW 531 532 #ifdef CONFIG_WOWLAN 533 #define CONFIG_GTK_OL 534 /*#define CONFIG_ARP_KEEP_ALIVE*/ 535 536 #ifdef CONFIG_GPIO_WAKEUP 537 #ifndef WAKEUP_GPIO_IDX 538 #define WAKEUP_GPIO_IDX 6 /* WIFI Chip Side */ 539 #endif /* !WAKEUP_GPIO_IDX */ 540 #endif /* CONFIG_GPIO_WAKEUP */ 541 #endif /* CONFIG_WOWLAN */ 542 543 #ifdef CONFIG_CONCURRENT_MODE 544 /*#define CONFIG_AP_PORT_SWAP*/ 545 #define CONFIG_FW_MULTI_PORT_SUPPORT 546 #endif /* CONFIG_CONCURRENT_MODE */ 547 548 /* 549 * Beamforming related definition 550 */ 551 /* Only support new beamforming mechanism */ 552 #ifdef CONFIG_BEAMFORMING 553 #define RTW_BEAMFORMING_VERSION_2 554 #endif /* CONFIG_BEAMFORMING */ 555 556 #ifndef DBG_RX_DFRAME_RAW_DATA 557 #define DBG_RX_DFRAME_RAW_DATA 558 #endif /* DBG_RX_DFRAME_RAW_DATA */ 559 560 #ifndef RTW_IQK_FW_OFFLOAD 561 #define RTW_IQK_FW_OFFLOAD 562 #endif /* RTW_IQK_FW_OFFLOAD */ 563 564 /* Checksum offload feature */ 565 /*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/ /* not ready */ 566 #define CONFIG_TCP_CSUM_OFFLOAD_RX 567 568 #define CONFIG_ADVANCE_OTA 569 570 #ifdef CONFIG_MCC_MODE 571 #define CONFIG_MCC_MODE_V2 572 #define CONFIG_MCC_PHYDM_OFFLOAD 573 #endif /* CONFIG_MCC_MODE */ 574 575 #if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW) 576 #define CONFIG_TDLS_CH_SW_V2 577 #endif 578 579 #ifndef RTW_CHANNEL_SWITCH_OFFLOAD 580 #ifdef CONFIG_TDLS_CH_SW_V2 581 #define RTW_CHANNEL_SWITCH_OFFLOAD 582 #endif 583 #endif /* RTW_CHANNEL_SWITCH_OFFLOAD */ 584 585 #if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW) 586 /* Supported since fw v22.1 */ 587 #define RTW_PER_CMD_SUPPORT_FW 588 #endif /* RTW_PER_CMD_SUPPORT_FW */ 589 #define CONFIG_SUPPORT_FIFO_DUMP 590 #define CONFIG_HW_P0_TSF_SYNC 591 #define CONFIG_BCN_RECV_TIME 592 #ifdef CONFIG_P2P_PS 593 #define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP 594 #endif 595 #define CONFIG_RTS_FULL_BW 596 597 #define CONFIG_PROTSEL_PORT 598 #define CONFIG_PROTSEL_ATIMDTIM 599 #define CONFIG_PROTSEL_MACSLEEP 600 601 #define CONFIG_HAS_HW_VAR_BCN_CTRL_ADDR 602 #define CONFIG_HAS_HW_VAR_BCN_FUNC 603 #define CONFIG_HAS_HW_VAR_MLME_DISCONNECT 604 #define CONFIG_HAS_HW_VAR_MLME_JOIN 605 #define CONFIG_HAS_HW_VAR_CORRECT_TSF 606 #define CONFIG_HAS_TX_BEACON_PAUSE 607 608 #define CONFIG_RTW_TX_NPATH_EN /* 8814B is always 4TX */ 609 610 #ifdef CONFIG_LPS 611 #define CONFIG_LPS_ACK /* Supported after FW v04 */ 612 #endif 613 614 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 615 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 616 #endif 617 #ifndef CONFIG_TXPWR_PG_WITH_TSSI_OFFSET 618 #define CONFIG_TXPWR_PG_WITH_TSSI_OFFSET 619 #endif 620 #endif /* CONFIG_RTL8814B */ 621 #ifdef CONFIG_RTL8723F 622 #undef RTL8723F_SUPPORT 623 #define RTL8723F_SUPPORT 1 624 625 /* Use HALMAC architecture, necessary for 8723F */ 626 #define RTW_HALMAC 627 628 /*#define DBG_LA_MODE*/ 629 630 #ifndef CONFIG_FW_C2H_PKT 631 #define CONFIG_FW_C2H_PKT 632 #endif /* CONFIG_FW_C2H_PKT */ 633 634 #define RTW_TX_PA_BIAS /* Adjust TX PA Bias from eFuse */ 635 636 #ifdef CONFIG_WOWLAN 637 #define CONFIG_WOW_PATTERN_IN_TXFIFO 638 #endif 639 640 #ifdef CONFIG_WOWLAN 641 #define CONFIG_GTK_OL 642 /*#define CONFIG_ARP_KEEP_ALIVE*/ 643 644 #ifdef CONFIG_GPIO_WAKEUP 645 #ifndef WAKEUP_GPIO_IDX 646 #define WAKEUP_GPIO_IDX 12 /* WIFI Chip Side */ 647 #endif /* !WAKEUP_GPIO_IDX */ 648 #endif /* CONFIG_GPIO_WAKEUP */ 649 #endif /* CONFIG_WOWLAN */ 650 651 #ifdef CONFIG_CONCURRENT_MODE 652 #define CONFIG_AP_PORT_SWAP 653 #define CONFIG_FW_MULTI_PORT_SUPPORT 654 #endif /* CONFIG_CONCURRENT_MODE */ 655 656 #ifdef CONFIG_NO_FW 657 #ifdef CONFIG_RTW_MAC_HIDDEN_RPT 658 #undef CONFIG_RTW_MAC_HIDDEN_RPT 659 #endif 660 #else 661 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT 662 #define CONFIG_RTW_MAC_HIDDEN_RPT 663 #endif 664 #endif 665 666 #ifndef DBG_RX_DFRAME_RAW_DATA 667 #define DBG_RX_DFRAME_RAW_DATA 668 #endif /* DBG_RX_DFRAME_RAW_DATA */ 669 670 /*#define RTW_IQK_FW_OFFLOAD*/ 671 #define CONFIG_ADVANCE_OTA 672 673 #ifdef CONFIG_MCC_MODE 674 #define CONFIG_MCC_MODE_V2 675 #define CONFIG_MCC_PHYDM_OFFLOAD 676 #endif /* CONFIG_MCC_MODE */ 677 678 #if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW) 679 #define CONFIG_TDLS_CH_SW_V2 680 #endif 681 682 #ifndef RTW_CHANNEL_SWITCH_OFFLOAD 683 #ifdef CONFIG_TDLS_CH_SW_V2 684 #define RTW_CHANNEL_SWITCH_OFFLOAD 685 #endif 686 #endif /* RTW_CHANNEL_SWITCH_OFFLOAD */ 687 688 #if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW) 689 /* Supported since fw v22.1 */ 690 #define RTW_PER_CMD_SUPPORT_FW 691 #endif /* RTW_PER_CMD_SUPPORT_FW */ 692 #define CONFIG_SUPPORT_FIFO_DUMP 693 #define CONFIG_HW_P0_TSF_SYNC 694 #define CONFIG_BCN_RECV_TIME 695 696 /*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/ 697 #if defined(CONFIG_TCP_CSUM_OFFLOAD_TX) && !defined(CONFIG_RTW_NETIF_SG) 698 #define CONFIG_RTW_NETIF_SG 699 #endif 700 #define CONFIG_TCP_CSUM_OFFLOAD_RX 701 702 #ifdef CONFIG_P2P_PS 703 #define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP 704 #endif 705 706 #define CONFIG_RTS_FULL_BW 707 708 #ifdef CONFIG_LPS 709 #define CONFIG_LPS_ACK 710 #endif 711 712 #ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX 713 #define CONFIG_TXPWR_PG_WITH_PWR_IDX 714 #endif 715 #ifndef CONFIG_TXPWR_PG_WITH_TSSI_OFFSET 716 #define CONFIG_TXPWR_PG_WITH_TSSI_OFFSET 717 #endif 718 719 #define CONFIG_BT_EFUSE_MASK 720 721 #define CONFIG_WRITE_BCN_LEN_TO_FW 722 #endif /* CONFIG_RTL8723F */ 723 #endif /*__HAL_IC_CFG_H__*/ 724