Path: blob/master/ALFA-W1F1/RTL8814AU/include/drv_conf.h
1307 views
/******************************************************************************1*2* Copyright(c) 2007 - 2017 Realtek Corporation.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2 of the GNU General Public License as6* published by the Free Software Foundation.7*8* This program is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13*****************************************************************************/14#ifndef __DRV_CONF_H__15#define __DRV_CONF_H__16#include "autoconf.h"17#include "hal_ic_cfg.h"1819#define CONFIG_RSSI_PRIORITY20#ifdef CONFIG_RTW_REPEATER_SON21#ifndef CONFIG_AP22#define CONFIG_AP23#endif24#ifndef CONFIG_CONCURRENT_MODE25#define CONFIG_CONCURRENT_MODE26#endif27#ifndef CONFIG_BR_EXT28#define CONFIG_BR_EXT29#endif30#ifndef CONFIG_RTW_REPEATER_SON_ID31#define CONFIG_RTW_REPEATER_SON_ID 0x0204060832#endif33//#define CONFIG_RTW_REPEATER_SON_ROOT34#ifndef CONFIG_RTW_REPEATER_SON_ROOT35#define CONFIG_LAYER2_ROAMING_ACTIVE36#endif37#undef CONFIG_POWER_SAVING38#endif3940#if defined(CONFIG_MCC_MODE) && (!defined(CONFIG_CONCURRENT_MODE))4142#error "Enable CONCURRENT_MODE before enable MCC MODE\n"4344#endif4546#if defined(CONFIG_MCC_MODE) && defined(CONFIG_BT_COEXIST)4748#error "Disable BT COEXIST before enable MCC MODE\n"4950#endif5152#if defined(CONFIG_MCC_MODE) && defined(CONFIG_TDLS)5354#error "Disable TDLS before enable MCC MODE\n"5556#endif5758#if defined(CONFIG_RTW_80211R) && !defined(CONFIG_LAYER2_ROAMING)5960#error "Enable CONFIG_LAYER2_ROAMING before enable CONFIG_RTW_80211R\n"6162#endif6364/* Older Android kernel doesn't has CONFIG_ANDROID defined,65* add this to force CONFIG_ANDROID defined */66#ifdef CONFIG_PLATFORM_ANDROID67#ifndef CONFIG_ANDROID68#define CONFIG_ANDROID69#endif70#endif7172#ifdef CONFIG_ANDROID73/* Some Android build will restart the UI while non-printable ascii is passed74* between java and c/c++ layer (JNI). We force CONFIG_VALIDATE_SSID75* for Android here. If you are sure there is no risk on your system about this,76* mask this macro define to support non-printable ascii ssid.77* #define CONFIG_VALIDATE_SSID */7879/* Android expect dbm as the rx signal strength unit */80#define CONFIG_SIGNAL_DISPLAY_DBM81#endif8283/*84#if defined(CONFIG_HAS_EARLYSUSPEND) && defined(CONFIG_RESUME_IN_WORKQUEUE)85#warning "You have CONFIG_HAS_EARLYSUSPEND enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"86#undef CONFIG_RESUME_IN_WORKQUEUE87#endif8889#if defined(CONFIG_ANDROID_POWER) && defined(CONFIG_RESUME_IN_WORKQUEUE)90#warning "You have CONFIG_ANDROID_POWER enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"91#undef CONFIG_RESUME_IN_WORKQUEUE92#endif93*/9495#ifdef CONFIG_RESUME_IN_WORKQUEUE /* this can be removed, because there is no case for this... */96#if !defined(CONFIG_WAKELOCK) && !defined(CONFIG_ANDROID_POWER)97#error "enable CONFIG_RESUME_IN_WORKQUEUE without CONFIG_WAKELOCK or CONFIG_ANDROID_POWER will suffer from the danger of wifi's unfunctionality..."98#error "If you still want to enable CONFIG_RESUME_IN_WORKQUEUE in this case, mask this preprossor checking and GOOD LUCK..."99#endif100#endif101102/* About USB VENDOR REQ */103#if defined(CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC) && !defined(CONFIG_USB_VENDOR_REQ_MUTEX)104#warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC automatically"105#define CONFIG_USB_VENDOR_REQ_MUTEX106#endif107#if defined(CONFIG_VENDOR_REQ_RETRY) && !defined(CONFIG_USB_VENDOR_REQ_MUTEX)108#warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_VENDOR_REQ_RETRY automatically"109#define CONFIG_USB_VENDOR_REQ_MUTEX110#endif111112#if defined(CONFIG_DFS_SLAVE_WITH_RADAR_DETECT) && !defined(CONFIG_DFS_MASTER)113#define CONFIG_DFS_MASTER114#endif115116#if !defined(CONFIG_AP_MODE) && defined(CONFIG_DFS_MASTER)117#error "enable CONFIG_DFS_MASTER without CONFIG_AP_MODE"118#endif119120#ifdef CONFIG_WIFI_MONITOR121#define CONFIG_MONITOR_MODE_XMIT122#endif123124#ifdef CONFIG_CUSTOMER_ALIBABA_GENERAL125#ifndef CONFIG_WIFI_MONITOR126#define CONFIG_WIFI_MONITOR127#endif128#ifdef CONFIG_POWER_SAVING129#undef CONFIG_POWER_SAVING130#endif131#endif132133#ifdef CONFIG_CUSTOMER01_SMART_ANTENNA134#ifdef CONFIG_POWER_SAVING135#undef CONFIG_POWER_SAVING136#endif137#ifdef CONFIG_BEAMFORMING138#undef CONFIG_BEAMFORMING139#endif140#endif141142#ifdef CONFIG_AP_MODE143#define CONFIG_TX_MCAST2UNI /* AP mode support IP multicast->unicast */144#endif145146#ifdef CONFIG_RTW_MESH147#ifndef CONFIG_RTW_MESH_ACNODE_PREVENT148#define CONFIG_RTW_MESH_ACNODE_PREVENT 1149#endif150151#ifndef CONFIG_RTW_MESH_OFFCH_CAND152#define CONFIG_RTW_MESH_OFFCH_CAND 1153#endif154155#ifndef CONFIG_RTW_MESH_PEER_BLACKLIST156#define CONFIG_RTW_MESH_PEER_BLACKLIST 1157#endif158159#ifndef CONFIG_RTW_MESH_CTO_MGATE_BLACKLIST160#define CONFIG_RTW_MESH_CTO_MGATE_BLACKLIST 1161#endif162#ifndef CONFIG_RTW_MESH_CTO_MGATE_CARRIER163#define CONFIG_RTW_MESH_CTO_MGATE_CARRIER CONFIG_RTW_MESH_CTO_MGATE_BLACKLIST164#endif165166#ifndef CONFIG_RTW_MPM_TX_IES_SYNC_BSS167#define CONFIG_RTW_MPM_TX_IES_SYNC_BSS 1168#endif169#if CONFIG_RTW_MPM_TX_IES_SYNC_BSS170#ifndef CONFIG_RTW_MESH_AEK171#define CONFIG_RTW_MESH_AEK172#endif173#endif174175#ifndef CONFIG_RTW_MESH_DATA_BMC_TO_UC176#define CONFIG_RTW_MESH_DATA_BMC_TO_UC 1177#endif178#endif179180#if !defined(CONFIG_SCAN_BACKOP) && defined(CONFIG_AP_MODE)181#define CONFIG_SCAN_BACKOP182#endif183184#define RTW_SCAN_SPARSE_MIRACAST 1185#define RTW_SCAN_SPARSE_BG 0186#define RTW_SCAN_SPARSE_ROAMING_ACTIVE 1187188#ifndef CONFIG_TX_AC_LIFETIME189#define CONFIG_TX_AC_LIFETIME 1190#endif191#ifndef CONFIG_TX_ACLT_FLAGS192#define CONFIG_TX_ACLT_FLAGS 0x00193#endif194#ifndef CONFIG_TX_ACLT_CONF_DEFAULT195#define CONFIG_TX_ACLT_CONF_DEFAULT {0x0, 1024 * 1000, 1024 * 1000}196#endif197#ifndef CONFIG_TX_ACLT_CONF_AP_M2U198#define CONFIG_TX_ACLT_CONF_AP_M2U {0xF, 256 * 1000, 256 * 1000}199#endif200#ifndef CONFIG_TX_ACLT_CONF_MESH201#define CONFIG_TX_ACLT_CONF_MESH {0xF, 256 * 1000, 256 * 1000}202#endif203204#ifndef CONFIG_RTW_HIQ_FILTER205#define CONFIG_RTW_HIQ_FILTER 1206#endif207208#ifndef CONFIG_RTW_ADAPTIVITY_EN209#define CONFIG_RTW_ADAPTIVITY_EN 0210#endif211212#ifndef CONFIG_RTW_ADAPTIVITY_MODE213#define CONFIG_RTW_ADAPTIVITY_MODE 0214#endif215216#ifndef CONFIG_RTW_ADAPTIVITY_TH_L2H_INI217#define CONFIG_RTW_ADAPTIVITY_TH_L2H_INI 0218#endif219220#ifndef CONFIG_RTW_ADAPTIVITY_TH_EDCCA_HL_DIFF221#define CONFIG_RTW_ADAPTIVITY_TH_EDCCA_HL_DIFF 0222#endif223224#ifndef CONFIG_RTW_EXCL_CHS225#define CONFIG_RTW_EXCL_CHS {0}226#endif227228#ifndef CONFIG_RTW_DFS_REGION_DOMAIN229#define CONFIG_RTW_DFS_REGION_DOMAIN 0230#endif231232#ifndef CONFIG_TXPWR_BY_RATE_EN233#define CONFIG_TXPWR_BY_RATE_EN 2 /* by efuse */234#endif235#ifndef CONFIG_TXPWR_LIMIT_EN236#define CONFIG_TXPWR_LIMIT_EN 2 /* by efuse */237#endif238239#ifndef CONFIG_RTW_CHPLAN240#define CONFIG_RTW_CHPLAN 0xFF /* RTW_CHPLAN_UNSPECIFIED */241#endif242243/* compatible with old fashion configuration */244#if defined(CONFIG_CALIBRATE_TX_POWER_BY_REGULATORY)245#undef CONFIG_TXPWR_BY_RATE_EN246#undef CONFIG_TXPWR_LIMIT_EN247#define CONFIG_TXPWR_BY_RATE_EN 1248#define CONFIG_TXPWR_LIMIT_EN 1249#elif defined(CONFIG_CALIBRATE_TX_POWER_TO_MAX)250#undef CONFIG_TXPWR_BY_RATE_EN251#undef CONFIG_TXPWR_LIMIT_EN252#define CONFIG_TXPWR_BY_RATE_EN 1253#define CONFIG_TXPWR_LIMIT_EN 0254#endif255256#ifndef RTW_DEF_MODULE_REGULATORY_CERT257#define RTW_DEF_MODULE_REGULATORY_CERT 0258#endif259260#if RTW_DEF_MODULE_REGULATORY_CERT261/* force enable TX power by rate and TX power limit */262#undef CONFIG_TXPWR_BY_RATE_EN263#undef CONFIG_TXPWR_LIMIT_EN264#define CONFIG_TXPWR_BY_RATE_EN 1265#define CONFIG_TXPWR_LIMIT_EN 1266#endif267268#if !CONFIG_TXPWR_LIMIT && CONFIG_TXPWR_LIMIT_EN269#undef CONFIG_TXPWR_LIMIT270#define CONFIG_TXPWR_LIMIT 1271#endif272273#ifdef CONFIG_RTW_IPCAM_APPLICATION274#undef CONFIG_TXPWR_BY_RATE_EN275#define CONFIG_TXPWR_BY_RATE_EN 1276#define CONFIG_RTW_CUSTOMIZE_BEEDCA 0x0000431C277#define CONFIG_RTW_CUSTOMIZE_BWMODE 0x00278#define CONFIG_RTW_CUSTOMIZE_RLSTA 0x30279#if defined(CONFIG_RTL8192E) || defined(CONFIG_RTL8192F) || defined(CONFIG_RTL8822B)280#define CONFIG_RTW_TX_NPATH_EN /* mutually incompatible with STBC_TX & Beamformer */281#endif282#endif283/*#define CONFIG_EXTEND_LOWRATE_TXOP */284285#ifndef CONFIG_RTW_RX_AMPDU_SZ_LIMIT_1SS286#define CONFIG_RTW_RX_AMPDU_SZ_LIMIT_1SS {0xFF, 0xFF, 0xFF, 0xFF}287#endif288#ifndef CONFIG_RTW_RX_AMPDU_SZ_LIMIT_2SS289#define CONFIG_RTW_RX_AMPDU_SZ_LIMIT_2SS {0xFF, 0xFF, 0xFF, 0xFF}290#endif291#ifndef CONFIG_RTW_RX_AMPDU_SZ_LIMIT_3SS292#define CONFIG_RTW_RX_AMPDU_SZ_LIMIT_3SS {0xFF, 0xFF, 0xFF, 0xFF}293#endif294#ifndef CONFIG_RTW_RX_AMPDU_SZ_LIMIT_4SS295#define CONFIG_RTW_RX_AMPDU_SZ_LIMIT_4SS {0xFF, 0xFF, 0xFF, 0xFF}296#endif297298#ifndef CONFIG_RTW_TARGET_TX_PWR_2G_A299#define CONFIG_RTW_TARGET_TX_PWR_2G_A {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}300#endif301302#ifndef CONFIG_RTW_TARGET_TX_PWR_2G_B303#define CONFIG_RTW_TARGET_TX_PWR_2G_B {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}304#endif305306#ifndef CONFIG_RTW_TARGET_TX_PWR_2G_C307#define CONFIG_RTW_TARGET_TX_PWR_2G_C {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}308#endif309310#ifndef CONFIG_RTW_TARGET_TX_PWR_2G_D311#define CONFIG_RTW_TARGET_TX_PWR_2G_D {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}312#endif313314#ifndef CONFIG_RTW_TARGET_TX_PWR_5G_A315#define CONFIG_RTW_TARGET_TX_PWR_5G_A {-1, -1, -1, -1, -1, -1, -1, -1, -1}316#endif317318#ifndef CONFIG_RTW_TARGET_TX_PWR_5G_B319#define CONFIG_RTW_TARGET_TX_PWR_5G_B {-1, -1, -1, -1, -1, -1, -1, -1, -1}320#endif321322#ifndef CONFIG_RTW_TARGET_TX_PWR_5G_C323#define CONFIG_RTW_TARGET_TX_PWR_5G_C {-1, -1, -1, -1, -1, -1, -1, -1, -1}324#endif325326#ifndef CONFIG_RTW_TARGET_TX_PWR_5G_D327#define CONFIG_RTW_TARGET_TX_PWR_5G_D {-1, -1, -1, -1, -1, -1, -1, -1, -1}328#endif329330#ifndef CONFIG_RTW_AMPLIFIER_TYPE_2G331#define CONFIG_RTW_AMPLIFIER_TYPE_2G 0332#endif333334#ifndef CONFIG_RTW_AMPLIFIER_TYPE_5G335#define CONFIG_RTW_AMPLIFIER_TYPE_5G 0336#endif337338#ifndef CONFIG_RTW_RFE_TYPE339#define CONFIG_RTW_RFE_TYPE 64340#endif341342#ifndef CONFIG_RTW_GLNA_TYPE343#define CONFIG_RTW_GLNA_TYPE 0344#endif345346#ifndef CONFIG_RTW_PLL_REF_CLK_SEL347#define CONFIG_RTW_PLL_REF_CLK_SEL 0x0F348#endif349350#ifndef CONFIG_IFACE_NUMBER351#ifdef CONFIG_CONCURRENT_MODE352#define CONFIG_IFACE_NUMBER 2353#else354#define CONFIG_IFACE_NUMBER 1355#endif356#endif357358#ifndef CONFIG_CONCURRENT_MODE359#if (CONFIG_IFACE_NUMBER > 1)360#error "CONFIG_IFACE_NUMBER over 1,but CONFIG_CONCURRENT_MODE not defined"361#endif362#endif363364#if (CONFIG_IFACE_NUMBER == 0)365#error "CONFIG_IFACE_NUMBER cound not be 0 !!"366#endif367368#if defined(CONFIG_RTL8188E) || defined(CONFIG_RTL8192E) || defined(CONFIG_RTL8188F) || \369defined(CONFIG_RTL8188GTV) || defined(CONFIG_RTL8192F) || \370defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) || defined(CONFIG_RTL8710B) || \371defined(CONFIG_RTL8723B) || defined(CONFIG_RTL8703B) || defined(CONFIG_RTL8723D)372#define CONFIG_HWMPCAP_GEN1373#elif defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8821C) || defined(CONFIG_RTL8822C) /*|| defined(CONFIG_RTL8814A)*/374#define CONFIG_HWMPCAP_GEN2375#elif defined(CONFIG_RTL8814B) /*Address CAM - 128*/376#define CONFIG_HWMPCAP_GEN3377#endif378379#if defined(CONFIG_HWMPCAP_GEN1) && (CONFIG_IFACE_NUMBER > 2)380#ifdef CONFIG_POWER_SAVING381/*#warning "Disable PS when CONFIG_IFACE_NUMBER > 2"*/382#undef CONFIG_POWER_SAVING383#endif384385#ifdef CONFIG_WOWLAN386#error "This IC can't support MI and WoWLan at the same time"387#endif388#endif389390#if defined(CONFIG_HWMPCAP_GEN1) && (CONFIG_IFACE_NUMBER > 3)391#error " This IC can't support over 3 interfaces !!"392#endif393394#if (CONFIG_IFACE_NUMBER > 4)395#error "Not support over 4 interfaces yet !!"396#endif397398#if (CONFIG_IFACE_NUMBER > 8) /*IFACE_ID_MAX*/399#error "HW count not support over 8 interfaces !!"400#endif401402#if (CONFIG_IFACE_NUMBER > 2)403#define CONFIG_MI_WITH_MBSSID_CAM404405#ifdef CONFIG_MI_WITH_MBSSID_CAM406#define CONFIG_MBSSID_CAM407#if defined(CONFIG_RUNTIME_PORT_SWITCH)408#undef CONFIG_RUNTIME_PORT_SWITCH409#endif410#endif411412#ifdef CONFIG_AP_MODE413#define CONFIG_SUPPORT_MULTI_BCN414415#define CONFIG_SWTIMER_BASED_TXBCN416417#ifdef CONFIG_HWMPCAP_GEN2 /*CONFIG_RTL8822B/CONFIG_RTL8821C/CONFIG_RTL8822C*/418#define CONFIG_FW_HANDLE_TXBCN419420#ifdef CONFIG_FW_HANDLE_TXBCN421#ifdef CONFIG_SWTIMER_BASED_TXBCN422#undef CONFIG_SWTIMER_BASED_TXBCN423#endif424425#define CONFIG_LIMITED_AP_NUM 4426#endif427#endif /*CONFIG_HWMPCAP_GEN2*/428#endif /*CONFIG_AP_MODE*/429430#ifdef CONFIG_HWMPCAP_GEN2 /*CONFIG_RTL8822B/CONFIG_RTL8821C/CONFIG_RTL8822C*/431#define CONFIG_CLIENT_PORT_CFG432#define CONFIG_NEW_NETDEV_HDL433#endif/*CONFIG_HWMPCAP_GEN2*/434#endif/*(CONFIG_IFACE_NUMBER > 2)*/435436#define MACID_NUM_SW_LIMIT 32437#define SEC_CAM_ENT_NUM_SW_LIMIT 32438439#if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) || defined(CONFIG_RTL8814A)440#define CONFIG_IEEE80211_BAND_5GHZ441#endif442443#if defined(CONFIG_WOWLAN) && (defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8821C) || defined(CONFIG_RTL8814A) || defined(CONFIG_RTL8822C) || defined(CONFIG_RTL8814B))444#define CONFIG_WOW_PATTERN_HW_CAM445#endif446447#ifndef CONFIG_TSF_UPDATE_PAUSE_FACTOR448#define CONFIG_TSF_UPDATE_PAUSE_FACTOR 200449#endif450451#ifndef CONFIG_TSF_UPDATE_RESTORE_FACTOR452#define CONFIG_TSF_UPDATE_RESTORE_FACTOR 5453#endif454455/*456Mark CONFIG_DEAUTH_BEFORE_CONNECT by Arvin 2015/07/20457If the failure of Wi-Fi connection is due to some irregular disconnection behavior (like unplug dongle,458power down etc.) in last time, we can unmark this flag to avoid some unpredictable response from AP.459*/460/*#define CONFIG_DEAUTH_BEFORE_CONNECT */461462/*#define CONFIG_WEXT_DONT_JOIN_BYSSID */463/* #include <rtl871x_byteorder.h> */464465466/*#define CONFIG_DOSCAN_IN_BUSYTRAFFIC */467/*#define CONFIG_PHDYM_FW_FIXRATE */ /* Another way to fix tx rate */468469/*Don't release SDIO irq in suspend/resume procedure*/470#define CONFIG_RTW_SDIO_KEEP_IRQ 0471472/*473* Add by Lucas@2016/02/15474* For RX Aggregation475*/476#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_USB_RX_AGGREGATION)477#define RTW_RX_AGGREGATION478#endif /* CONFIG_SDIO_HCI || CONFIG_USB_RX_AGGREGATION */479480#ifdef CONFIG_RTW_HOSTAPD_ACS481#if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) || defined(CONFIG_RTL8814A)482#ifndef CONFIG_FIND_BEST_CHANNEL483#define CONFIG_FIND_BEST_CHANNEL484#endif485#else486#ifdef CONFIG_FIND_BEST_CHANNEL487#undef CONFIG_FIND_BEST_CHANNEL488#endif489#ifndef CONFIG_RTW_ACS490#define CONFIG_RTW_ACS491#endif492#ifndef CONFIG_BACKGROUND_NOISE_MONITOR493#define CONFIG_BACKGROUND_NOISE_MONITOR494#endif495#endif496#endif497498#ifdef CONFIG_RTW_80211K499#ifndef CONFIG_RTW_ACS500#define CONFIG_RTW_ACS501#endif502#endif /*CONFIG_RTW_80211K*/503504#ifdef DBG_CONFIG_ERROR_RESET505#ifndef CONFIG_IPS506#define CONFIG_IPS507#endif508#endif509510/* IPS */511#ifndef RTW_IPS_MODE512#if defined(CONFIG_IPS)513#define RTW_IPS_MODE 1514#else515#define RTW_IPS_MODE 0516#endif517#endif /* !RTW_IPS_MODE */518519#if (RTW_IPS_MODE > 1 || RTW_IPS_MODE < 0)520#error "The CONFIG_IPS_MODE value is wrong. Please follow HowTo_enable_the_power_saving_functionality.pdf.\n"521#endif522523/* LPS */524#ifndef RTW_LPS_MODE525#if defined(CONFIG_LPS_PG) || defined(CONFIG_LPS_PG_DDMA)526#define RTW_LPS_MODE 3527#elif defined(CONFIG_LPS_LCLK)528#define RTW_LPS_MODE 2529#elif defined(CONFIG_LPS)530#define RTW_LPS_MODE 1531#else532#define RTW_LPS_MODE 0533#endif534#endif /* !RTW_LPS_MODE */535536#if (RTW_LPS_MODE > 3 || RTW_LPS_MODE < 0)537#error "The CONFIG_LPS_MODE value is wrong. Please follow HowTo_enable_the_power_saving_functionality.pdf.\n"538#endif539540#ifndef RTW_LPS_1T1R541#define RTW_LPS_1T1R 0542#endif543544#ifndef RTW_WOW_LPS_1T1R545#define RTW_WOW_LPS_1T1R 0546#endif547548/* WOW LPS */549#ifndef RTW_WOW_LPS_MODE550#if defined(CONFIG_LPS_PG) || defined(CONFIG_LPS_PG_DDMA)551#define RTW_WOW_LPS_MODE 3552#elif defined(CONFIG_LPS_LCLK)553#define RTW_WOW_LPS_MODE 2554#elif defined(CONFIG_LPS)555#define RTW_WOW_LPS_MODE 1556#else557#define RTW_WOW_LPS_MODE 0558#endif559#endif /* !RTW_WOW_LPS_MODE */560561#if (RTW_WOW_LPS_MODE > 3 || RTW_WOW_LPS_MODE < 0)562#error "The RTW_WOW_LPS_MODE value is wrong. Please follow HowTo_enable_the_power_saving_functionality.pdf.\n"563#endif564565#ifdef RTW_REDUCE_SCAN_SWITCH_CH_TIME566#ifndef CONFIG_RTL8822B567#error "Only 8822B support RTW_REDUCE_SCAN_SWITCH_CH_TIME"568#endif569#ifndef RTW_CHANNEL_SWITCH_OFFLOAD570#define RTW_CHANNEL_SWITCH_OFFLOAD571#endif572#endif573574#define CONFIG_RTW_TPT_MODE575576#ifdef CONFIG_PCI_BCN_POLLING577#define CONFIG_BCN_ICF578#endif579580#ifndef CONFIG_PCI_MSI581#define CONFIG_RTW_PCI_MSI_DISABLE582#endif583584#if defined(CONFIG_PCI_DYNAMIC_ASPM_L1_LATENCY) || \585defined(CONFIG_PCI_DYNAMIC_ASPM_LINK_CTRL)586#define CONFIG_PCI_DYNAMIC_ASPM587#endif588589#endif /* __DRV_CONF_H__ */590591592