Merge tag 'JH7110_515_SDK_v4.0.0-rc1' into vf2-515-devel
[platform/kernel/linux-starfive.git] / drivers / net / wireless / eswin / ecrnx_mod_params.h
1 /**
2  ******************************************************************************
3  *
4  * @file ecrnx_mod_params.h
5  *
6  * @brief Declaration of module parameters
7  *
8  * Copyright (C) ESWIN 2015-2020
9  *
10  ******************************************************************************
11  */
12
13 #ifndef _ECRNX_MOD_PARAM_H_
14 #define _ECRNX_MOD_PARAM_H_
15
16 struct ecrnx_mod_params {
17     bool ht_on;
18     bool vht_on;
19     bool he_on;
20     int mcs_map;
21     int he_mcs_map;
22     bool he_ul_on;
23     bool ldpc_on;
24     bool stbc_on;
25     bool gf_rx_on;
26     int phy_cfg;
27     int uapsd_timeout;
28     bool ap_uapsd_on;
29     bool sgi;
30     bool sgi80;
31     bool use_2040;
32     bool use_80;
33     bool custregd;
34     bool custchan;
35     int nss;
36     int amsdu_rx_max;
37     bool bfmee;
38     bool bfmer;
39     bool mesh;
40     bool murx;
41     bool mutx;
42     bool mutx_on;
43     unsigned int roc_dur_max;
44     int listen_itv;
45     bool listen_bcmc;
46     int lp_clk_ppm;
47     bool ps_on;
48     int tx_lft;
49     int amsdu_maxnb;
50     int uapsd_queues;
51     bool tdls;
52     bool uf;
53     char *ftl;
54     bool dpsm;
55     int tx_to_bk;
56     int tx_to_be;
57     int tx_to_vi;
58     int tx_to_vo;
59 #ifdef CONFIG_ECRNX_SOFTMAC
60     bool mfp_on;
61     bool gf_on;
62     bool bwsig_on;
63     bool dynbw_on;
64     bool agg_tx;
65     int  amsdu_force;
66     bool rc_probes_on;
67     bool cmon;
68     bool hwscan;
69     bool autobcn;
70 #else
71     bool ant_div;
72 #endif /* CONFIG_ECRNX_SOFTMAC */
73 };
74
75 extern struct ecrnx_mod_params ecrnx_mod_params;
76
77 struct ecrnx_hw;
78 struct wiphy;
79 int ecrnx_handle_dynparams(struct ecrnx_hw *ecrnx_hw, struct wiphy *wiphy);
80 void ecrnx_custregd(struct ecrnx_hw *ecrnx_hw, struct wiphy *wiphy);
81 void ecrnx_enable_wapi(struct ecrnx_hw *ecrnx_hw);
82 void ecrnx_enable_mfp(struct ecrnx_hw *ecrnx_hw);
83 void ecrnx_enable_gcmp(struct ecrnx_hw *ecrnx_hw);
84 void ecrnx_adjust_amsdu_maxnb(struct ecrnx_hw *ecrnx_hw);
85
86 #endif /* _ECRNX_MOD_PARAM_H_ */