1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2020 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 _RTW_CFG_H_ 16 #define _RTW_CFG_H_ 17 18 enum rtw_pwr_by_rate_setting { 19 RTW_PW_BY_RATE_ON = 0, 20 RTW_PW_BY_RATE_ALL_SAME = 1 21 }; 22 23 enum rtw_pwr_limit_type { 24 RTW_PWLMT_BY_EFUSE = 0, 25 RTW_PWLMT_DISABLE = 1, 26 RTW_PWBYRATE_AND_PWLMT = 2 27 }; 28 29 u8 rtw_load_dvobj_registry(struct dvobj_priv *dvobj); 30 uint rtw_load_registry(_adapter *adapter); 31 32 void rtw_core_update_default_setting (struct dvobj_priv *dvobj); 33 34 #define RTW_ADAPTIVITY_EN_DISABLE 0 35 #define RTW_ADAPTIVITY_EN_ENABLE 1 36 #define RTW_ADAPTIVITY_EN_AUTO 2 37 38 #define RTW_ADAPTIVITY_MODE_NORMAL 0 39 #define RTW_ADAPTIVITY_MODE_CARRIER_SENSE 1 40 41 void rtw_cfg_adaptivity_config_msg(void *sel, _adapter *adapter); 42 bool rtw_cfg_adaptivity_needed(_adapter *adapter); 43 44 #endif /*_RTW_CFG_H_*/ 45