wlan_mlme_public_struct.h 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. /*
  2. * Copyright (c) 2018 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /*
  19. * DOC: contains mlme structure definations
  20. */
  21. #ifndef _WLAN_MLME_STRUCT_H_
  22. #define _WLAN_MLME_STRUCT_H_
  23. #include <wlan_cmn.h>
  24. #define CFG_PMKID_MODES_OKC (0x1)
  25. #define CFG_PMKID_MODES_PMKSA_CACHING (0x2)
  26. #define CFG_STR_DATA_LEN 17
  27. #define CFG_EDCA_DATA_LEN 17
  28. /**
  29. * struct mlme_cfg_str - generic structure for all mlme CFG string items
  30. *
  31. * @max_len: maximum data length allowed
  32. * @len: valid no. of elements of the data
  33. * @data: uint8_t array to store values
  34. */
  35. struct mlme_cfg_str {
  36. qdf_size_t max_len;
  37. qdf_size_t len;
  38. uint8_t data[CFG_STR_DATA_LEN];
  39. };
  40. /**
  41. * enum e_edca_type - to index edca params for edca profile
  42. * EDCA profile AC unicast/bcast
  43. * @edca_ani_acbe_local: ani BE unicast
  44. * @edca_ani_acbk_local: ani BK unicast
  45. * @edca_ani_acvi_local: ani VI unicast
  46. * @edca_ani_acvo_local: ani VO unicast
  47. * @edca_ani_acbe_bcast: ani BE bcast
  48. * @edca_ani_acbk_bcast: ani BK bcast
  49. * @edca_ani_acvi_bcast: ani VI bcast
  50. * @edca_ani_acvo_bcast: ani VO bcast
  51. * @edca_wme_acbe_local: wme BE unicast
  52. * @edca_wme_acbk_local: wme BK unicast
  53. * @edca_wme_acvi_local: wme VI unicast
  54. * @edca_wme_acvo_local: wme VO unicast
  55. * @edca_wme_acbe_bcast: wme BE bcast
  56. * @edca_wme_acbk_bcast: wme BK bcast
  57. * @edca_wme_acvi_bcast: wme VI bcast
  58. * @edca_wme_acvo_bcast: wme VO bcast
  59. * @edca_etsi_acbe_local: etsi BE unicast
  60. * @edca_etsi_acbk_local: etsi BK unicast
  61. * @edca_etsi_acvi_local: etsi VI unicast
  62. * @edca_etsi_acvo_local: etsi VO unicast
  63. * @edca_etsi_acbe_bcast: etsi BE bcast
  64. * @edca_etsi_acbk_bcast: etsi BK bcast
  65. * @edca_etsi_acvi_bcast: etsi VI bcast
  66. * @edca_etsi_acvo_bcast: etsi VO bcast
  67. */
  68. enum e_edca_type {
  69. edca_ani_acbe_local,
  70. edca_ani_acbk_local,
  71. edca_ani_acvi_local,
  72. edca_ani_acvo_local,
  73. edca_ani_acbe_bcast,
  74. edca_ani_acbk_bcast,
  75. edca_ani_acvi_bcast,
  76. edca_ani_acvo_bcast,
  77. edca_wme_acbe_local,
  78. edca_wme_acbk_local,
  79. edca_wme_acvi_local,
  80. edca_wme_acvo_local,
  81. edca_wme_acbe_bcast,
  82. edca_wme_acbk_bcast,
  83. edca_wme_acvi_bcast,
  84. edca_wme_acvo_bcast,
  85. edca_etsi_acbe_local,
  86. edca_etsi_acbk_local,
  87. edca_etsi_acvi_local,
  88. edca_etsi_acvo_local,
  89. edca_etsi_acbe_bcast,
  90. edca_etsi_acbk_bcast,
  91. edca_etsi_acvi_bcast,
  92. edca_etsi_acvo_bcast
  93. };
  94. #define CFG_EDCA_PROFILE_ACM_IDX 0
  95. #define CFG_EDCA_PROFILE_AIFSN_IDX 1
  96. #define CFG_EDCA_PROFILE_CWMINA_IDX 2
  97. #define CFG_EDCA_PROFILE_CWMAXA_IDX 4
  98. #define CFG_EDCA_PROFILE_TXOPA_IDX 6
  99. #define CFG_EDCA_PROFILE_CWMINB_IDX 7
  100. #define CFG_EDCA_PROFILE_CWMAXB_IDX 9
  101. #define CFG_EDCA_PROFILE_TXOPB_IDX 11
  102. #define CFG_EDCA_PROFILE_CWMING_IDX 12
  103. #define CFG_EDCA_PROFILE_CWMAXG_IDX 14
  104. #define CFG_EDCA_PROFILE_TXOPG_IDX 16
  105. /**
  106. * struct mlme_edca_params - EDCA pramaters related config items
  107. *
  108. * @ani_acbk_l: EDCA parameters for ANI local access category background
  109. * @ani_acbe_l: EDCA parameters for ANI local access category best effort
  110. * @ani_acvi_l: EDCA parameters for ANI local access category video
  111. * @ani_acvo_l: EDCA parameters for ANI local access category voice
  112. * @ani_acbk_b: EDCA parameters for ANI bcast access category background
  113. * @ani_acbe_b: EDCA parameters for ANI bcast access category best effort
  114. * @ani_acvi_b: EDCA parameters for ANI bcast access category video
  115. * @ani_acvo_b: EDCA parameters for ANI bcast access category voice
  116. * @wme_acbk_l: EDCA parameters for WME local access category background
  117. * @wme_acbe_l: EDCA parameters for WME local access category best effort
  118. * @wme_acvi_l: EDCA parameters for WME local access category video
  119. * @wme_acvo_l: EDCA parameters for WME local access category voice
  120. * @wme_acbk_b: EDCA parameters for WME bcast access category background
  121. * @wme_acbe_b: EDCA parameters for WME bcast access category best effort
  122. * @wme_acvi_b: EDCA parameters for WME bcast access category video
  123. * @wme_acvo_b: EDCA parameters for WME bcast access category voice
  124. * @etsi_acbk_l: EDCA parameters for ETSI local access category background
  125. * @etsi_acbe_l: EDCA parameters for ETSI local access category best effort
  126. * @etsi_acvi_l: EDCA parameters for ETSI local access category video
  127. * @etsi_acvo_l: EDCA parameters for ETSI local access category voice
  128. * @etsi_acbk_b: EDCA parameters for ETSI bcast access category background
  129. * @etsi_acbe_b: EDCA parameters for ETSI bcast access category best effort
  130. * @etsi_acvi_b: EDCA parameters for ETSI bcast access category video
  131. * @etsi_acvo_b: EDCA parameters for ETSI bcast access category voice
  132. */
  133. struct wlan_mlme_edca_params {
  134. struct mlme_cfg_str ani_acbk_l;
  135. struct mlme_cfg_str ani_acbe_l;
  136. struct mlme_cfg_str ani_acvi_l;
  137. struct mlme_cfg_str ani_acvo_l;
  138. struct mlme_cfg_str ani_acbk_b;
  139. struct mlme_cfg_str ani_acbe_b;
  140. struct mlme_cfg_str ani_acvi_b;
  141. struct mlme_cfg_str ani_acvo_b;
  142. struct mlme_cfg_str wme_acbk_l;
  143. struct mlme_cfg_str wme_acbe_l;
  144. struct mlme_cfg_str wme_acvi_l;
  145. struct mlme_cfg_str wme_acvo_l;
  146. struct mlme_cfg_str wme_acbk_b;
  147. struct mlme_cfg_str wme_acbe_b;
  148. struct mlme_cfg_str wme_acvi_b;
  149. struct mlme_cfg_str wme_acvo_b;
  150. struct mlme_cfg_str etsi_acbk_l;
  151. struct mlme_cfg_str etsi_acbe_l;
  152. struct mlme_cfg_str etsi_acvi_l;
  153. struct mlme_cfg_str etsi_acvo_l;
  154. struct mlme_cfg_str etsi_acbk_b;
  155. struct mlme_cfg_str etsi_acbe_b;
  156. struct mlme_cfg_str etsi_acvi_b;
  157. struct mlme_cfg_str etsi_acvo_b;
  158. };
  159. #define WLAN_CFG_MFR_NAME_LEN (63)
  160. #define WLAN_CFG_MODEL_NUMBER_LEN (31)
  161. #define WLAN_CFG_MODEL_NAME_LEN (31)
  162. #define WLAN_CFG_MFR_PRODUCT_NAME_LEN (31)
  163. #define WLAN_CFG_MFR_PRODUCT_VERSION_LEN (31)
  164. /**
  165. * struct mlme_ht_capabilities_info - HT Capabilities Info
  166. * @l_sig_tx_op_protection: L-SIG TXOP Protection Mechanism support
  167. * @stbc_control_frame: STBC Control frame support
  168. * @psmp: PSMP Support
  169. * @dsss_cck_mode_40_mhz: To indicate use of DSSS/CCK in 40Mhz
  170. * @maximal_amsdu_size: Maximum AMSDU Size - 0:3839 octes, 1:7935 octets
  171. * @delayed_ba: Support of Delayed Block Ack
  172. * @rx_stbc: Rx STBC Support - 0:Not Supported, 1: 1SS, 2: 1,2SS, 3: 1,2,3SS
  173. * @tx_stbc: Tx STBC Support
  174. * @short_gi_40_mhz: Short GI Support for HT40
  175. * @short_gi_20_mhz: Short GI support for HT20
  176. * @green_field: Support for HT Greenfield PPDUs
  177. * @mimo_power_save: SM Power Save Mode - 0:Static, 1:Dynamic, 3:Disabled, 2:Res
  178. * @supported_channel_width_set: Supported Chan Width - 0:20Mhz, 1:20Mhz & 40Mhz
  179. * @adv_coding_cap: Rx LDPC support
  180. */
  181. #ifndef ANI_LITTLE_BIT_ENDIAN
  182. struct mlme_ht_capabilities_info {
  183. uint16_t l_sig_tx_op_protection:1;
  184. uint16_t stbc_control_frame:1;
  185. uint16_t psmp:1;
  186. uint16_t dsss_cck_mode_40_mhz:1;
  187. uint16_t maximal_amsdu_size:1;
  188. uint16_t delayed_ba:1;
  189. uint16_t rx_stbc:2;
  190. uint16_t tx_stbc:1;
  191. uint16_t short_gi_40_mhz:1;
  192. uint16_t short_gi_20_mhz:1;
  193. uint16_t green_field:1;
  194. uint16_t mimo_power_save:2;
  195. uint16_t supported_channel_width_set:1;
  196. uint16_t adv_coding_cap:1;
  197. } qdf_packed;
  198. #else
  199. struct mlme_ht_capabilities_info {
  200. uint16_t adv_coding_cap:1;
  201. uint16_t supported_channel_width_set:1;
  202. uint16_t mimo_power_save:2;
  203. uint16_t green_field:1;
  204. uint16_t short_gi_20_mhz:1;
  205. uint16_t short_gi_40_mhz:1;
  206. uint16_t tx_stbc:1;
  207. uint16_t rx_stbc:2;
  208. uint16_t delayed_ba:1;
  209. uint16_t maximal_amsdu_size:1;
  210. uint16_t dsss_cck_mode_40_mhz:1;
  211. uint16_t psmp:1;
  212. uint16_t stbc_control_frame:1;
  213. uint16_t l_sig_tx_op_protection:1;
  214. } qdf_packed;
  215. #endif
  216. /**
  217. * struct wlan_mlme_ht_caps - HT Capabilities related config items
  218. * @ht_cap_info: HT capabilities Info Structure
  219. */
  220. struct wlan_mlme_ht_caps {
  221. struct mlme_ht_capabilities_info ht_cap_info;
  222. };
  223. /**
  224. * struct wlan_mlme_ - HT Capabilities related config items
  225. * @ht_cap_info: HT capabilities Info Structure
  226. */
  227. struct wlan_mlme_cfg_sap {
  228. uint8_t cfg_ssid[32];
  229. uint16_t beacon_interval;
  230. uint16_t dtim_interval;
  231. uint16_t listen_interval;
  232. bool sap_11g_policy;
  233. uint8_t assoc_sta_limit;
  234. bool enable_lte_coex;
  235. uint16_t rmc_action_period_freq;
  236. uint8_t rate_tx_mgmt;
  237. uint8_t rate_tx_mgmt_2g;
  238. uint8_t rate_tx_mgmt_5g;
  239. bool tele_bcn_wakeup_en;
  240. uint8_t tele_bcn_max_li;
  241. bool sap_get_peer_info;
  242. bool sap_allow_all_chan_param_name;
  243. uint8_t sap_max_no_peers;
  244. uint8_t sap_max_offload_peers;
  245. uint8_t sap_max_offload_reorder_buffs;
  246. uint8_t sap_ch_switch_beacon_cnt;
  247. bool sap_internal_restart;
  248. bool sap_ch_switch_mode;
  249. bool chan_switch_hostapd_rate_enabled_name;
  250. uint8_t reduced_beacon_interval;
  251. };
  252. /**
  253. * struct wlan_mlme_mbo - Multiband Operation related ini configs
  254. * @mbo_candidate_rssi_thres:
  255. * @mbo_current_rssi_thres:
  256. * @mbo_current_rssi_mcc_thres:
  257. * @mbo_candidate_rssi_btc_thres:
  258. */
  259. struct wlan_mlme_mbo {
  260. int8_t mbo_candidate_rssi_thres;
  261. int8_t mbo_current_rssi_thres;
  262. int8_t mbo_current_rssi_mcc_thres;
  263. int8_t mbo_candidate_rssi_btc_thres;
  264. };
  265. struct wlan_mlme_vht_caps {
  266. /* VHT related configs */
  267. };
  268. /**
  269. * struct wlan_mlme_qos - QOS TX/RX aggregation related CFG items
  270. * @tx_aggregation_size: TX aggr size in number of MPDUs
  271. * @tx_aggregation_size_be: No. of MPDUs for BE queue for TX aggr
  272. * @tx_aggregation_size_bk: No. of MPDUs for BK queue for TX aggr
  273. * @tx_aggregation_size_vi: No. of MPDUs for VI queue for TX aggr
  274. * @tx_aggregation_size_vo: No. of MPDUs for VO queue for TX aggr
  275. * @rx_aggregation_size: No. of MPDUs for RX aggr
  276. * @tx_aggr_sw_retry_threshold_be: Tx aggregation sw retry for BE
  277. * @tx_aggr_sw_retry_threshold_bk: Tx aggregation sw retry for BK
  278. * @tx_aggr_sw_retry_threshold_vi: Tx aggregation sw retry for VI
  279. * @tx_aggr_sw_retry_threshold_vo: Tx aggregation sw retry for VO
  280. * @sap_max_inactivity_override: Override updating ap_sta_inactivity from
  281. * hostapd.conf
  282. */
  283. struct wlan_mlme_qos {
  284. uint32_t tx_aggregation_size;
  285. uint32_t tx_aggregation_size_be;
  286. uint32_t tx_aggregation_size_bk;
  287. uint32_t tx_aggregation_size_vi;
  288. uint32_t tx_aggregation_size_vo;
  289. uint32_t rx_aggregation_size;
  290. uint32_t tx_aggr_sw_retry_threshold_be;
  291. uint32_t tx_aggr_sw_retry_threshold_bk;
  292. uint32_t tx_aggr_sw_retry_threshold_vi;
  293. uint32_t tx_aggr_sw_retry_threshold_vo;
  294. bool sap_max_inactivity_override;
  295. };
  296. #define MLME_HE_PPET_LEN 25
  297. /**
  298. * struct wlan_mlme_he_caps - HE Capabilities related config items
  299. */
  300. struct wlan_mlme_he_caps {
  301. uint8_t he_control;
  302. uint8_t he_twt_requestor;
  303. uint8_t he_twt_responder;
  304. uint8_t he_twt_fragmentation;
  305. uint8_t he_max_frag_msdu;
  306. uint8_t he_min_frag_size;
  307. uint8_t he_trig_pad;
  308. uint8_t he_mtid_aggr_rx;
  309. uint8_t he_link_adaptation;
  310. uint8_t he_all_ack;
  311. uint8_t he_trigd_rsp_scheduling;
  312. uint8_t he_buffer_status_rpt;
  313. uint8_t he_bcast_twt;
  314. uint8_t he_ba_32bit;
  315. uint8_t he_mu_cascading;
  316. uint8_t he_multi_tid;
  317. uint8_t he_dl_mu_ba;
  318. uint8_t he_omi;
  319. uint8_t he_ofdma_ra;
  320. uint8_t he_max_ampdu_len;
  321. uint8_t he_amsdu_frag;
  322. uint8_t he_flex_twt_sched;
  323. uint8_t he_rx_ctrl;
  324. uint8_t he_bsrp_ampdu_aggr;
  325. uint8_t he_qtp;
  326. uint8_t he_a_bqr;
  327. uint8_t he_sr_responder;
  328. uint8_t he_ndp_feedback_supp;
  329. uint8_t he_ops_supp;
  330. uint8_t he_amsdu_in_ampdu;
  331. uint8_t he_chan_width;
  332. uint8_t he_mtid_aggr_tx;
  333. uint8_t he_sub_ch_sel_tx;
  334. uint8_t he_ul_2x996_ru;
  335. uint8_t he_om_ctrl_ul_mu_dis_rx;
  336. uint8_t he_rx_pream_punc;
  337. uint8_t he_class_of_device;
  338. uint8_t he_ldpc;
  339. uint8_t he_ltf_ppdu;
  340. uint8_t he_midamble_rx_nsts;
  341. uint8_t he_ltf_ndp;
  342. uint8_t he_tx_stbc_lt80;
  343. uint8_t he_rx_stbc_lt80;
  344. uint8_t he_doppler;
  345. uint8_t he_ul_mumimo;
  346. uint8_t he_dcm_tx;
  347. uint8_t he_dcm_rx;
  348. uint8_t he_mu_ppdu;
  349. uint8_t he_su_beamformer;
  350. uint8_t he_su_beamformee;
  351. uint8_t he_mu_beamformer;
  352. uint8_t he_bfee_sts_lt80;
  353. uint8_t he_bfee_sts_gt80;
  354. uint8_t he_num_sound_lt80;
  355. uint8_t he_num_sound_gt80;
  356. uint8_t he_su_feed_tone16;
  357. uint8_t he_mu_feed_tone16;
  358. uint8_t he_codebook_su;
  359. uint8_t he_codebook_mu;
  360. uint8_t he_bfrm_feed;
  361. uint8_t he_er_su_ppdu;
  362. uint8_t he_dl_part_bw;
  363. uint8_t he_ppet_present;
  364. uint8_t he_srp;
  365. uint8_t he_power_boost;
  366. uint8_t he_4x_ltf_gi;
  367. uint8_t he_max_nc;
  368. uint8_t he_rx_stbc_gt80;
  369. uint8_t he_tx_stbc_gt80;
  370. uint8_t he_er_4x_ltf_gi;
  371. uint8_t he_ppdu_20_in_40mhz_2g;
  372. uint8_t he_ppdu_20_in_160_80p80mhz;
  373. uint8_t he_ppdu_80_in_160_80p80mhz;
  374. uint8_t he_er_1x_he_ltf_gi;
  375. uint8_t he_midamble_rx_1x_he_ltf;
  376. uint8_t he_dcm_max_bw;
  377. uint8_t he_longer_16_sigb_ofdm_sym;
  378. uint8_t he_non_trig_cqi_feedback;
  379. uint8_t he_tx_1024_qam_lt_242_ru;
  380. uint8_t he_rx_1024_qam_lt_242_ru;
  381. uint8_t he_rx_full_bw_mu_cmpr_sigb;
  382. uint8_t he_rx_full_bw_mu_non_cmpr_sigb;
  383. uint32_t he_rx_mcs_map_lt_80;
  384. uint32_t he_tx_mcs_map_lt_80;
  385. uint32_t he_rx_mcs_map_160;
  386. uint32_t he_tx_mcs_map_160;
  387. uint32_t he_rx_mcs_map_80_80;
  388. uint32_t he_tx_mcs_map_80_80;
  389. uint8_t he_ppet_2g[MLME_HE_PPET_LEN];
  390. uint8_t he_ppet_5g[MLME_HE_PPET_LEN];
  391. uint32_t he_ops_basic_mcs_nss;
  392. uint8_t he_twt_dynamic_fragmentation;
  393. uint8_t enable_ul_mimo;
  394. uint8_t enable_ul_ofdm;
  395. uint32_t he_sta_obsspd;
  396. };
  397. /**
  398. * struct wlan_mlme_rates - RATES related config items
  399. * @cfpPeriod: cfp period info
  400. * @cfpMaxDuration: cfp Max duration info
  401. * @max_htmcs_txdata: max HT mcs info for Tx
  402. * @disable_abg_rate_txdata: disable abg rate info for tx data
  403. * @sap_max_mcs_txdata: sap max mcs info
  404. * @disable_high_ht_mcs_2x2: disable high mcs for 2x2 info
  405. */
  406. struct wlan_mlme_rates {
  407. uint8_t cfp_period;
  408. uint16_t cfp_max_duration;
  409. uint16_t max_htmcs_txdata;
  410. bool disable_abg_rate_txdata;
  411. uint16_t sap_max_mcs_txdata;
  412. uint8_t disable_high_ht_mcs_2x2;
  413. };
  414. /* Flags for gLimProtectionControl that is updated in pe session*/
  415. #define MLME_FORCE_POLICY_PROTECTION_DISABLE 0
  416. #define MLME_FORCE_POLICY_PROTECTION_CTS 1
  417. #define MLME_FORCE_POLICY_PROTECTION_RTS 2
  418. #define MLME_FORCE_POLICY_PROTECTION_DUAL_CTS 3
  419. #define MLME_FORCE_POLICY_PROTECTION_RTS_ALWAYS 4
  420. #define MLME_FORCE_POLICY_PROTECTION_AUTO 5
  421. /* protection_enabled bits*/
  422. #define MLME_PROTECTION_ENABLED_FROM_llA 0
  423. #define MLME_PROTECTION_ENABLED_FROM_llB 1
  424. #define MLME_PROTECTION_ENABLED_FROM_llG 2
  425. #define MLME_PROTECTION_ENABLED_HT_20 3
  426. #define MLME_PROTECTION_ENABLED_NON_GF 4
  427. #define MLME_PROTECTION_ENABLED_LSIG_TXOP 5
  428. #define MLME_PROTECTION_ENABLED_RIFS 6
  429. #define MLME_PROTECTION_ENABLED_OBSS 7
  430. #define MLME_PROTECTION_ENABLED_OLBC_FROM_llA 8
  431. #define MLME_PROTECTION_ENABLED_OLBC_FROM_llB 9
  432. #define MLME_PROTECTION_ENABLED_OLBC_FROM_llG 10
  433. #define MLME_PROTECTION_ENABLED_OLBC_HT20 11
  434. #define MLME_PROTECTION_ENABLED_OLBC_NON_GF 12
  435. #define MLME_PROTECTION_ENABLED_OLBC_LSIG_TXOP 13
  436. #define MLME_PROTECTION_ENABLED_OLBC_RIFS 14
  437. #define MLME_PROTECTION_ENABLED_OLBC_OBSS 15
  438. /**
  439. * struct wlan_mlme_feature_flag - feature related information
  440. * @accept_short_slot_assoc: enable short sloc feature
  441. * @enable_hcf: enable HCF feature
  442. * @enable_rsn: enable RSN for connection
  443. * @enable_short_preamble_11g: enable short preamble for 11g
  444. * @channel_bonding_mode: channel bonding mode
  445. * @enable_block_ack: enable block ack feature
  446. * @enable_ampdu: Enable AMPDU feature
  447. */
  448. struct wlan_mlme_feature_flag {
  449. bool accept_short_slot_assoc;
  450. bool enable_hcf;
  451. bool enable_rsn;
  452. bool enable_short_preamble_11g;
  453. bool enable_short_slot_time_11g;
  454. uint32_t channel_bonding_mode;
  455. uint32_t enable_block_ack;
  456. bool enable_ampdu;
  457. };
  458. /*
  459. * struct wlan_mlme_sap_protection_cfg - SAP erp protection config items
  460. *
  461. * @protection_enabled: Force enable protection. static via cfg
  462. * @protection_force_policy: Protection force policy. Static via cfg
  463. * @ignore_peer_ht_opmode: Ignore the ht opmode of the peer. Dynamic via INI
  464. *
  465. */
  466. struct wlan_mlme_sap_protection {
  467. uint32_t protection_enabled;
  468. uint8_t protection_force_policy;
  469. bool ignore_peer_ht_opmode;
  470. };
  471. /*
  472. * struct wlan_mlme_chainmask - All chainmask related cfg items
  473. *
  474. * @txchainmask1x1: To set transmit chainmask
  475. * @rxchainmask1x1: To set rx chainmask
  476. * @tx_chain_mask_cck: Used to enable/disable Cck ChainMask
  477. * @tx_chain_mask_1ss: Enables/disables tx chain Mask1ss
  478. * @num_11b_tx_chains: Number of Tx Chains in 11b mode
  479. * @num_11ag_tx_chains: Number of Tx Chains in 11ag mode
  480. * @tx_chain_mask_2g: Tx chain mask for 2g
  481. * @rx_chain_mask_2g: Tx chain mask for 2g
  482. * @tx_chain_mask_5g: Tx chain mask for 5g
  483. * @rx_chain_mask_5g: Rx chain mask for 5g
  484. */
  485. struct wlan_mlme_chainmask {
  486. uint8_t txchainmask1x1;
  487. uint8_t rxchainmask1x1;
  488. bool tx_chain_mask_cck;
  489. uint8_t tx_chain_mask_1ss;
  490. uint16_t num_11b_tx_chains;
  491. uint16_t num_11ag_tx_chains;
  492. uint8_t tx_chain_mask_2g;
  493. uint8_t rx_chain_mask_2g;
  494. uint8_t tx_chain_mask_5g;
  495. uint8_t rx_chain_mask_5g;
  496. };
  497. /* struct wlan_mlme_generic - Generic CFG config items
  498. *
  499. * @rtt3_enabled: RTT3 enable or disable info
  500. * @pmf_sa_query_max_retries: PMF query max retries for SAP
  501. * @pmf_sa_query_retry_interval: PMF query retry interval for SAP
  502. *
  503. */
  504. struct wlan_mlme_generic {
  505. bool rtt3_enabled;
  506. uint8_t pmf_sa_query_max_retries;
  507. uint16_t pmf_sa_query_retry_interval;
  508. };
  509. /*
  510. * struct wlan_mlme_product_details_cfg - product details config items
  511. * @manufacturer_name: manufacture name
  512. * @model_number: model number
  513. * @model_name: model name
  514. * @manufacture_product_name: manufacture product name
  515. * @manufacture_product_version: manufacture product version
  516. */
  517. struct wlan_mlme_product_details_cfg {
  518. char manufacturer_name[WLAN_CFG_MFR_NAME_LEN + 1];
  519. char model_number[WLAN_CFG_MODEL_NUMBER_LEN + 1];
  520. char model_name[WLAN_CFG_MODEL_NAME_LEN + 1];
  521. char manufacture_product_name[WLAN_CFG_MFR_PRODUCT_NAME_LEN + 1];
  522. char manufacture_product_version[WLAN_CFG_MFR_PRODUCT_VERSION_LEN + 1];
  523. };
  524. /**
  525. * struct wlan_mlme_obss_ht40 - OBSS HT40 config items
  526. * @active_dwelltime: obss active dwelltime
  527. * @passive_dwelltime: obss passive dwelltime
  528. * @width_trigger_interval: obss trigger interval
  529. * @passive_per_channel: obss scan passive total duration per channel
  530. * @active_per_channel: obss scan active total duration per channel
  531. * @width_trans_delay: obss width transition delay
  532. * @scan_activity_threshold: obss scan activity threshold
  533. */
  534. struct wlan_mlme_obss_ht40 {
  535. uint32_t active_dwelltime;
  536. uint32_t passive_dwelltime;
  537. uint32_t width_trigger_interval;
  538. uint32_t passive_per_channel;
  539. uint32_t active_per_channel;
  540. uint32_t width_trans_delay;
  541. uint32_t scan_activity_threshold;
  542. };
  543. /**
  544. * enum dot11p_mode - The 802.11p mode of operation
  545. * @WLAN_HDD_11P_DISABLED: 802.11p mode is disabled
  546. * @WLAN_HDD_11P_STANDALONE: 802.11p-only operation
  547. * @WLAN_HDD_11P_CONCURRENT: 802.11p and WLAN operate concurrently
  548. */
  549. enum dot11p_mode {
  550. CFG_11P_DISABLED = 0,
  551. CFG_11P_STANDALONE,
  552. CFG_11P_CONCURRENT,
  553. };
  554. /**
  555. * struct wlan_mlme_sta_cfg - MLME STA configuration items
  556. * @sta_keep_alive_period: Sends NULL frame to AP period
  557. * @tgt_gtx_usr_cfg: Target gtx user config
  558. * @pmkid_modes: Enable PMKID modes
  559. * @wait_cnf_timeout: Wait assoc cnf timeout
  560. * @dot11p_mode: Set 802.11p mode
  561. * @fils_max_chan_guard_time: Set maximum channel guard time
  562. * @current_rssi: Current rssi
  563. * @ignore_peer_erp_info: Ignore peer infrormation
  564. * @sta_prefer_80mhz_over_160mhz: Set Sta preference to connect in 80HZ/160HZ
  565. * @enable_5g_ebt: Set default 5G early beacon termination
  566. * @deauth_before_connection: Send deauth before connection or not
  567. * @enable_go_cts2self_for_sta: Stop NOA and start using cts2self
  568. * @qcn_ie_support: QCN IE support
  569. * @force_rsne_override: Force rsnie override from user
  570. * @single_tid: Set replay counter for all TID
  571. */
  572. struct wlan_mlme_sta_cfg {
  573. uint32_t sta_keep_alive_period;
  574. uint32_t tgt_gtx_usr_cfg;
  575. uint32_t pmkid_modes;
  576. uint32_t wait_cnf_timeout;
  577. uint8_t dot11p_mode;
  578. uint8_t fils_max_chan_guard_time;
  579. uint8_t current_rssi;
  580. bool ignore_peer_erp_info;
  581. bool sta_prefer_80mhz_over_160mhz;
  582. bool enable_5g_ebt;
  583. bool deauth_before_connection;
  584. bool enable_go_cts2self_for_sta;
  585. bool qcn_ie_support;
  586. bool force_rsne_override;
  587. bool single_tid;
  588. };
  589. /*
  590. * @mawc_roam_enabled: Enable/Disable MAWC during roaming
  591. * @enable_fast_roam_in_concurrency:Enable LFR roaming on STA during concurrency
  592. * @lfr3_roaming_offload: Enable/disable roam offload feature
  593. * @early_stop_scan_enable: Set early stop scan
  594. * @lfr3_enable_subnet_detection: Enable LFR3 subnet detection
  595. * @enable_5g_band_pref: Enable preference for 5G from INI
  596. * @mawc_roam_traffic_threshold: Configure traffic threshold
  597. * @mawc_roam_ap_rssi_threshold: Best AP RSSI threshold
  598. * @mawc_roam_rssi_high_adjust: Adjust MAWC roam high RSSI
  599. * @mawc_roam_rssi_low_adjust: Adjust MAWC roam low RSSI
  600. * @roam_rssi_abs_threshold: The min RSSI of the candidate AP
  601. * @rssi_threshold_offset_5g: Lookup threshold offset for 5G band
  602. * @early_stop_scan_min_threshold: Set early stop scan min
  603. * @early_stop_scan_max_threshold: Set early stop scan max
  604. * @first_scan_bucket_threshold: Set first scan bucket
  605. * @roam_dense_traffic_threshold: Dense traffic threshold
  606. * @roam_dense_rssi_thre_offset: Sets dense roam RSSI threshold diff
  607. * @roam_dense_min_aps: Sets minimum number of AP for dense roam
  608. * @roam_bg_scan_bad_rssi_threshold:RSSI threshold for background roam
  609. * @roam_bg_scan_client_bitmap: Bitmap used to identify the scan clients
  610. * @roam_bg_scan_bad_rssi_offset_2g:RSSI threshold offset for 2G to 5G roam
  611. * @adaptive_roamscan_dwell_mode: Sets dwell time adaptive mode
  612. * @per_roam_enable: To enabled/disable PER based roaming in FW
  613. * @per_roam_config_high_rate_th: Rate at which PER based roam will stop
  614. * @per_roam_config_low_rate_th: Rate at which PER based roam will start
  615. * @per_roam_config_rate_th_percent:Percentage at which FW will issue roam scan
  616. * @per_roam_rest_time: FW will wait once it issues a roam scan.
  617. * @per_roam_monitor_time: Min time to be considered as valid scenario
  618. * @per_roam_min_candidate_rssi: Min roamable AP RSSI for candidate selection
  619. * @lfr3_disallow_duration: Disallow duration before roaming
  620. * @lfr3_rssi_channel_penalization: RSSI penalization
  621. * @lfr3_num_disallowed_aps: Max number of AP's to maintain in LCA list
  622. * @rssi_boost_threshold_5g: Boost threshold above which 5 GHz is favored
  623. * @rssi_boost_factor_5g: Factor by which 5GHz RSSI is boosted
  624. * @max_rssi_boost_5g: Maximum boost that can be applied to 5G RSSI
  625. * @rssi_penalize_threshold_5g: Penalize thres above which 5G isn't favored
  626. * @rssi_penalize_factor_5g: Factor by which 5GHz RSSI is penalizeed
  627. * @max_rssi_penalize_5g: Max penalty that can be applied to 5G RSSI
  628. * @max_num_pre_auth: Configure max number of pre-auth
  629. */
  630. struct wlan_mlme_lfr_cfg {
  631. bool mawc_roam_enabled;
  632. bool enable_fast_roam_in_concurrency;
  633. bool lfr3_roaming_offload;
  634. bool early_stop_scan_enable;
  635. bool lfr3_enable_subnet_detection;
  636. bool enable_5g_band_pref;
  637. uint32_t mawc_roam_traffic_threshold;
  638. uint32_t mawc_roam_ap_rssi_threshold;
  639. uint32_t mawc_roam_rssi_high_adjust;
  640. uint32_t mawc_roam_rssi_low_adjust;
  641. uint32_t roam_rssi_abs_threshold;
  642. uint8_t rssi_threshold_offset_5g;
  643. uint8_t early_stop_scan_min_threshold;
  644. uint8_t early_stop_scan_max_threshold;
  645. uint8_t first_scan_bucket_threshold;
  646. uint32_t roam_dense_traffic_threshold;
  647. uint32_t roam_dense_rssi_thre_offset;
  648. uint32_t roam_dense_min_aps;
  649. uint32_t roam_bg_scan_bad_rssi_threshold;
  650. uint32_t roam_bg_scan_client_bitmap;
  651. uint32_t roam_bg_scan_bad_rssi_offset_2g;
  652. uint32_t adaptive_roamscan_dwell_mode;
  653. uint32_t per_roam_enable;
  654. uint32_t per_roam_config_high_rate_th;
  655. uint32_t per_roam_config_low_rate_th;
  656. uint32_t per_roam_config_rate_th_percent;
  657. uint32_t per_roam_rest_time;
  658. uint32_t per_roam_monitor_time;
  659. uint32_t per_roam_min_candidate_rssi;
  660. uint32_t lfr3_disallow_duration;
  661. uint32_t lfr3_rssi_channel_penalization;
  662. uint32_t lfr3_num_disallowed_aps;
  663. uint32_t rssi_boost_threshold_5g;
  664. uint32_t rssi_boost_factor_5g;
  665. uint32_t max_rssi_boost_5g;
  666. uint32_t rssi_penalize_threshold_5g;
  667. uint32_t rssi_penalize_factor_5g;
  668. uint32_t max_rssi_penalize_5g;
  669. uint32_t max_num_pre_auth;
  670. };
  671. /**
  672. * struct wlan_mlme_weight_config - weight params to
  673. * calculate best candidate
  674. *
  675. * @rssi_weightage: RSSI weightage
  676. * @ht_caps_weightage: HT caps weightage
  677. * @vht_caps_weightage: VHT caps weightage
  678. * @he_caps_weightage: HE caps weightage
  679. * @chan_width_weightage: Channel width weightage
  680. * @chan_band_weightage: Channel band weightage
  681. * @nss_weightage: NSS weightage
  682. * @beamforming_cap_weightage: Beamforming caps weightage
  683. * @pcl_weightage: PCL weightage
  684. * @channel_congestion_weightage: channel congestion weightage
  685. * @oce_wan_weightage: OCE WAN metrics weightage
  686. */
  687. struct wlan_mlme_weight_config {
  688. uint8_t rssi_weightage;
  689. uint8_t ht_caps_weightage;
  690. uint8_t vht_caps_weightage;
  691. uint8_t he_caps_weightage;
  692. uint8_t chan_width_weightage;
  693. uint8_t chan_band_weightage;
  694. uint8_t nss_weightage;
  695. uint8_t beamforming_cap_weightage;
  696. uint8_t pcl_weightage;
  697. uint8_t channel_congestion_weightage;
  698. uint8_t oce_wan_weightage;
  699. };
  700. /**
  701. * struct wlan_mlme_rssi_cfg_score - RSSI params to
  702. * calculate best candidate
  703. *
  704. * @best_rssi_threshold: Best RSSI threshold
  705. * @good_rssi_threshold: Good RSSI threshold
  706. * @bad_rssi_threshold: Bad RSSI threshold
  707. * @good_rssi_pcnt: Good RSSI Percentage
  708. * @bad_rssi_pcnt: Bad RSSI Percentage
  709. * @good_rssi_bucket_size: Good RSSI Bucket Size
  710. * @bad_rssi_bucket_size: Bad RSSI Bucket Size
  711. * @rssi_pref_5g_rssi_thresh: Preffered 5G RSSI threshold
  712. */
  713. struct wlan_mlme_rssi_cfg_score {
  714. uint32_t best_rssi_threshold;
  715. uint32_t good_rssi_threshold;
  716. uint32_t bad_rssi_threshold;
  717. uint32_t good_rssi_pcnt;
  718. uint32_t bad_rssi_pcnt;
  719. uint32_t good_rssi_bucket_size;
  720. uint32_t bad_rssi_bucket_size;
  721. uint32_t rssi_pref_5g_rssi_thresh;
  722. };
  723. /**
  724. * struct wlan_mlme_per_slot_scoring - define % score for differents slots
  725. * for a scoring param.
  726. * num_slot: number of slots in which the param will be divided.
  727. * Max 15. index 0 is used for 'not_present. Num_slot will
  728. * equally divide 100. e.g, if num_slot = 4 slot 0 = 0-25%, slot
  729. * 1 = 26-50% slot 2 = 51-75%, slot 3 = 76-100%
  730. * score_pcnt3_to_0: Conatins score percentage for slot 0-3
  731. * BITS 0-7 :- the scoring pcnt when not present
  732. * BITS 8-15 :- SLOT_1
  733. * BITS 16-23 :- SLOT_2
  734. * BITS 24-31 :- SLOT_3
  735. * score_pcnt7_to_4: Conatins score percentage for slot 4-7
  736. * BITS 0-7 :- SLOT_4
  737. * BITS 8-15 :- SLOT_5
  738. * BITS 16-23 :- SLOT_6
  739. * BITS 24-31 :- SLOT_7
  740. * score_pcnt11_to_8: Conatins score percentage for slot 8-11
  741. * BITS 0-7 :- SLOT_8
  742. * BITS 8-15 :- SLOT_9
  743. * BITS 16-23 :- SLOT_10
  744. * BITS 24-31 :- SLOT_11
  745. * score_pcnt15_to_12: Conatins score percentage for slot 12-15
  746. * BITS 0-7 :- SLOT_12
  747. * BITS 8-15 :- SLOT_13
  748. * BITS 16-23 :- SLOT_14
  749. * BITS 24-31 :- SLOT_15
  750. */
  751. struct wlan_mlme_per_slot_scoring {
  752. uint32_t num_slot;
  753. uint32_t score_pcnt3_to_0;
  754. uint32_t score_pcnt7_to_4;
  755. uint32_t score_pcnt11_to_8;
  756. uint32_t score_pcnt15_to_12;
  757. };
  758. /*
  759. * struct wlan_mlme_score_config - MLME BSS Scoring related config
  760. * @enable_scoring_for_roam: Enable/disable BSS Scoring for Roaming
  761. * @weight_cfg: Various Weight related Scoring Configs
  762. * @rssi_score: RSSI Scoring related thresholds/percentages config
  763. * @esp_qbss_scoring: ESP QBSS Scoring configs
  764. * @oce_wan_scoring: OCE WAN Scoring Configs
  765. * @bandwidth_weight_per_index: Bandwidth weight per index for scoring logic
  766. * @nss_weight_per_index: NSS weight per index for scoring logic
  767. * @band_weight_per_index: Band weight per index for scoring logic
  768. */
  769. struct wlan_mlme_scoring_cfg {
  770. bool enable_scoring_for_roam;
  771. struct wlan_mlme_weight_config weight_cfg;
  772. struct wlan_mlme_rssi_cfg_score rssi_score;
  773. struct wlan_mlme_per_slot_scoring esp_qbss_scoring;
  774. struct wlan_mlme_per_slot_scoring oce_wan_scoring;
  775. uint32_t bandwidth_weight_per_index;
  776. uint32_t nss_weight_per_index;
  777. uint32_t band_weight_per_index;
  778. };
  779. /* struct wlan_mlme_threshold - Threshold related config items
  780. * @rts_threshold: set rts threshold
  781. * @frag_threshold: set fragmentation threshold
  782. */
  783. struct wlan_mlme_threshold {
  784. uint32_t rts_threshold;
  785. uint32_t frag_threshold;
  786. };
  787. /**
  788. * struct wlan_mlme_oce - OCE related config items
  789. * @enable_bcast_probe_rsp: enable broadcast probe response
  790. * @oce_sta_enabled: enable/disable oce feature for sta
  791. * @oce_sap_enabled: enable/disable oce feature for sap
  792. * @fils_enabled: enable/disable fils support
  793. * @feature_bitmap: oce feature bitmap
  794. *
  795. */
  796. struct wlan_mlme_oce {
  797. bool enable_bcast_probe_rsp;
  798. bool oce_sta_enabled;
  799. bool oce_sap_enabled;
  800. bool fils_enabled;
  801. uint8_t feature_bitmap;
  802. };
  803. #define MLME_WEP_MAX_KEY_LEN (13)
  804. /**
  805. * enum wep_key_id - values passed to get/set wep default keys
  806. * @MLME_WEP_DEFAULT_KEY_1: wep default key 1
  807. * @MLME_WEP_DEFAULT_KEY_2: wep default key 2
  808. * @MLME_WEP_DEFAULT_KEY_3: wep default key 3
  809. * @MLME_WEP_DEFAULT_KEY_4: wep default key 4
  810. */
  811. enum wep_key_id {
  812. MLME_WEP_DEFAULT_KEY_1 = 0,
  813. MLME_WEP_DEFAULT_KEY_2,
  814. MLME_WEP_DEFAULT_KEY_3,
  815. MLME_WEP_DEFAULT_KEY_4
  816. };
  817. /**
  818. * struct wlan_mlme_wep_cfg - WEP related configs
  819. * @is_privacy_enabled: Flag to check if encryption is enabled
  820. * @is_shared_key_auth: Flag to check if the auth type is shared key
  821. * @is_auth_open_system: Flag to check if the auth type is open
  822. * @auth_type: Authentication type value
  823. * @wep_default_key_id: Default WEP key id
  824. * @wep_default_key_1: WEP encryption key 1
  825. * @wep_default_key_2: WEP encryption key 2
  826. * @wep_default_key_3: WEP encryption key 3
  827. * @wep_default_key_4: WEP encryption key 4
  828. */
  829. struct wlan_mlme_wep_cfg {
  830. bool is_privacy_enabled;
  831. bool is_shared_key_auth;
  832. bool is_auth_open_system;
  833. uint8_t auth_type;
  834. uint8_t wep_default_key_id;
  835. struct mlme_cfg_str wep_default_key_1;
  836. struct mlme_cfg_str wep_default_key_2;
  837. struct mlme_cfg_str wep_default_key_3;
  838. struct mlme_cfg_str wep_default_key_4;
  839. };
  840. /**
  841. * struct wlan_mlme_cfg - MLME config items
  842. * @chainmask_cfg: VHT chainmask related cfg items
  843. * @ht_cfg: HT related CFG Items
  844. * @he_caps: HE related cfg items
  845. * @lfr: LFR related CFG Items
  846. * @obss_ht40:obss ht40 CFG Items
  847. * @vht_cfg: VHT related CFG Items
  848. * @rates: Rates related cfg items
  849. * @product_details: product details related CFG Items
  850. * @sap_protection_cfg: SAP erp protection related CFG items
  851. * @sta: sta CFG Items
  852. * @scoring: BSS Scoring related CFG Items
  853. * @threshold: threshold related cfg items
  854. * @feature_flags: Feature flag config items
  855. * @wep_params: WEP related config items
  856. */
  857. struct wlan_mlme_cfg {
  858. struct wlan_mlme_chainmask chainmask_cfg;
  859. struct wlan_mlme_edca_params edca_params;
  860. struct wlan_mlme_generic gen;
  861. struct wlan_mlme_ht_caps ht_caps;
  862. struct wlan_mlme_he_caps he_caps;
  863. struct wlan_mlme_lfr_cfg lfr;
  864. struct wlan_mlme_obss_ht40 obss_ht40;
  865. struct wlan_mlme_mbo mbo_cfg;
  866. struct wlan_mlme_vht_caps vht_caps;
  867. struct wlan_mlme_qos qos_mlme_params;
  868. struct wlan_mlme_rates rates;
  869. struct wlan_mlme_product_details_cfg product_details;
  870. struct wlan_mlme_sap_protection sap_protection_cfg;
  871. struct wlan_mlme_cfg_sap sap_cfg;
  872. struct wlan_mlme_sta_cfg sta;
  873. struct wlan_mlme_scoring_cfg scoring;
  874. struct wlan_mlme_oce oce;
  875. struct wlan_mlme_threshold threshold;
  876. struct wlan_mlme_feature_flag feature_flags;
  877. struct wlan_mlme_wep_cfg wep_params;
  878. };
  879. #endif