hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/******************************************************************************
 *
 * Copyright(c) 2007 - 2020 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifndef _RTW_CFG_H_
#define _RTW_CFG_H_
 
enum rtw_pwr_by_rate_setting {
   RTW_PW_BY_RATE_ON = 0,
   RTW_PW_BY_RATE_ALL_SAME = 1
};
 
enum rtw_pwr_limit_type {
   RTW_PWLMT_BY_EFUSE = 0,
   RTW_PWLMT_DISABLE = 1,
   RTW_PWBYRATE_AND_PWLMT = 2
};
 
u8 rtw_load_dvobj_registry(struct dvobj_priv *dvobj);
uint rtw_load_registry(_adapter *adapter);
 
void rtw_core_update_default_setting (struct dvobj_priv *dvobj);
 
#define RTW_ADAPTIVITY_EN_DISABLE 0
#define RTW_ADAPTIVITY_EN_ENABLE 1
#define RTW_ADAPTIVITY_EN_AUTO 2
 
#define RTW_ADAPTIVITY_MODE_NORMAL 0
#define RTW_ADAPTIVITY_MODE_CARRIER_SENSE 1
 
void rtw_cfg_adaptivity_config_msg(void *sel, _adapter *adapter);
bool rtw_cfg_adaptivity_needed(_adapter *adapter);
 
#endif /*_RTW_CFG_H_*/