WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
soc_customize_wifi_mpxx.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2021. All rights reserved.
3 * Description: Header file for soc_customize_wifi.c.
4 * Create: 2021-12-15
5 */
6
7#ifndef __SOC_CUSTOMIZE_WIFI_MPXX_H__
8#define __SOC_CUSTOMIZE_WIFI_MPXX_H__
9
10/*****************************************************************************
11 1 其他头文件包含
12*****************************************************************************/
13#include "mac_vap_ext.h"
14
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif
19#endif
20
21#if defined(_PRE_PRODUCT_ID_HOST)
22
23// #ifdef _PRE_PLAT_FEATURE_CUSTOMIZE
24/*****************************************************************************
25 2 宏定义
26*****************************************************************************/
27#define NVRAM_PARAMS_ARRAY "nvram_params"
28
29#define STR_COUNTRY_CODE ("country_code")
30#define NV_WLAN_NUM 193
31#define NV_WLAN_VALID_SIZE 12
32#define MAC_LEN 6
33#define MACFMT_ALL "%02x:%02x:%02x:%02x:%02x:%02x"
34#define MACFMT "%02x:%s:%s:%s:%02x:%02x"
35#define CUS_TAG_INI 0x11
36#define CUS_TAG_NV 0x13
37#define CUS_TAG_PRIV_INI 0x14
38#define CUS_TAG_RF_FE 0x16 /* 射频前端定制化项解析 */
39#define CUS_TAG_RF_FE_TX_POWER 0x17 /* 射频前端定制化项解析 功率部分 */
40#define CALI_TXPWR_PA_DC_REF_MAX (0x8000)
41#define CALI_TXPWR_PA_DC_REF_MIN (1000)
42#define CALI_TXPWR_PA_DC_FRE_MAX (78)
43#define CALI_TXPWR_PA_DC_FRE_MIN (0)
44#define CALI_BT_TXPWR_PA_DC_REF_MAX (15000)
45#define RF_LINE_TXRX_GAIN_DB_2G_MIN (-100)
46#define RF_LINE_TXRX_GAIN_DB_MAX (40)
47#define RF_LINE_TXRX_GAIN_DB_5G_MIN (-48)
48#define PSD_THRESHOLD_MAX (-10)
49#define PSD_THRESHOLD_MIN (-15)
50#define LNA_GAIN_DB_MAX (80)
51#define LNA_GAIN_DB_MIN (-40)
52
53#define MAC_NUM_5G_BAND 7 /* 5g band数 */
54#define MAC_NUM_2G_BAND 3 /* 2g band数 */
55#define MAC_2G_CHANNEL_NUM 13
56/* NVRAM中存储的参数值的总个数,包括4个基准功率 */
57#define NUM_OF_NV_PARAMS (NUM_OF_NV_MAX_TXPOWER + NUM_OF_NV_DPD_MAX_TXPOWER + 4)
58#define TX_RATIO_MAX (2000) /* tx占空比的最大有效值 */
59#define TX_PWR_COMP_VAL_MAX (50) /* 发射功率补偿值的最大有效值 */
60#define MORE_PWR_MAX (50) /* 根据温度额外补偿的发射功率的最大有效值 */
61#define COUNTRY_CODE_LEN (3) /* 国家码位数 */
62#define DEFAULT_COUNTRY_CODE "CN"
63#define MAX_COUNTRY_COUNT (300) /* 支持定制的国家的最大个数 */
64#define DELTA_CCA_ED_HIGH_TH_RANGE 15 /* δ调整上限,最大向上或向下调整15dB */
65#define CUS_NUM_5G_BW 4 /* 定制化5g带宽数 */
66#define CUS_NUM_FCC_2G_PRO 3 /* 定制化2g FCC 11B+OFDM_20M+OFDM_40M */
67#define CUS_NUM_5G_20M_SIDE_BAND 6 /* 定制化5g边带数 */
68#define CUS_NUM_5G_40M_SIDE_BAND 6
69#define CUS_NUM_5G_80M_SIDE_BAND 5
70#define CUS_NUM_5G_160M_SIDE_BAND 2
71#define CUS_NUM_OF_SAR_PARAMS 8 /* 定制化降SAR参数 5G_BAND1~7 2.4G */
72#define CUS_NUM_OF_SAR_LVL 3 /* 定制化降SAR档位数 */
73#define CUS_MIN_OF_SAR_VAL (0x28) /* 定制化降SAR最小值 4dbm */
74#define CUS_PARAMS_LEN_MAX (104) /* 定制项最大长度 */
75#define DY_2G_CALI_PARAMS_NUM (4) /* 动态校准参数个数,2.4g */
76/* 动态校准参数个数,2.4g 4个(ofdm 20/40 11b cw),5g 5*2(high & low)个band */
77#define DY_CALI_PARAMS_NUM (14)
78#define DY_CALI_PARAMS_BASE_NUM (9) /* 动态校准参数个数,2.4g 4个(ofdm 20/40 11b cw),5g 5(high)个band */
79#define DY_CALI_PARAMS_TIMES (3) /* 动态校准参数二次项系数个数 */
80#define DY_CALI_NUM_5G_BAND (5) /* 动态校准5g band1 2&3 4&5 6 7 */
81#define DY_CALI_FIT_PRECISION_A1 (6)
82#define DY_CALI_FIT_PRECISION_A0 (16)
83#define CUS_MAX_BASE_TXPOWER_VAL (220) /* 最大基准发送功率的最大有效值 */
84#define CUS_MIN_BASE_TXPOWER_VAL (50) /* 最小基准发送功率的最大有效值 */
85#define CUS_NUM_2G_DELTA_RSSI_NUM (2) /* 20M/40M */
86#define CUS_NUM_5G_DELTA_RSSI_NUM (4) /* 20M/40M/80M/160M */
87#define CUS_BASE_PWR_NUM_5G DY_CALI_NUM_5G_BAND /* 5g Base power 5个 band1 2&3 4&5 6 7 */
88#define CUS_BASE_PWR_NUM_2G (1)
89// 打印自定义功率
90#define NV_PRINT_LEN 128
91#define NV_PRINT_STEP_1 1
92#define NV_PRINT_STEP_3 3
93#define NV_PRINT_STEP_4 4
94#define NV_PRINT_STEP_5 5
95#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN1 (6250)
96#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN2 (5362)
97#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN3 (4720)
98#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN4 (4480)
99#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN5 (4470)
100#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN6 (4775)
101#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN7 (5200)
102#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN8 (5450)
103#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN9 (5600)
104#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN10 (6100)
105#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN11 (6170)
106#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN12 (6350)
107#define DTS_CALI_PARAMS_ETC_REF_2G_VAL_CHAN13 (6530)
108#define DTS_CALI_PARAMS_ETC_REF_5G_VAL_BAND1 (2500)
109#define DTS_CALI_PARAMS_ETC_REF_5G_VAL_BAND2 (2800)
110#define DTS_CALI_PARAMS_ETC_REF_5G_VAL_BAND3 (3100)
111#define DTS_CALI_PARAMS_ETC_REF_5G_VAL_BAND4 (3600)
112#define DTS_CALI_PARAMS_ETC_REF_5G_VAL_BAND5 (3600)
113#define DTS_CALI_PARAMS_ETC_REF_5G_VAL_BAND6 (3700)
114#define DTS_CALI_PARAMS_ETC_REF_5G_VAL_BAND7 (3800)
115
116/* 计算绝对值 */
117#define cus_abs(val) ((val) > 0 ? (val) : -(val))
118
119/* 判断CCA能量门限调整值是否超出范围, 最大调整幅度:DELTA_CCA_ED_HIGH_TH_RANGE */
120#define cus_delta_cca_ed_high_th_out_of_range(val) (cus_abs(val) > DELTA_CCA_ED_HIGH_TH_RANGE ? 1 : 0)
121
122/* 取16位数 */
123#define cus_get_low_16bit(val) ((osal_u16)(((osal_u32)(val)) & 0x0000FFFF))
124#define cus_get_high_16bit(val) ((osal_u16)((((osal_u32)(val)) & 0xFFFF0000) >> 16))
125
126/* The max scatter buffers when host to device */
127#define HISDIO_HOST2DEV_SCATT_MAX 40
128
129/* The max scatter buffers when device to host */
130#define HISDIO_DEV2HOST_SCATT_MAX (63)
131/* 前端定制化参数宏 */
132#define WLAN_RF_FE_CALI_DATA_MASK_UPLOAD 0x1
133#define WLAN_RF_FE_CALI_DATA_MASK_DOWNLOAD 0x2
134#define SOC_CUSTOM_RF_FE_RX_LOSS_NUM_2G 3
135#define SOC_CUSTOM_RF_FE_RX_LOSS_NUM SOC_CUSTOM_RF_FE_RX_LOSS_NUM_2G
136#define SOC_CUSTOM_RF_FE_RX_LOSS_NUM_RSV 1 // 插损保留位数
137#define SOC_CUSTOM_RF_FE_MAX_POWER_NUM_2G 1
138#define SOC_CUSTOM_RF_FE_TARGET_POWER_NUM_2G 33
139#define SOC_CUSTOM_RF_FE_LIMIT_POWER_NUM_2G 56
140#define SOC_CUSTOM_RF_FE_SAR_POWER_NUM_2G 3
141#define SOC_CUSTOM_RF_FE_CTA_COEF_SWITCH_2G 1
142#define SOC_CUSTOM_RF_FE_POWER_NUM_RSV 2 // 功率保留位数
143#define SOC_CUSTOM_RF_FE_REF_POWER_NUM_2G 6
144#define SOC_CUSTOM_RF_FE_CURVE_NUM_LVL 2
145#define SOC_CUSTOM_RF_FE_CURVE_NUM_2G 9
146#define SOC_CUSTOM_RF_FE_FACTOR_NUM_2G 6
147#define SOC_CUSTOM_RF_FE_RSSI_COMP_NUM_2G 3
148/*****************************************************************************
149 3 枚举定义
150*****************************************************************************/
151
152typedef enum {
159
160
161/* NV map idx */
162typedef enum {
179
180typedef enum {
181 REGDOMAIN_FCC = 0,
182 REGDOMAIN_ETSI = 1,
183 REGDOMAIN_JAPAN = 2,
185
188
189/* 私有定制化 PRIV CONFIG ID */
190typedef enum {
191 /* 校准开关 */
204 WLAN_CFG_PRIV_RANDOM_MAC_ADDR_SCAN,
205 WLAN_CFG_PRIV_RANDOM_SCAN_OUI,
206 WLAN_CFG_PRIV_PCAP_FILE_LEN_MAX,
234 WLAN_CFG_PRIV_PROTOCOL_ENABLE,
242
243/* 定制化 INI CONFIG ID */
244typedef enum {
245 /* 性能 */
250 /* 拥塞算法 */
252 /* 2G RF前端 */
258 /* 5G RF前端 */
268
269 /* 用于定制化计算PWR RF值的偏差 */
274
279 /* 结温补偿 用于温度保护 */
283
284/* 射频前端定制化解析类型枚举 */
285enum {
291};
292/* 射频前端定制化参数枚举 */
293enum {
323 WLAN_CFG_INI_RF_FE_CTA_COEF_SWITCH_BEGIN = WLAN_CFG_INI_RF_FE_POWER_SAR_2G_END,
324 WLAN_CFG_INI_RF_FE_CTA_COEF_SWITCH = WLAN_CFG_INI_RF_FE_CTA_COEF_SWITCH_BEGIN,
325 WLAN_CFG_INI_RF_FE_CTA_COEF_SWITCH_END,
326 WLAN_CFG_INI_RF_FE_POWER_REF_2G_BEGIN = WLAN_CFG_INI_RF_FE_CTA_COEF_SWITCH_END,
346};
347typedef enum {
348 LOW_CURRENT_BOOT_MODE_DEFAULT = 0x0, /* 默认启动模式 */
349 LOW_CURRENT_BOOT_MODE_WITHOUT_PWR_CALI = 0x1, /* 关闭功率校准的低电流启动模式 */
350 LOW_CURRENT_BOOT_MODE_WITH_ONCE_PWR_CALI = 0x2, /* 关闭非首次功率校准的低电流启动模式 */
351 LOW_CURRENT_BOOT_MODE_WITHOUT_CALI = 0xFF, /* 关闭全部校准的低电流启动模式 */
353
354/*****************************************************************************
355 7 STRUCT定义
356*****************************************************************************/
357typedef osal_u8 countrycode_t[COUNTRY_CODE_LEN];
358typedef struct {
359 regdomain_enum regdomain;
360 countrycode_t auc_country_code;
362
367typedef struct regdomain_plat_tag_map {
369 int plat_tag;
371
372typedef struct {
373 char* name;
374 int case_entry;
376
377typedef struct {
378 osal_s32 val;
379 oal_bool_enum_uint8 value_state;
381
382typedef struct wlan_cus_pwr_fit_para_stru {
383 osal_s16 s_pow_par2; /* 二次项系数 */
384 osal_s16 s_pow_par1; /* 一次 */
385 osal_s16 s_pow_par0; /* 常数项 */
387
388typedef struct {
389 osal_u8* nv_name;
390 osal_u8* param_name;
391 osal_u32 nv_map_idx;
392 osal_u8 param_idx;
393 osal_u8 rsv[3];
395
396/* 定制化HOST全局变量结构体 */
397typedef struct {
398 /* ba tx 聚合数 */
399 unsigned int ampdu_tx_max_num;
400 /* 漫游 */
401 unsigned char roam_switch;
402 unsigned char roam_scan_orthogonal;
403 signed char c_roam_trigger_b;
404 signed char c_roam_trigger_a;
405 signed char c_roam_delta_b;
406 signed char c_roam_delta_a;
407 /* 漫游场景识别 */
408 signed char c_dense_env_roam_trigger_b;
409 signed char c_dense_env_roam_trigger_a;
410 oal_bool_enum_uint8 scenario_enable;
411 signed char c_candidate_good_rssi;
412 unsigned char candidate_good_num;
413 unsigned char candidate_weak_num;
414 /* scan */
415 unsigned char random_mac_addr_scan;
416 /* capab */
417 unsigned char disable_capab_2ght40;
418 unsigned int lte_gpio_check_switch;
419 unsigned int ism_priority;
420 unsigned int lte_rx;
421 unsigned int lte_tx;
422 unsigned int lte_inact;
423 unsigned int ism_rx_act;
424 unsigned int bant_pri;
425 unsigned int bant_status;
426 unsigned int want_pri;
427 unsigned int want_status;
429
430/* 不接受cust下发的切换国家码的命令
431 * 1、ini文件中国家码被配置成99
432 * 2、维测需要:使用ccpriv命令修改过国家码
433*/
434typedef struct {
435 oal_bool_enum_uint8 country_code_ingore_ini_flag;
436 oal_bool_enum_uint8 country_code_ingore_ccpriv_flag;
438
439/* 大区结构体 */
440typedef struct {
441 osal_u8 region_idx; // 大区号
442 osal_u16 region_tag; // 大区功率在配置文件中对应的tag
443 osal_s8 region_str[28]; // 大区名 28字节对齐
444} wlan_region_table;
445
446// 插损定制化项 支持5G的芯片 用宏区分
447typedef struct {
448 osal_u8 rx_insert_loss_2g[SOC_CUSTOM_RF_FE_RX_LOSS_NUM_2G];
451// 功率定制化项
452typedef struct {
457 osal_u8 special_cta_coef_switch[SOC_CUSTOM_RF_FE_CTA_COEF_SWITCH_2G]; /* 特殊滤波系数标志位 */
460typedef struct {
465typedef struct {
467 osal_u8 rssi_sel_bits;
469typedef struct {
474 osal_u32 ini_ret; // ini 解析状态 1:ok 0:fail 用 WLAN_CFG_INI_RF_FE_TYPE_BUTT 偏移位
476
477typedef struct {
478 osal_s8 *priv_name;
479 wlan_cfg_priv_id_uint8 cfg_singal_id;
480 custom_cfgid_h2d_ini_enum syn_singal_id;
481} wlan_cust_adapt_priv_params;
482extern wlan_cust_country_code_ingore_flag_stru g_st_cust_country_code_ignore_flag;
483extern osal_s8 g_external_record_file_path[CUS_PARAMS_LEN_MAX];
484extern osal_u32 g_external_record_file_size;
485
486extern int hwifi_config_init_etc(int);
487extern int hwifi_get_init_value_etc(int, int);
489extern void hwifi_set_country_code_etc(char*, const unsigned int);
490extern int hwifi_get_mac_addr_etc(unsigned char *);
491extern osal_void hwifi_scan_set_random_mac_addr_scan(osal_u8 random_scan);
492extern void *hwifi_wlan_customize_etc(void);
493extern int hwifi_is_regdomain_changed_etc(const countrycode_t, const countrycode_t);
494extern int hwifi_hcc_customize_h2d_data_cfg(void);
495extern int hwifi_hcc_h2d_priv_customize(void);
496extern int hwifi_custom_host_read_cfg_init(void);
497extern osal_s32 hwifi_get_init_priv_value(osal_s32 l_cfg_id, osal_s32 *pl_priv_value);
498extern regdomain_enum hwifi_get_regdomain_from_country_code(const countrycode_t country_code);
502extern osal_void hwifi_set_self_healing_enable_etc(osal_u32 self_healing_enable);
504extern osal_void hwifi_set_self_healing_period_etc(osal_u32 self_healing_period);
506extern osal_void hwifi_set_self_healing_cnt_etc(osal_u32 self_healing_cnt);
507osal_s8 hwifi_get_region(const osal_s8 *country_code);
509osal_void hwifi_print_nvram_list(osal_void);
510extern osal_void hwifi_set_amsdu_num(osal_u8 amsdu_num);
523extern osal_void hwifi_set_data_sample(osal_bool data_sample);
525extern osal_void hwifi_set_apf_enable(osal_bool apf_enable);
526extern osal_u8 hwifi_get_protocol_enable(void);
527extern osal_void hwifi_set_protocol_enable(osal_u8 protocol_enable);
529extern osal_void hwifi_set_wow_event(osal_u32 wow_event);
531extern osal_void hwifi_set_smooth_phase_en(osal_bool smooth_phase_en);
532extern osal_u32 hwifi_get_rx_stbc(osal_void);
533extern osal_void hwifi_set_rx_stbc(osal_u32 stbc_enable);
534extern osal_void hwifi_set_wow_enable(osal_u8 wow_enable);
536extern osal_void hwifi_set_sniffer_file_len_max(osal_u8 sniffer_file_len_max);
537extern osal_u8 hwifi_get_sniffer_file_len_max(osal_void);
539extern osal_void hwifi_get_external_record_file_name(osal_void);
540extern osal_void hwifi_custom_adapt_device_ini_perf_param(osal_u8 *data, osal_u32 *data_len);
541extern osal_u16 hwifi_get_low_current_boot_mode_cali_data_mask(osal_u16 cali_data_mask, osal_u8 first_cali_done_flag);
542#ifdef _PRE_WLAN_FEATURE_BTCOEX
544#endif
545// #endif /* #ifdef _PRE_PLAT_FEATURE_CUSTOMIZE */
546#endif // #if defined(_PRE_PRODUCT_ID_HOST)
547
548
549#ifdef __cplusplus
550 #if __cplusplus
551 }
552 #endif
553#endif
554
555#endif // soc_customize_wifi.h
556
osal_u8 rsv[3]
Definition oal_net.h:2
osal_u8 oal_bool_enum_uint8
Definition oal_types_device_rom.h:45
int osal_s32
Definition osal_types.h:19
unsigned char osal_u8
Definition osal_types.h:11
osal_u8 osal_bool
Definition osal_types.h:27
signed char osal_s8
Definition osal_types.h:17
char osal_char
Definition osal_types.h:16
short osal_s16
Definition osal_types.h:18
void osal_void
Definition osal_types.h:29
unsigned int osal_u32
Definition osal_types.h:13
unsigned short osal_u16
Definition osal_types.h:12
Definition soc_customize_wifi.h:360
Definition soc_customize_wifi.h:369
int plat_tag
Definition soc_customize_wifi.h:371
regdomain_enum regdomain
Definition soc_customize_wifi.h:370
Definition soc_customize_wifi.h:374
Definition soc_customize_wifi.h:390
Definition soc_customize_wifi.h:384
osal_s16 s_pow_par2
Definition soc_customize_wifi.h:385
osal_s16 s_pow_par0
Definition soc_customize_wifi.h:387
osal_s16 s_pow_par1
Definition soc_customize_wifi.h:386
Definition soc_customize_wifi.h:436
Definition soc_customize_wifi.h:464
Definition soc_customize_wifi.h:455
Definition soc_customize_wifi.h:447
Definition soc_customize_wifi.h:460
Definition soc_customize_wifi.h:442
Definition soc_customize_wifi.h:379
Definition soc_customize_wifi.h:399
Definition hal_uart_v151_regs_def.h:38
uint8_t hwifi_get_apf_enable(void)
struct wlan_cus_pwr_fit_para_stru wlan_customize_pwr_fit_para_stru
osal_u16 hwifi_get_hmac_max_ap_num_etc(void)
osal_u8 hwifi_get_ampdu_tx_max_num(osal_void)
hwifi_dyn_2g_pwr_sngl_mode_enum
Definition soc_customize_wifi.h:153
@ HWIFI_CFG_DYN_PWR_CALI_2G_SNGL_MODE_BUTT
Definition soc_customize_wifi.h:158
@ HWIFI_CFG_DYN_PWR_CALI_2G_SNGL_MODE_OFDM40
Definition soc_customize_wifi.h:156
@ HWIFI_CFG_DYN_PWR_CALI_2G_SNGL_MODE_11B
Definition soc_customize_wifi.h:154
@ HWIFI_CFG_DYN_PWR_CALI_2G_SNGL_MODE_OFDM20
Definition soc_customize_wifi.h:155
@ HWIFI_CFG_DYN_PWR_CALI_2G_SNGL_MODE_CW
Definition soc_customize_wifi.h:157
osal_u16 hwifi_get_low_current_boot_mode_cali_data_mask(osal_u16 cali_data_mask, osal_u8 first_cali_done_flag)
osal_void hwifi_set_wow_enable(osal_u8 wow_enable)
#define SOC_CUSTOM_RF_FE_REF_POWER_NUM_2G
Definition soc_customize_wifi.h:144
#define SOC_CUSTOM_RF_FE_CURVE_NUM_LVL
Definition soc_customize_wifi.h:145
int hwifi_hcc_customize_h2d_data_cfg(void)
osal_u8 hwifi_get_amsdu_tx_active(osal_void)
void hwifi_set_self_healing_period_etc(uint32_t self_healing_period)
osal_void hwifi_set_ampdu_tx_max_num(osal_u8 num)
osal_void hwifi_set_data_sample(uint8_t data_sample)
wlan_cfg_init
Definition soc_customize_wifi.h:251
@ WLAN_CFG_INIT_RF_PWR_REF_RSSI_2G_C1_MULT4
Definition soc_customize_wifi.h:278
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND5
Definition soc_customize_wifi.h:271
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND7
Definition soc_customize_wifi.h:273
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_2G_BAND_START
Definition soc_customize_wifi.h:260
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_2G_BAND3
Definition soc_customize_wifi.h:263
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND4
Definition soc_customize_wifi.h:270
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND_END
Definition soc_customize_wifi.h:274
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND2
Definition soc_customize_wifi.h:268
@ WLAN_CFG_INIT_RF_PWR_REF_RSSI_5G_C0_MULT4
Definition soc_customize_wifi.h:279
@ WLAN_CFG_INIT_BUS_H2D_SCHED_COUNT
Definition soc_customize_wifi.h:256
@ WLAN_CFG_INIT_JUNCTION_TEMP_DIFF
Definition soc_customize_wifi.h:287
@ WLAN_CFG_INIT_USED_MEM_FOR_STOP
Definition soc_customize_wifi.h:254
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND_START
Definition soc_customize_wifi.h:266
@ WLAN_CFG_INIT_BUTT
Definition soc_customize_wifi.h:288
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_2G_BAND_END
Definition soc_customize_wifi.h:264
@ WLAN_CFG_INIT_DELTA_CCA_ED_HIGH_40TH_2G
Definition soc_customize_wifi.h:283
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_2G_BAND1
Definition soc_customize_wifi.h:261
@ WLAN_CFG_INIT_DELTA_CCA_ED_HIGH_40TH_5G
Definition soc_customize_wifi.h:285
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND3
Definition soc_customize_wifi.h:269
@ WLAN_CFG_INIT_BUS_D2H_SCHED_COUNT
Definition soc_customize_wifi.h:255
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND1
Definition soc_customize_wifi.h:267
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_5G_BAND6
Definition soc_customize_wifi.h:272
@ WLAN_CFG_INIT_DELTA_CCA_ED_HIGH_20TH_2G
Definition soc_customize_wifi.h:282
@ WLAN_CFG_INIT_RF_RX_INSERTION_LOSS_2G_BAND2
Definition soc_customize_wifi.h:262
@ WLAN_CFG_INIT_RX_RESTORE_THRES
Definition soc_customize_wifi.h:258
@ WLAN_CFG_INIT_RF_PWR_REF_RSSI_2G_C0_MULT4
Definition soc_customize_wifi.h:277
@ WLAN_CFG_INIT_RF_PWR_REF_RSSI_5G_C1_MULT4
Definition soc_customize_wifi.h:280
@ WLAN_CFG_INIT_USED_MEM_FOR_START
Definition soc_customize_wifi.h:253
@ WLAN_CFG_INIT_DELTA_CCA_ED_HIGH_20TH_5G
Definition soc_customize_wifi.h:284
osal_void hwifi_set_amsdu_tx_active(osal_u8 active)
low_current_boot_mode
Definition soc_customize_wifi.h:351
@ LOW_CURRENT_BOOT_MODE_DEFAULT
Definition soc_customize_wifi.h:352
@ LOW_CURRENT_BOOT_MODE_WITHOUT_PWR_CALI
Definition soc_customize_wifi.h:353
@ LOW_CURRENT_BOOT_MODE_WITHOUT_CALI
Definition soc_customize_wifi.h:355
@ LOW_CURRENT_BOOT_MODE_WITH_ONCE_PWR_CALI
Definition soc_customize_wifi.h:354
wlan_nvram_idx
Definition soc_customize_wifi.h:171
@ HWIFI_CFG_NV_WITXNVBWC0_NUMBER
Definition soc_customize_wifi.h:175
@ HWIFI_CFG_NV_WITXL2G5G1_NUMBER
Definition soc_customize_wifi.h:178
@ HWIFI_CFG_NV_MUFREQ_CCK_C1_NUMBER
Definition soc_customize_wifi.h:186
@ HWIFI_CFG_NV_WITXNVBWC1_NUMBER
Definition soc_customize_wifi.h:176
@ HWIFI_CFG_NV_MUFREQ_5G160_C1_NUMBER
Definition soc_customize_wifi.h:180
@ HWIFI_CFG_NV_MUFREQ_2G20_C0_NUMBER
Definition soc_customize_wifi.h:181
@ HWIFI_CFG_NV_MUFREQ_2G20_C1_NUMBER
Definition soc_customize_wifi.h:182
@ HWIFI_CFG_NV_WITXL2G5G0_NUMBER
Definition soc_customize_wifi.h:177
@ HWIFI_CFG_NV_WITXNVC1_NUMBER
Definition soc_customize_wifi.h:174
@ HWIFI_CFG_NV_MUFREQ_2G40_C0_NUMBER
Definition soc_customize_wifi.h:183
@ HWIFI_CFG_NV_WITXNVCCK_NUMBER
Definition soc_customize_wifi.h:173
@ HWIFI_CFG_NV_MUFREQ_CCK_C0_NUMBER
Definition soc_customize_wifi.h:185
@ HWIFI_CFG_NV_WINVRAM_NUMBER
Definition soc_customize_wifi.h:172
@ HWIFI_CFG_NV_MUFREQ_5G160_C0_NUMBER
Definition soc_customize_wifi.h:179
@ HWIFI_CFG_NV_MUFREQ_2G40_C1_NUMBER
Definition soc_customize_wifi.h:184
@ WLAN_CFG_INI_RF_FE_TYPE_BUTT
Definition soc_customize_wifi.h:297
@ WLAN_CFG_INI_RF_FE_TYPE_POWER_CALI
Definition soc_customize_wifi.h:295
@ WLAN_CFG_INI_RF_FE_TYPE_RSSI
Definition soc_customize_wifi.h:296
@ WLAN_CFG_INI_RF_FE_TYPE_POWER
Definition soc_customize_wifi.h:294
@ WLAN_CFG_INI_RF_FE_TYPE_PARAMS
Definition soc_customize_wifi.h:293
@ WLAN_CFG_INI_RF_FE_POWER_TARGET_2G_END
Definition soc_customize_wifi.h:310
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH8
Definition soc_customize_wifi.h:319
@ WLAN_CFG_INI_RF_FE_POWER_CURVE_2G_LOW_11B
Definition soc_customize_wifi.h:338
@ WLAN_CFG_INI_RF_FE_POWER_CURVE_2G_HIGH_OFDM40M
Definition soc_customize_wifi.h:337
@ WLAN_CFG_INI_RF_FE_POWER_CURVE_2G_END
Definition soc_customize_wifi.h:341
@ WLAN_CFG_INI_RF_FE_POWER_SAR_2G
Definition soc_customize_wifi.h:328
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH12
Definition soc_customize_wifi.h:323
@ WLAN_CFG_INI_RF_FE_POWER_TARGET_2G_11B
Definition soc_customize_wifi.h:306
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH9
Definition soc_customize_wifi.h:320
@ WLAN_CFG_INI_RF_FE_CURVE_FACTOR_2G_LOW
Definition soc_customize_wifi.h:344
@ WLAN_CFG_INI_RF_FE_POWER_CUSTOMIZE_BEGIN
Definition soc_customize_wifi.h:302
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_BEGIN
Definition soc_customize_wifi.h:311
@ WLAN_CFG_INI_RF_FE_POWER_REF_2G_END
Definition soc_customize_wifi.h:333
@ WLAN_CFG_INI_RF_FE_POWER_TARGET_2G_40M
Definition soc_customize_wifi.h:309
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH11
Definition soc_customize_wifi.h:322
@ WLAN_CFG_INI_RF_FE_POWER_TARGET_2G_BEGIN
Definition soc_customize_wifi.h:305
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH7
Definition soc_customize_wifi.h:318
@ WLAN_CFG_INI_RF_FE_RX_INSERT_LOSS_2G
Definition soc_customize_wifi.h:301
@ WLAN_CFG_INI_RF_FE_POWER_CUSTOMIZE_END
Definition soc_customize_wifi.h:304
@ WLAN_CFG_INI_RF_FE_POWER_REF_2G_HIGH
Definition soc_customize_wifi.h:331
@ WLAN_CFG_INI_RF_FE_POWER_SAR_2G_END
Definition soc_customize_wifi.h:329
@ WLAN_CFG_INI_RF_FE_POWER_TARGET_2G_11G
Definition soc_customize_wifi.h:307
@ WLAN_CFG_INI_RF_FE_CURVE_FACTOR_2G_END
Definition soc_customize_wifi.h:345
@ WLAN_CFG_INI_RF_FE_POWER_REF_2G_LOW
Definition soc_customize_wifi.h:332
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH10
Definition soc_customize_wifi.h:321
@ WLAN_CFG_INI_RF_FE_RX_RSSI_COMP_2G
Definition soc_customize_wifi.h:347
@ WLAN_CFG_INI_RF_FE_POWER_CURVE_2G_HIGH_OFDM20M
Definition soc_customize_wifi.h:336
@ WLAN_CFG_INI_RF_FE_POWER_CURVE_2G_LOW_OFDM40M
Definition soc_customize_wifi.h:340
@ WLAN_CFG_INI_RF_FE_POWER_TARGET_2G_20M
Definition soc_customize_wifi.h:308
@ WLAN_CFG_INI_RF_FE_BUTT
Definition soc_customize_wifi.h:349
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH13
Definition soc_customize_wifi.h:324
@ WLAN_CFG_INI_RF_FE_POWER_CURVE_2G_BEGIN
Definition soc_customize_wifi.h:334
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH5
Definition soc_customize_wifi.h:316
@ WLAN_CFG_INI_RF_FE_POWER_CURVE_2G_HIGH_11B
Definition soc_customize_wifi.h:335
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH3
Definition soc_customize_wifi.h:314
@ WLAN_CFG_INI_RF_FE_POWER_REF_2G_BEGIN
Definition soc_customize_wifi.h:330
@ WLAN_CFG_INI_RF_FE_POWER_CHIP_MAX_2G
Definition soc_customize_wifi.h:303
@ WLAN_CFG_INI_RF_FE_POWER_SAR_2G_BEGIN
Definition soc_customize_wifi.h:327
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH14
Definition soc_customize_wifi.h:325
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH4
Definition soc_customize_wifi.h:315
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH2
Definition soc_customize_wifi.h:313
@ WLAN_CFG_INI_RF_FE_CURVE_FACTOR_2G_BEGIN
Definition soc_customize_wifi.h:342
@ WLAN_CFG_INI_RF_FE_RX_RSSI_COMP_2G_BEGIN
Definition soc_customize_wifi.h:346
@ WLAN_CFG_INI_RF_FE_RX_RSSI_COMP_2G_END
Definition soc_customize_wifi.h:348
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_END
Definition soc_customize_wifi.h:326
@ WLAN_CFG_INI_RF_FE_CURVE_FACTOR_2G_HIGH
Definition soc_customize_wifi.h:343
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH6
Definition soc_customize_wifi.h:317
@ WLAN_CFG_INI_RF_FE_POWER_LIMIT_2G_CH1
Definition soc_customize_wifi.h:312
@ WLAN_CFG_INI_RF_FE_POWER_CURVE_2G_LOW_OFDM20M
Definition soc_customize_wifi.h:339
#define CUS_PARAMS_LEN_MAX
Definition soc_customize_wifi.h:72
uint32_t hwifi_get_self_healing_enable_etc(void)
uint32_t hwifi_get_self_healing_cnt_etc(void)
#define COUNTRY_CODE_LEN
Definition soc_customize_wifi.h:59
void hwifi_set_self_healing_cnt_etc(uint32_t self_healing_cnt)
osal_s32 hwifi_is_regdomain_changed_etc(const osal_u8 *old_country_code, const osal_u8 *new_country_code)
void hwifi_set_smooth_phase_en(uint8_t smooth_phase_en)
osal_void hwifi_set_wow_event(osal_u32 wow_event)
wlan_cust_rf_fe_params * hwifi_get_rf_fe_custom_ini(osal_void)
osal_void hwifi_set_country_code_etc(osal_s8 *country_code, const osal_u32 len)
void * hwifi_wlan_customize_etc(void)
osal_s32 hwifi_get_init_value_etc(osal_s32 cus_tag, osal_s32 cfg_id)
uint8_t hwifi_get_ext_coex_en(void)
osal_void hwifi_set_nvram_tag_by_region_index(osal_s8 region_idx)
osal_void hwifi_set_ampdu_amsdu_tx_active(osal_u8 active)
osal_u8 wlan_cfg_priv_id_uint8
Definition soc_customize_wifi.h:248
int hwifi_hcc_h2d_priv_customize(void)
osal_u8 hwifi_get_ampdu_rx_max_num(osal_void)
#define SOC_CUSTOM_RF_FE_LIMIT_POWER_NUM_2G
Definition soc_customize_wifi.h:140
osal_u8 hwifi_get_wow_enable(osal_void)
regdomain_enum hwifi_get_regdomain_from_country_code(const unsigned char *country_code)
regdomain_enum
Definition soc_customize_wifi.h:189
@ REGDOMAIN_JAPAN
Definition soc_customize_wifi.h:192
@ REGDOMAIN_ETSI
Definition soc_customize_wifi.h:191
@ REGDOMAIN_COUNT
Definition soc_customize_wifi.h:195
@ REGDOMAIN_FCC
Definition soc_customize_wifi.h:190
@ REGDOMAIN_COMMON
Definition soc_customize_wifi.h:193
osal_u8 hwifi_get_amsdu_num(osal_void)
#define SOC_CUSTOM_RF_FE_SAR_POWER_NUM_2G
Definition soc_customize_wifi.h:141
osal_s8 * hwifi_get_country_code_etc(void)
osal_void hwifi_set_ampdu_tx_baw_size(osal_u8 num)
osal_u8 hwifi_get_ampdu_tx_baw_size(osal_void)
uint8_t hwifi_get_data_sample(void)
#define SOC_CUSTOM_RF_FE_CURVE_NUM_2G
Definition soc_customize_wifi.h:146
#define SOC_CUSTOM_RF_FE_MAX_POWER_NUM_2G
Definition soc_customize_wifi.h:138
osal_u32 hwifi_get_wow_event(osal_void)
osal_s32 hwifi_get_init_priv_value(osal_s32 l_cfg_id, osal_s32 *pl_priv_value)
#define SOC_CUSTOM_RF_FE_POWER_NUM_RSV
Definition soc_customize_wifi.h:143
osal_void hwifi_set_amsdu_num(osal_u8 amsdu_num)
osal_void hwifi_set_ampdu_rx_max_num(osal_u8 num)
osal_void hwifi_set_hmac_max_ap_num_etc(osal_u16 max_ap_num)
#define SOC_CUSTOM_RF_FE_RSSI_COMP_NUM_2G
Definition soc_customize_wifi.h:148
osal_s8 hwifi_get_region(const osal_s8 *country_code)
wlan_cfg_priv
Definition soc_customize_wifi.h:199
@ WLAN_CFG_PRIV_BUTT
Definition soc_customize_wifi.h:246
@ WLAN_CFG_PRIV_DBAC_STA_GC_SLOT_RATIO
Definition soc_customize_wifi.h:219
@ WLAN_CFG_PRIV_MU_BFER
Definition soc_customize_wifi.h:207
@ WLAN_CFG_PRIV_MTID_AGGR_RX
Definition soc_customize_wifi.h:215
@ WLAN_CFG_PRIV_DBAC_STA_GO_SLOT_RATIO
Definition soc_customize_wifi.h:220
@ WLAN_CFG_PRIV_SELF_HEALING_PERIOD
Definition soc_customize_wifi.h:217
@ WLAN_CFG_PRIV_TPC_FAR_RSSI
Definition soc_customize_wifi.h:221
@ WLAN_CFG_PRIV_CALI_MASK
Definition soc_customize_wifi.h:201
@ WLAN_CFG_INIT_AMPDU_RX_MAX_NUM
Definition soc_customize_wifi.h:226
@ WLAN_CFG_PRIV_SU_BFER
Definition soc_customize_wifi.h:205
@ WLAN_CFG_PRIV_APF_ENABLE
Definition soc_customize_wifi.h:232
@ WLAN_CFG_PRIV_BA_32BIT_BITMAP
Definition soc_customize_wifi.h:214
@ WLAN_CFG_PRIV_MU_BFEE
Definition soc_customize_wifi.h:208
@ WLAN_CFG_PRIV_OVER_DS_EN
Definition soc_customize_wifi.h:239
@ WLAN_CFG_PRIV_ROAM_TRIGGER_RSSI_2G
Definition soc_customize_wifi.h:237
@ WLAN_CFG_PRIV_DATA_SAMPLE
Definition soc_customize_wifi.h:228
@ WLAN_CFG_PRIV_RX_STBC
Definition soc_customize_wifi.h:235
@ WLAN_CFG_PRIV_SU_BFEE
Definition soc_customize_wifi.h:206
@ WLAN_CFG_INIT_AMPDU_TX_MAX_NUM
Definition soc_customize_wifi.h:225
@ WLAN_CFG_PRIV_CALI_AUTOCALI_MASK
Definition soc_customize_wifi.h:203
@ WLAN_CFG_PRIV_WOW_EVENT
Definition soc_customize_wifi.h:233
@ WLAN_CFG_PRIV_AMPDU_AMSDU_TX_ON
Definition soc_customize_wifi.h:224
@ WLAN_CFG_PRIV_AMSDU_TX_ON
Definition soc_customize_wifi.h:223
@ WLAN_CFG_PRIV_ROAM_DELTA_RSSI_2G
Definition soc_customize_wifi.h:238
@ WLAN_CFG_PRIV_TXDATA_QUE_LIMIT
Definition soc_customize_wifi.h:244
@ WLAN_CFG_INIT_AMPDU_TX_BAW_SIZE
Definition soc_customize_wifi.h:227
@ WLAN_CFG_PRIV_AMSDU_NUM
Definition soc_customize_wifi.h:222
@ WLAN_CFG_PRIV_SCAN_PROBE_REQ_DEL_WPS_IE
Definition soc_customize_wifi.h:212
@ WLAN_CFG_PRIV_HMAC_MAX_AP_NUM
Definition soc_customize_wifi.h:210
@ WLAN_CFG_PRIV_BW_MAX_WITH
Definition soc_customize_wifi.h:204
@ WLAN_CFG_PRIV_FRONT_SWITCH
Definition soc_customize_wifi.h:243
@ WLAN_CFG_PRIV_BANDWIDTH_EXTENDED_RANGE
Definition soc_customize_wifi.h:231
@ WLAN_CFG_PRIV_SCAN_PROBE_REQ_ALL_IE
Definition soc_customize_wifi.h:211
@ WLAN_CFG_PRIV_LDPC
Definition soc_customize_wifi.h:213
@ WLAN_CFG_PRIV_USER_NUM
Definition soc_customize_wifi.h:209
@ WLAN_CFG_PRIV_SELF_HEALING_ENABLE
Definition soc_customize_wifi.h:216
@ WLAN_CFG_PRIV_SELF_HEALING_CNT
Definition soc_customize_wifi.h:218
@ WLAN_CFG_PRIV_TCP_ACK_FILTER_EN
Definition soc_customize_wifi.h:241
@ WLAN_CFG_PRIV_DCM_CONSTELLATION_TX
Definition soc_customize_wifi.h:230
@ WLAN_CFG_PRIV_CALI_DATA_MASK
Definition soc_customize_wifi.h:202
@ WLAN_CFG_PRIV_SMOOTH_PHASE_EN
Definition soc_customize_wifi.h:234
@ WLAN_CFG_PRIV_TCP_ACK_MAX_NUM_START_PROCESS
Definition soc_customize_wifi.h:242
@ WLAN_CFG_PRIV_WOW_ENABLE
Definition soc_customize_wifi.h:236
@ WLAN_CFG_PRIV_ER_SU_DISABLE
Definition soc_customize_wifi.h:229
#define SOC_CUSTOM_RF_FE_FACTOR_NUM_2G
Definition soc_customize_wifi.h:147
void hwifi_set_self_healing_enable_etc(uint32_t self_healing_enable)
struct regdomain_plat_tag_map regdomain_plat_tag_map_stru
osal_s32 hwifi_get_mac_addr_etc(osal_u8 *buf)
uint32_t hwifi_get_self_healing_period_etc(void)
osal_u8 hwifi_get_ampdu_amsdu_tx_active(osal_void)
#define SOC_CUSTOM_RF_FE_RX_LOSS_NUM_RSV
Definition soc_customize_wifi.h:137
#define SOC_CUSTOM_RF_FE_TARGET_POWER_NUM_2G
Definition soc_customize_wifi.h:139
osal_s32 hwifi_config_init_etc(osal_s32 cus_tag)
void hwifi_set_apf_enable(uint8_t apf_enable)
uint8_t hwifi_get_smooth_phase_en(void)
#define SOC_CUSTOM_RF_FE_RX_LOSS_NUM_2G
Definition soc_customize_wifi.h:135
#define SOC_CUSTOM_RF_FE_CTA_COEF_SWITCH_2G
Definition soc_customize_wifi.h:142