wlan_mlme_public_struct.h 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917
  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. #include <reg_services_public_struct.h>
  25. #include <wmi_unified_param.h>
  26. #include <sir_api.h>
  27. #define CFG_PMKID_MODES_OKC (0x1)
  28. #define CFG_PMKID_MODES_PMKSA_CACHING (0x2)
  29. #define CFG_VHT_BASIC_MCS_SET_STADEF 0xFFFE
  30. #define CFG_VHT_RX_MCS_MAP_STAMIN 0
  31. #define CFG_VHT_RX_MCS_MAP_STAMAX 0xFFFF
  32. #define CFG_VHT_RX_MCS_MAP_STADEF 0xFFFE
  33. #define CFG_VHT_TX_MCS_MAP_STAMIN 0
  34. #define CFG_VHT_TX_MCS_MAP_STAMAX 0xFFFF
  35. #define CFG_VHT_TX_MCS_MAP_STADEF 0xFFFE
  36. #define CFG_STR_DATA_LEN 17
  37. #define CFG_EDCA_DATA_LEN 17
  38. #define CFG_MAX_TX_POWER_2_4_LEN 128
  39. #define CFG_MAX_TX_POWER_5_LEN 128
  40. #define CFG_POWER_USAGE_MAX_LEN 4
  41. #define CFG_VALID_CHANNEL_LIST_LEN 100
  42. #define CFG_VALID_CHANNEL_LIST_STRING_LEN (CFG_VALID_CHANNEL_LIST_LEN * 4)
  43. /**
  44. * struct mlme_cfg_str - generic structure for all mlme CFG string items
  45. *
  46. * @max_len: maximum data length allowed
  47. * @len: valid no. of elements of the data
  48. * @data: uint8_t array to store values
  49. */
  50. struct mlme_cfg_str {
  51. qdf_size_t max_len;
  52. qdf_size_t len;
  53. uint8_t data[CFG_STR_DATA_LEN];
  54. };
  55. /**
  56. * enum e_edca_type - to index edca params for edca profile
  57. * EDCA profile AC unicast/bcast
  58. * @edca_ani_acbe_local: ani BE unicast
  59. * @edca_ani_acbk_local: ani BK unicast
  60. * @edca_ani_acvi_local: ani VI unicast
  61. * @edca_ani_acvo_local: ani VO unicast
  62. * @edca_ani_acbe_bcast: ani BE bcast
  63. * @edca_ani_acbk_bcast: ani BK bcast
  64. * @edca_ani_acvi_bcast: ani VI bcast
  65. * @edca_ani_acvo_bcast: ani VO bcast
  66. * @edca_wme_acbe_local: wme BE unicast
  67. * @edca_wme_acbk_local: wme BK unicast
  68. * @edca_wme_acvi_local: wme VI unicast
  69. * @edca_wme_acvo_local: wme VO unicast
  70. * @edca_wme_acbe_bcast: wme BE bcast
  71. * @edca_wme_acbk_bcast: wme BK bcast
  72. * @edca_wme_acvi_bcast: wme VI bcast
  73. * @edca_wme_acvo_bcast: wme VO bcast
  74. * @edca_etsi_acbe_local: etsi BE unicast
  75. * @edca_etsi_acbk_local: etsi BK unicast
  76. * @edca_etsi_acvi_local: etsi VI unicast
  77. * @edca_etsi_acvo_local: etsi VO unicast
  78. * @edca_etsi_acbe_bcast: etsi BE bcast
  79. * @edca_etsi_acbk_bcast: etsi BK bcast
  80. * @edca_etsi_acvi_bcast: etsi VI bcast
  81. * @edca_etsi_acvo_bcast: etsi VO bcast
  82. */
  83. enum e_edca_type {
  84. edca_ani_acbe_local,
  85. edca_ani_acbk_local,
  86. edca_ani_acvi_local,
  87. edca_ani_acvo_local,
  88. edca_ani_acbe_bcast,
  89. edca_ani_acbk_bcast,
  90. edca_ani_acvi_bcast,
  91. edca_ani_acvo_bcast,
  92. edca_wme_acbe_local,
  93. edca_wme_acbk_local,
  94. edca_wme_acvi_local,
  95. edca_wme_acvo_local,
  96. edca_wme_acbe_bcast,
  97. edca_wme_acbk_bcast,
  98. edca_wme_acvi_bcast,
  99. edca_wme_acvo_bcast,
  100. edca_etsi_acbe_local,
  101. edca_etsi_acbk_local,
  102. edca_etsi_acvi_local,
  103. edca_etsi_acvo_local,
  104. edca_etsi_acbe_bcast,
  105. edca_etsi_acbk_bcast,
  106. edca_etsi_acvi_bcast,
  107. edca_etsi_acvo_bcast
  108. };
  109. #define CFG_EDCA_PROFILE_ACM_IDX 0
  110. #define CFG_EDCA_PROFILE_AIFSN_IDX 1
  111. #define CFG_EDCA_PROFILE_CWMINA_IDX 2
  112. #define CFG_EDCA_PROFILE_CWMAXA_IDX 4
  113. #define CFG_EDCA_PROFILE_TXOPA_IDX 6
  114. #define CFG_EDCA_PROFILE_CWMINB_IDX 7
  115. #define CFG_EDCA_PROFILE_CWMAXB_IDX 9
  116. #define CFG_EDCA_PROFILE_TXOPB_IDX 11
  117. #define CFG_EDCA_PROFILE_CWMING_IDX 12
  118. #define CFG_EDCA_PROFILE_CWMAXG_IDX 14
  119. #define CFG_EDCA_PROFILE_TXOPG_IDX 16
  120. /**
  121. * struct mlme_edca_ac_vo - cwmin, cwmax and aifs value for edca_ac_vo
  122. *
  123. * @vo_cwmin: cwmin value for voice
  124. * @vo_cwmax: cwmax value for voice
  125. * @vo_aifs: aifs value for voice
  126. */
  127. struct mlme_edca_ac_vo {
  128. uint32_t vo_cwmin;
  129. uint32_t vo_cwmax;
  130. uint32_t vo_aifs;
  131. };
  132. /**
  133. * struct mlme_edca_ac_vi - cwmin, cwmax and aifs value for edca_ac_vi
  134. *
  135. * @vi_cwmin: cwmin value for video
  136. * @vi_cwmax: cwmax value for video
  137. * @vi_aifs: aifs value for video
  138. */
  139. struct mlme_edca_ac_vi {
  140. uint32_t vi_cwmin;
  141. uint32_t vi_cwmax;
  142. uint32_t vi_aifs;
  143. };
  144. /**
  145. * struct mlme_edca_ac_bk - cwmin, cwmax and aifs value for edca_ac_bk
  146. *
  147. * @bk_cwmin: cwmin value for background
  148. * @bk_cwmax: cwmax value for background
  149. * @bk_aifs: aifs value for background
  150. */
  151. struct mlme_edca_ac_bk {
  152. uint32_t bk_cwmin;
  153. uint32_t bk_cwmax;
  154. uint32_t bk_aifs;
  155. };
  156. /**
  157. * struct mlme_edca_ac_be - cwmin, cwmax and aifs value for edca_ac_be
  158. *
  159. * @be_cwmin: cwmin value for best effort
  160. * @be_cwmax: cwmax value for best effort
  161. * @be_aifs: aifs value for best effort
  162. */
  163. struct mlme_edca_ac_be {
  164. uint32_t be_cwmin;
  165. uint32_t be_cwmax;
  166. uint32_t be_aifs;
  167. };
  168. /**
  169. * enum mlme_ts_info_ack_policy - TS Info Ack Policy
  170. * @TS_INFO_ACK_POLICY_NORMAL_ACK:normal ack
  171. * @TS_INFO_ACK_POLICY_HT_IMMEDIATE_BLOCK_ACK: HT immediate block ack
  172. */
  173. enum mlme_ts_info_ack_policy {
  174. TS_INFO_ACK_POLICY_NORMAL_ACK = 0,
  175. TS_INFO_ACK_POLICY_HT_IMMEDIATE_BLOCK_ACK = 1,
  176. };
  177. /**
  178. * struct mlme_edca_params - EDCA pramaters related config items
  179. *
  180. * @ani_acbk_l: EDCA parameters for ANI local access category background
  181. * @ani_acbe_l: EDCA parameters for ANI local access category best effort
  182. * @ani_acvi_l: EDCA parameters for ANI local access category video
  183. * @ani_acvo_l: EDCA parameters for ANI local access category voice
  184. * @ani_acbk_b: EDCA parameters for ANI bcast access category background
  185. * @ani_acbe_b: EDCA parameters for ANI bcast access category best effort
  186. * @ani_acvi_b: EDCA parameters for ANI bcast access category video
  187. * @ani_acvo_b: EDCA parameters for ANI bcast access category voice
  188. * @wme_acbk_l: EDCA parameters for WME local access category background
  189. * @wme_acbe_l: EDCA parameters for WME local access category best effort
  190. * @wme_acvi_l: EDCA parameters for WME local access category video
  191. * @wme_acvo_l: EDCA parameters for WME local access category voice
  192. * @wme_acbk_b: EDCA parameters for WME bcast access category background
  193. * @wme_acbe_b: EDCA parameters for WME bcast access category best effort
  194. * @wme_acvi_b: EDCA parameters for WME bcast access category video
  195. * @wme_acvo_b: EDCA parameters for WME bcast access category voice
  196. * @etsi_acbk_l: EDCA parameters for ETSI local access category background
  197. * @etsi_acbe_l: EDCA parameters for ETSI local access category best effort
  198. * @etsi_acvi_l: EDCA parameters for ETSI local access category video
  199. * @etsi_acvo_l: EDCA parameters for ETSI local access category voice
  200. * @etsi_acbk_b: EDCA parameters for ETSI bcast access category background
  201. * @etsi_acbe_b: EDCA parameters for ETSI bcast access category best effort
  202. * @etsi_acvi_b: EDCA parameters for ETSI bcast access category video
  203. * @etsi_acvo_b: EDCA parameters for ETSI bcast access category voice
  204. * @enable_edca_params: Enable edca parameter
  205. * @mlme_edca_ac_vo: value for edca_ac_vo
  206. * @mlme_edca_ac_vi: value for edca_ac_vi
  207. * @mlme_edca_ac_bk: value for edca_ac_bk
  208. * @mlme_edca_ac_be: value for edca_ac_be
  209. */
  210. struct wlan_mlme_edca_params {
  211. struct mlme_cfg_str ani_acbk_l;
  212. struct mlme_cfg_str ani_acbe_l;
  213. struct mlme_cfg_str ani_acvi_l;
  214. struct mlme_cfg_str ani_acvo_l;
  215. struct mlme_cfg_str ani_acbk_b;
  216. struct mlme_cfg_str ani_acbe_b;
  217. struct mlme_cfg_str ani_acvi_b;
  218. struct mlme_cfg_str ani_acvo_b;
  219. struct mlme_cfg_str wme_acbk_l;
  220. struct mlme_cfg_str wme_acbe_l;
  221. struct mlme_cfg_str wme_acvi_l;
  222. struct mlme_cfg_str wme_acvo_l;
  223. struct mlme_cfg_str wme_acbk_b;
  224. struct mlme_cfg_str wme_acbe_b;
  225. struct mlme_cfg_str wme_acvi_b;
  226. struct mlme_cfg_str wme_acvo_b;
  227. struct mlme_cfg_str etsi_acbk_l;
  228. struct mlme_cfg_str etsi_acbe_l;
  229. struct mlme_cfg_str etsi_acvi_l;
  230. struct mlme_cfg_str etsi_acvo_l;
  231. struct mlme_cfg_str etsi_acbk_b;
  232. struct mlme_cfg_str etsi_acbe_b;
  233. struct mlme_cfg_str etsi_acvi_b;
  234. struct mlme_cfg_str etsi_acvo_b;
  235. bool enable_edca_params;
  236. struct mlme_edca_ac_vo edca_ac_vo;
  237. struct mlme_edca_ac_vi edca_ac_vi;
  238. struct mlme_edca_ac_bk edca_ac_bk;
  239. struct mlme_edca_ac_be edca_ac_be;
  240. };
  241. #define WLAN_CFG_MFR_NAME_LEN (63)
  242. #define WLAN_CFG_MODEL_NUMBER_LEN (31)
  243. #define WLAN_CFG_MODEL_NAME_LEN (31)
  244. #define WLAN_CFG_MFR_PRODUCT_NAME_LEN (31)
  245. #define WLAN_CFG_MFR_PRODUCT_VERSION_LEN (31)
  246. #define MLME_NUM_WLM_LATENCY_LEVEL 4
  247. #define MLME_RMENABLEDCAP_MAX_LEN 5
  248. /**
  249. * struct mlme_ht_capabilities_info - HT Capabilities Info
  250. * @l_sig_tx_op_protection: L-SIG TXOP Protection Mechanism support
  251. * @stbc_control_frame: STBC Control frame support
  252. * @psmp: PSMP Support
  253. * @dsss_cck_mode_40_mhz: To indicate use of DSSS/CCK in 40Mhz
  254. * @maximal_amsdu_size: Maximum AMSDU Size - 0:3839 octes, 1:7935 octets
  255. * @delayed_ba: Support of Delayed Block Ack
  256. * @rx_stbc: Rx STBC Support - 0:Not Supported, 1: 1SS, 2: 1,2SS, 3: 1,2,3SS
  257. * @tx_stbc: Tx STBC Support
  258. * @short_gi_40_mhz: Short GI Support for HT40
  259. * @short_gi_20_mhz: Short GI support for HT20
  260. * @green_field: Support for HT Greenfield PPDUs
  261. * @mimo_power_save: SM Power Save Mode - 0:Static, 1:Dynamic, 3:Disabled, 2:Res
  262. * @supported_channel_width_set: Supported Chan Width - 0:20Mhz, 1:20Mhz & 40Mhz
  263. * @adv_coding_cap: Rx LDPC support
  264. */
  265. #ifndef ANI_LITTLE_BIT_ENDIAN
  266. struct mlme_ht_capabilities_info {
  267. uint16_t l_sig_tx_op_protection:1;
  268. uint16_t stbc_control_frame:1;
  269. uint16_t psmp:1;
  270. uint16_t dsss_cck_mode_40_mhz:1;
  271. uint16_t maximal_amsdu_size:1;
  272. uint16_t delayed_ba:1;
  273. uint16_t rx_stbc:2;
  274. uint16_t tx_stbc:1;
  275. uint16_t short_gi_40_mhz:1;
  276. uint16_t short_gi_20_mhz:1;
  277. uint16_t green_field:1;
  278. uint16_t mimo_power_save:2;
  279. uint16_t supported_channel_width_set:1;
  280. uint16_t adv_coding_cap:1;
  281. } qdf_packed;
  282. #else
  283. struct mlme_ht_capabilities_info {
  284. uint16_t adv_coding_cap:1;
  285. uint16_t supported_channel_width_set:1;
  286. uint16_t mimo_power_save:2;
  287. uint16_t green_field:1;
  288. uint16_t short_gi_20_mhz:1;
  289. uint16_t short_gi_40_mhz:1;
  290. uint16_t tx_stbc:1;
  291. uint16_t rx_stbc:2;
  292. uint16_t delayed_ba:1;
  293. uint16_t maximal_amsdu_size:1;
  294. uint16_t dsss_cck_mode_40_mhz:1;
  295. uint16_t psmp:1;
  296. uint16_t stbc_control_frame:1;
  297. uint16_t l_sig_tx_op_protection:1;
  298. } qdf_packed;
  299. #endif
  300. /**
  301. * struct mlme_ht_param_info - HT AMPDU Parameters Info
  302. * @reserved: reserved bits
  303. * @mpdu_density: MPDU Density
  304. * @max_rx_ampdu_factor: Max Rx AMPDU Factor
  305. */
  306. #ifndef ANI_LITTLE_BIT_ENDIAN
  307. struct mlme_ht_param_info {
  308. uint8_t reserved:3;
  309. uint8_t mpdu_density:3;
  310. uint8_t max_rx_ampdu_factor:2;
  311. } qdf_packed;
  312. #else
  313. struct mlme_ht_param_info {
  314. uint8_t max_rx_ampdu_factor:2;
  315. uint8_t mpdu_density:3;
  316. uint8_t reserved:3;
  317. #endif
  318. } qdf_packed;
  319. /**
  320. * struct mlme_ht_ext_cap_info - Extended HT Capabilities Info
  321. * reserved_2: Reserved Bits
  322. * mcs_feedback: MCS Feedback Capability
  323. * reserved_1: Reserved Bits
  324. * transition_time: Time needed for transition between 20Mhz and 40 Mhz
  325. * pco: PCO (Phased Coexistence Operation) Support
  326. */
  327. #ifndef ANI_LITTLE_BIT_ENDIAN
  328. struct mlme_ht_ext_cap_info {
  329. uint16_t reserved_2:6;
  330. uint16_t mcs_feedback:2;
  331. uint16_t reserved_1:5;
  332. uint16_t transition_time:2;
  333. uint16_t pco:1;
  334. } qdf_packed;
  335. #else
  336. struct mlme_ht_ext_cap_info {
  337. uint16_t pco:1;
  338. uint16_t transition_time:2;
  339. uint16_t reserved1:5;
  340. uint16_t mcs_feedback:2;
  341. uint16_t reserved2:6;
  342. } qdf_packed;
  343. #endif
  344. /**
  345. * struct mlme_ht_info_field_1 - Additional HT IE Field1
  346. * @service_interval_granularity: Shortest Service Interval
  347. * @controlled_access_only: Access Control for assoc requests
  348. * @rifs_mode: Reduced Interframe Spacing mode
  349. * @recommended_tx_width_set: Recommended Tx Channel Width
  350. * @secondary_channel_offset: Secondary Channel Offset
  351. */
  352. #ifndef ANI_LITTLE_BIT_ENDIAN
  353. struct mlme_ht_info_field_1 {
  354. uint8_t service_interval_granularity:3;
  355. uint8_t controlled_access_only:1;
  356. uint8_t rifs_mode:1;
  357. uint8_t recommended_tx_width_set:1;
  358. uint8_t secondary_channel_offset:2;
  359. } qdf_packed;
  360. #else
  361. struct mlme_ht_info_field_1 {
  362. uint8_t secondary_channel_offset:2;
  363. uint8_t recommended_tx_width_set:1;
  364. uint8_t rifs_mode:1;
  365. uint8_t controlled_access_only:1;
  366. uint8_t service_interval_granularity:3;
  367. } qdf_packed;
  368. #endif
  369. /* struct mlme_ht_info_field_2 - Additional HT IE Field2
  370. * @reserved: reserved bits
  371. * @obss_non_ht_sta_present: Protection for non-HT STAs by Overlapping BSS
  372. * @transmit_burst_limit: Transmit Burst Limit
  373. * @non_gf_devices_present: Non Greenfield devices present
  374. * @op_mode: Operation Mode
  375. */
  376. #ifndef ANI_LITTLE_BIT_ENDIAN
  377. struct mlme_ht_info_field_2 {
  378. uint16_t reserved:11;
  379. uint16_t obss_non_ht_sta_present:1;
  380. uint16_t transmit_burst_limit:1;
  381. uint16_t non_gf_devices_present:1;
  382. uint16_t op_mode:2;
  383. } qdf_packed;
  384. #else
  385. struct mlme_ht_info_field_2 {
  386. uint16_t op_mode:2;
  387. uint16_t nonGFDevicesPresent:1;
  388. uint16_t transmit_burst_limit:1;
  389. uint16_t obss_non_ht_sta_present:1;
  390. uint16_t reserved:11;
  391. } qdf_packed;
  392. #endif
  393. /**
  394. * struct mlme_ht_info_field_3 - Additional HT IE Field3
  395. * @reserved: reserved bits
  396. * @pco_phase: PCO Phase
  397. * @pco_active: PCO state
  398. * @lsig_txop_protection_full_support: L-Sig TXOP Protection Full Support
  399. * @secondary_beacon: Beacon ID
  400. * @dual_cts_protection: Dual CTS protection Required
  401. * @basic_stbc_mcs: Basic STBC MCS
  402. */
  403. #ifndef ANI_LITTLE_BIT_ENDIAN
  404. struct mlme_ht_info_field_3 {
  405. uint16_t reserved:4;
  406. uint16_t pco_phase:1;
  407. uint16_t pco_active:1;
  408. uint16_t lsig_txop_protection_full_support:1;
  409. uint16_t secondary_beacon:1;
  410. uint16_t dual_cts_protection:1;
  411. uint16_t basic_stbc_mcs:7;
  412. } qdf_packed;
  413. #else
  414. struct mlme_ht_info_field_3 {
  415. uint16_t basic_stbc_mcs:7;
  416. uint16_t dual_cts_protection:1;
  417. uint16_t secondary_beacon:1;
  418. uint16_t lsig_txop_protection_full_support:1;
  419. uint16_t pco_active:1;
  420. uint16_t pco_phase:1;
  421. uint16_t reserved:4;
  422. } qdf_packed;
  423. #endif
  424. /**
  425. * struct wlan_mlme_ht_caps - HT Capabilities related config items
  426. * @ht_cap_info: HT capabilities Info Structure
  427. * @ampdu_params: AMPDU parameters
  428. * @ext_cap_info: HT EXT capabilities info
  429. * @info_field_1: HT Information Subset 1
  430. * @info_field_2: HT Information Subset 2
  431. * @info_field_3: HT Information Subset 3
  432. * @short_preamble: Short Preamble support
  433. * @enable_ampdu_ps: Enable AMPDU Power Save
  434. * @enable_smps: Enabled SM Power Save
  435. * @smps : SM Power Save mode
  436. * @max_num_amsdu: Max number of AMSDU
  437. * @tx_ldpc_enable: Enable Tx LDPC
  438. * @short_slot_time_enabled: Enabled/disable short slot time
  439. */
  440. struct wlan_mlme_ht_caps {
  441. struct mlme_ht_capabilities_info ht_cap_info;
  442. struct mlme_ht_param_info ampdu_params;
  443. struct mlme_ht_ext_cap_info ext_cap_info;
  444. struct mlme_ht_info_field_1 info_field_1;
  445. struct mlme_ht_info_field_2 info_field_2;
  446. struct mlme_ht_info_field_3 info_field_3;
  447. bool short_preamble;
  448. bool enable_ampdu_ps;
  449. bool enable_smps;
  450. uint8_t smps;
  451. uint8_t max_num_amsdu;
  452. uint8_t tx_ldpc_enable;
  453. bool short_slot_time_enabled;
  454. };
  455. #define MLME_CFG_WPS_UUID_MAX_LEN 16
  456. /*
  457. * struct wlan_mlme_wps_params - All wps based related cfg items
  458. *
  459. * @enable_wps - to enable wps
  460. * @wps_state - current wps state
  461. * @wps_version - wps version
  462. * @wps_cfg_method - wps config method
  463. * @wps_primary_device_category - wps primary device category
  464. * @wps_primary_device_oui - primary device OUI
  465. * @wps_device_sub_category - device sub category
  466. * @wps_device_password_id - password id of device
  467. * @wps_uuid - wps uuid to be sent in probe
  468. */
  469. struct wlan_mlme_wps_params {
  470. uint8_t enable_wps;
  471. uint8_t wps_state;
  472. uint8_t wps_version;
  473. uint32_t wps_cfg_method;
  474. uint32_t wps_primary_device_category;
  475. uint32_t wps_primary_device_oui;
  476. uint16_t wps_device_sub_category;
  477. uint32_t wps_device_password_id;
  478. struct mlme_cfg_str wps_uuid;
  479. };
  480. #define MLME_CFG_LISTEN_INTERVAL 1
  481. #define MLME_CFG_BEACON_INTERVAL_DEF 100
  482. #define MLME_CFG_TX_MGMT_RATE_DEF 0xFF
  483. #define MLME_CFG_TX_MGMT_2G_RATE_DEF 0xFF
  484. #define MLME_CFG_TX_MGMT_5G_RATE_DEF 0xFF
  485. #define MLME_CFG_SSID_LEN 32
  486. /**
  487. * struct wlan_mlme_cfg_sap - SAP related config items
  488. * @cfg_ssid: SSID to be configured
  489. * @beacon_interval: beacon interval
  490. * @dtim_interval: dtim interval
  491. * @listen_interval: listen interval
  492. * @sap_11g_policy: Check if 11g support is enabled
  493. * @assoc_sta_limit: Limit on number of STA associated to SAP
  494. * @enable_lte_coex: Flag for LTE coexistence
  495. * @rmc_action_period_freq: rmc action period frequency
  496. * @rate_tx_mgmt: mgmt frame tx rate
  497. * @rate_tx_mgmt_2g: mgmt frame tx rate for 2G band
  498. * @rate_tx_mgmt_5g: mgmt frame tx rate for 5G band
  499. * @tele_bcn_wakeup_en: beacon wakeup enable/disable
  500. * @tele_bcn_max_li: max listen interval
  501. * @sap_get_peer_info: get peer info
  502. * @sap_allow_all_chan_param_name: allow all channels
  503. * @sap_max_no_peers: Maximum number of peers
  504. * @sap_max_offload_peers: Maximum number of peer offloads
  505. * @sap_max_offload_reorder_buffs: Maximum offload reorder buffs
  506. * @sap_ch_switch_beacon_cnt: Number of beacons to be sent out during CSA
  507. * @sap_internal_restart: flag to check if sap restart is in progress
  508. * @sap_ch_switch_mode: Channel switch test mode enable/disable
  509. * @chan_switch_hostapd_rate_enabled_name: enable/disable skip hostapd rate
  510. * @reduced_beacon_interval: reduced beacon interval value
  511. * @max_li_modulated_dtim_time: Max modulated DTIM time.
  512. * @country_code_priority: Country code priority.
  513. * @sap_pref_chan_location: SAP Preferred channel location.
  514. * @sap_mcc_chnl_avoid: SAP MCC channel avoidance flag
  515. */
  516. struct wlan_mlme_cfg_sap {
  517. uint8_t cfg_ssid[MLME_CFG_SSID_LEN];
  518. uint8_t cfg_ssid_len;
  519. uint16_t beacon_interval;
  520. uint16_t dtim_interval;
  521. uint16_t listen_interval;
  522. bool sap_11g_policy;
  523. uint8_t assoc_sta_limit;
  524. bool enable_lte_coex;
  525. uint16_t rmc_action_period_freq;
  526. uint8_t rate_tx_mgmt;
  527. uint8_t rate_tx_mgmt_2g;
  528. uint8_t rate_tx_mgmt_5g;
  529. bool tele_bcn_wakeup_en;
  530. uint8_t tele_bcn_max_li;
  531. bool sap_get_peer_info;
  532. bool sap_allow_all_chan_param_name;
  533. uint8_t sap_max_no_peers;
  534. uint8_t sap_max_offload_peers;
  535. uint8_t sap_max_offload_reorder_buffs;
  536. uint8_t sap_ch_switch_beacon_cnt;
  537. bool sap_internal_restart;
  538. bool sap_ch_switch_mode;
  539. bool chan_switch_hostapd_rate_enabled_name;
  540. uint8_t reduced_beacon_interval;
  541. uint8_t max_li_modulated_dtim_time;
  542. bool country_code_priority;
  543. uint8_t sap_pref_chan_location;
  544. bool sap_force_11n_for_11ac;
  545. bool go_force_11n_for_11ac;
  546. bool ap_random_bssid_enable;
  547. uint8_t sap_mcc_chnl_avoid;
  548. };
  549. /**
  550. * struct wlan_mlme_dfs_cfg - DFS Capabilities related config items
  551. * @dfs_master_capable: Is DFS master mode support enabled
  552. * @dfs_disable_channel_switch: disable channel switch on radar detection
  553. * @dfs_ignore_cac: Disable cac
  554. * @dfs_filter_offload: dfs filter offloaad
  555. * @dfs_beacon_tx_enhanced: enhance dfs beacon tx
  556. * @dfs_prefer_non_dfs: perefer non dfs channel after radar
  557. * @sap_tx_leakage_threshold: sap tx leakage threshold
  558. */
  559. struct wlan_mlme_dfs_cfg {
  560. bool dfs_master_capable;
  561. bool dfs_disable_channel_switch;
  562. bool dfs_ignore_cac;
  563. bool dfs_filter_offload;
  564. bool dfs_beacon_tx_enhanced;
  565. bool dfs_prefer_non_dfs;
  566. uint32_t sap_tx_leakage_threshold;
  567. };
  568. /**
  569. * struct wlan_mlme_mbo - Multiband Operation related ini configs
  570. * @mbo_candidate_rssi_thres: candidate AP's min rssi to accept it
  571. * @mbo_current_rssi_thres: Connected AP's rssi threshold below which
  572. * transition is considered
  573. * @mbo_current_rssi_mcc_thres: connected AP's RSSI threshold value to prefer
  574. * against MCC
  575. * @mbo_candidate_rssi_btc_thres: Candidate AP's minimum RSSI threshold to
  576. * prefer it even in BT coex.
  577. */
  578. struct wlan_mlme_mbo {
  579. int8_t mbo_candidate_rssi_thres;
  580. int8_t mbo_current_rssi_thres;
  581. int8_t mbo_current_rssi_mcc_thres;
  582. int8_t mbo_candidate_rssi_btc_thres;
  583. };
  584. /**
  585. * struct wlan_mlme_powersave - Powersave related ini configs
  586. * @is_imps_enabled: flag to enable/disable IMPS
  587. * @is_bmps_enabled: flag to enable/disable BMPS
  588. * @auto_bmps_timer: auto BMPS timer value
  589. * @bmps_min_listen_interval: BMPS listen inteval minimum value
  590. * @bmps_max_listen_interval: BMPS listen interval maximum value
  591. * @dtim_selection_diversity: dtim selection diversity value to be sent to fw
  592. */
  593. struct wlan_mlme_powersave {
  594. bool is_imps_enabled;
  595. bool is_bmps_enabled;
  596. uint32_t auto_bmps_timer_val;
  597. uint32_t bmps_min_listen_interval;
  598. uint32_t bmps_max_listen_interval;
  599. uint32_t dtim_selection_diversity;
  600. };
  601. /**
  602. * struct wlan_mlme_vht_caps - MLME VHT config items
  603. * @supp_chan_width: Supported Channel Width
  604. * @ldpc_coding_cap: LDPC Coding Capability
  605. * @short_gi_80mhz: 80MHz Short Guard Interval
  606. * @short_gi_160mhz: 160MHz Short Guard Interval
  607. * @tx_stbc: Tx STBC cap
  608. * @rx_stbc: Rx STBC cap
  609. * @su_bformer: SU Beamformer cap
  610. * @su_bformee: SU Beamformee cap
  611. * @tx_bfee_ant_supp: Tx beamformee anti supp
  612. * @num_soundingdim: Number of sounding dimensions
  613. * @mu_bformer: MU Beamformer cap
  614. * @txop_ps: Tx OPs in power save
  615. * @htc_vhtc: htc_vht capability
  616. * @link_adap_cap: Link adaptation capability
  617. * @rx_antpattern: Rx Antenna Pattern cap
  618. * @tx_antpattern: Tx Antenna Pattern cap
  619. * @rx_mcs_map: Rx MCS Map
  620. * @tx_mcs_map: Tx MCS Map
  621. * @rx_supp_data_rate: Rx highest supported data rate
  622. * @tx_supp_data_rate: Tx highest supported data rate
  623. * @basic_mcs_set: Basic MCS set
  624. * @enable_txbf_20mhz: enable tx bf for 20mhz
  625. * @channel_width: Channel width capability for 11ac
  626. * @rx_mcs: VHT Rx MCS capability for 1x1 mode
  627. * @tx_mcs: VHT Tx MCS capability for 1x1 mode
  628. * @rx_mcs2x2: VHT Rx MCS capability for 2x2 mode
  629. * @tx_mcs2x2: VHT Tx MCS capability for 2x2 mode
  630. * @enable_vht20_mcs9: Enables VHT MCS9 in 20M BW operation
  631. * @enable2x2: Enables/disables VHT Tx/Rx MCS values for 2x2
  632. * @enable_mu_bformee: Enables/disables multi-user (MU)
  633. * beam formee capability
  634. * @enable_paid: Enables/disables paid
  635. * @enable_gid: Enables/disables gid
  636. * @b24ghz_band: To control VHT support in 2.4 GHz band
  637. * @vendor_24ghz_band: to control VHT support based on vendor
  638. * ie in 2.4 GHz band
  639. * @ampdu_len_exponent: To handle maximum receive AMPDU ampdu len exponent
  640. * @ampdu_len: To handle maximum receive AMPDU ampdu len
  641. * @tx_bfee_sap: enable tx bfee SAp
  642. * @subfee_vendor_vhtie: enable subfee vendor vht ie
  643. * @tx_bf_cap: Transmit bf capability
  644. * @as_cap: Antenna sharing capability info
  645. * @disable_ldpc_with_txbf_ap: Disable ldpc capability
  646. */
  647. struct mlme_vht_capabilities_info {
  648. uint8_t supp_chan_width;
  649. bool ldpc_coding_cap;
  650. bool short_gi_80mhz;
  651. bool short_gi_160mhz;
  652. bool tx_stbc;
  653. bool rx_stbc;
  654. bool su_bformer;
  655. bool su_bformee;
  656. uint8_t tx_bfee_ant_supp;
  657. uint8_t num_soundingdim;
  658. bool mu_bformer;
  659. bool txop_ps;
  660. bool htc_vhtc;
  661. uint8_t link_adap_cap;
  662. bool rx_antpattern;
  663. bool tx_antpattern;
  664. uint32_t rx_mcs_map;
  665. uint32_t tx_mcs_map;
  666. uint32_t rx_supp_data_rate;
  667. uint32_t tx_supp_data_rate;
  668. uint32_t basic_mcs_set;
  669. bool enable_txbf_20mhz;
  670. uint8_t channel_width;
  671. uint32_t rx_mcs;
  672. uint32_t tx_mcs;
  673. uint8_t rx_mcs2x2;
  674. uint8_t tx_mcs2x2;
  675. bool enable_vht20_mcs9;
  676. bool enable2x2;
  677. bool enable_mu_bformee;
  678. bool enable_paid;
  679. bool enable_gid;
  680. bool b24ghz_band;
  681. bool vendor_24ghz_band;
  682. uint8_t ampdu_len_exponent;
  683. uint8_t ampdu_len;
  684. bool tx_bfee_sap;
  685. bool vendor_vhtie;
  686. uint8_t tx_bf_cap;
  687. uint8_t as_cap;
  688. bool disable_ldpc_with_txbf_ap;
  689. };
  690. /**
  691. * struct wlan_mlme_vht_caps - VHT Capabilities related config items
  692. * @vht_cap_info: VHT capabilities Info Structure
  693. */
  694. struct wlan_mlme_vht_caps {
  695. struct mlme_vht_capabilities_info vht_cap_info;
  696. };
  697. /**
  698. * struct wlan_mlme_qos - QOS TX/RX aggregation related CFG items
  699. * @tx_aggregation_size: TX aggr size in number of MPDUs
  700. * @tx_aggregation_size_be: No. of MPDUs for BE queue for TX aggr
  701. * @tx_aggregation_size_bk: No. of MPDUs for BK queue for TX aggr
  702. * @tx_aggregation_size_vi: No. of MPDUs for VI queue for TX aggr
  703. * @tx_aggregation_size_vo: No. of MPDUs for VO queue for TX aggr
  704. * @rx_aggregation_size: No. of MPDUs for RX aggr
  705. * @tx_aggr_sw_retry_threshold_be: aggr sw retry threshold for BE
  706. * @tx_aggr_sw_retry_threshold_bk: aggr sw retry threshold for BK
  707. * @tx_aggr_sw_retry_threshold_vi: aggr sw retry threshold for VI
  708. * @tx_aggr_sw_retry_threshold_vo: aggr sw retry threshold for VO
  709. * @tx_non_aggr_sw_retry_threshold_be: non aggr sw retry threshold for BE
  710. * @tx_non_aggr_sw_retry_threshold_bk: non aggr sw retry threshold for BK
  711. * @tx_non_aggr_sw_retry_threshold_vi: non aggr sw retry threshold for VI
  712. * @tx_non_aggr_sw_retry_threshold_vo: non aggr sw retry threshold for VO
  713. * @sap_max_inactivity_override: Override updating ap_sta_inactivity from
  714. * hostapd.conf
  715. * @sap_uapsd_enabled: Flag to enable/disable UAPSD for SAP
  716. */
  717. struct wlan_mlme_qos {
  718. uint32_t tx_aggregation_size;
  719. uint32_t tx_aggregation_size_be;
  720. uint32_t tx_aggregation_size_bk;
  721. uint32_t tx_aggregation_size_vi;
  722. uint32_t tx_aggregation_size_vo;
  723. uint32_t rx_aggregation_size;
  724. uint32_t tx_aggr_sw_retry_threshold_be;
  725. uint32_t tx_aggr_sw_retry_threshold_bk;
  726. uint32_t tx_aggr_sw_retry_threshold_vi;
  727. uint32_t tx_aggr_sw_retry_threshold_vo;
  728. uint32_t tx_non_aggr_sw_retry_threshold_be;
  729. uint32_t tx_non_aggr_sw_retry_threshold_bk;
  730. uint32_t tx_non_aggr_sw_retry_threshold_vi;
  731. uint32_t tx_non_aggr_sw_retry_threshold_vo;
  732. bool sap_max_inactivity_override;
  733. bool sap_uapsd_enabled;
  734. };
  735. #ifdef WLAN_FEATURE_11AX
  736. #define MLME_HE_PPET_LEN 25
  737. #define WNI_CFG_HE_OPS_BSS_COLOR_MAX 0x3F
  738. /**
  739. * struct wlan_mlme_he_caps - HE Capabilities related config items
  740. */
  741. struct wlan_mlme_he_caps {
  742. tDot11fIEhe_cap dot11_he_cap;
  743. uint8_t he_ppet_2g[MLME_HE_PPET_LEN];
  744. uint8_t he_ppet_5g[MLME_HE_PPET_LEN];
  745. uint32_t he_ops_basic_mcs_nss;
  746. uint8_t he_dynamic_fragmentation;
  747. uint8_t enable_ul_mimo;
  748. uint8_t enable_ul_ofdm;
  749. uint32_t he_sta_obsspd;
  750. };
  751. #endif
  752. /**
  753. * struct wlan_mlme_rates - RATES related config items
  754. * @cfpPeriod: cfp period info
  755. * @cfpMaxDuration: cfp Max duration info
  756. * @max_htmcs_txdata: max HT mcs info for Tx
  757. * @disable_abg_rate_txdata: disable abg rate info for tx data
  758. * @sap_max_mcs_txdata: sap max mcs info
  759. * @disable_high_ht_mcs_2x2: disable high mcs for 2x2 info
  760. * @supported_11b: supported 11B rates
  761. * @supported_11a: supported 11A rates
  762. * @opr_rate_set: operational rates set
  763. * @ext_opr_rate_set: extended operational rates set
  764. * @supported_mcs_set: supported MCS set
  765. * @basic_mcs_set: basic MCS set
  766. * @current_mcs_set: current MCS set
  767. */
  768. struct wlan_mlme_rates {
  769. uint8_t cfp_period;
  770. uint16_t cfp_max_duration;
  771. uint16_t max_htmcs_txdata;
  772. bool disable_abg_rate_txdata;
  773. uint16_t sap_max_mcs_txdata;
  774. uint8_t disable_high_ht_mcs_2x2;
  775. struct mlme_cfg_str supported_11b;
  776. struct mlme_cfg_str supported_11a;
  777. struct mlme_cfg_str opr_rate_set;
  778. struct mlme_cfg_str ext_opr_rate_set;
  779. struct mlme_cfg_str supported_mcs_set;
  780. struct mlme_cfg_str basic_mcs_set;
  781. struct mlme_cfg_str current_mcs_set;
  782. };
  783. /* Flags for gLimProtectionControl that is updated in pe session*/
  784. #define MLME_FORCE_POLICY_PROTECTION_DISABLE 0
  785. #define MLME_FORCE_POLICY_PROTECTION_CTS 1
  786. #define MLME_FORCE_POLICY_PROTECTION_RTS 2
  787. #define MLME_FORCE_POLICY_PROTECTION_DUAL_CTS 3
  788. #define MLME_FORCE_POLICY_PROTECTION_RTS_ALWAYS 4
  789. #define MLME_FORCE_POLICY_PROTECTION_AUTO 5
  790. /* protection_enabled bits*/
  791. #define MLME_PROTECTION_ENABLED_FROM_llA 0
  792. #define MLME_PROTECTION_ENABLED_FROM_llB 1
  793. #define MLME_PROTECTION_ENABLED_FROM_llG 2
  794. #define MLME_PROTECTION_ENABLED_HT_20 3
  795. #define MLME_PROTECTION_ENABLED_NON_GF 4
  796. #define MLME_PROTECTION_ENABLED_LSIG_TXOP 5
  797. #define MLME_PROTECTION_ENABLED_RIFS 6
  798. #define MLME_PROTECTION_ENABLED_OBSS 7
  799. #define MLME_PROTECTION_ENABLED_OLBC_FROM_llA 8
  800. #define MLME_PROTECTION_ENABLED_OLBC_FROM_llB 9
  801. #define MLME_PROTECTION_ENABLED_OLBC_FROM_llG 10
  802. #define MLME_PROTECTION_ENABLED_OLBC_HT20 11
  803. #define MLME_PROTECTION_ENABLED_OLBC_NON_GF 12
  804. #define MLME_PROTECTION_ENABLED_OLBC_LSIG_TXOP 13
  805. #define MLME_PROTECTION_ENABLED_OLBC_RIFS 14
  806. #define MLME_PROTECTION_ENABLED_OLBC_OBSS 15
  807. /**
  808. * struct wlan_mlme_feature_flag - feature related information
  809. * @accept_short_slot_assoc: enable short sloc feature
  810. * @enable_hcf: enable HCF feature
  811. * @enable_rsn: enable RSN for connection
  812. * @enable_short_preamble_11g: enable short preamble for 11g
  813. * @channel_bonding_mode: channel bonding mode
  814. * @enable_block_ack: enable block ack feature
  815. * @enable_ampdu: Enable AMPDU feature
  816. */
  817. struct wlan_mlme_feature_flag {
  818. bool accept_short_slot_assoc;
  819. bool enable_hcf;
  820. bool enable_rsn;
  821. bool enable_short_preamble_11g;
  822. bool enable_short_slot_time_11g;
  823. bool enable_ampdu;
  824. bool enable_mcc;
  825. uint8_t mcc_rts_cts_prot;
  826. uint8_t mcc_bcast_prob_rsp;
  827. uint32_t channel_bonding_mode;
  828. uint32_t enable_block_ack;
  829. };
  830. /*
  831. * struct wlan_mlme_sap_protection_cfg - SAP erp protection config items
  832. * @ignore_peer_ht_opmode: Ignore the ht opmode of the peer. Dynamic via INI
  833. * @enable_ap_obss_protection: enable/disable AP OBSS protection
  834. * @protection_force_policy: Protection force policy. Static via cfg
  835. * @ap_protection_mode: AP protection bitmap
  836. * @protection_enabled: Force enable protection. static via cfg
  837. */
  838. struct wlan_mlme_sap_protection {
  839. bool ignore_peer_ht_opmode;
  840. bool enable_ap_obss_protection;
  841. uint8_t protection_force_policy;
  842. uint16_t ap_protection_mode;
  843. uint32_t protection_enabled;
  844. };
  845. /*
  846. * struct wlan_mlme_chainmask - All chainmask related cfg items
  847. * @txchainmask1x1: To set transmit chainmask
  848. * @rxchainmask1x1: To set rx chainmask
  849. * @tx_chain_mask_cck: Used to enable/disable Cck ChainMask
  850. * @tx_chain_mask_1ss: Enables/disables tx chain Mask1ss
  851. * @num_11b_tx_chains: Number of Tx Chains in 11b mode
  852. * @num_11ag_tx_chains: Number of Tx Chains in 11ag mode
  853. * @tx_chain_mask_2g: Tx chain mask for 2g
  854. * @rx_chain_mask_2g: Tx chain mask for 2g
  855. * @tx_chain_mask_5g: Tx chain mask for 5g
  856. * @rx_chain_mask_5g: Rx chain mask for 5g
  857. * @enable_bt_chain_separation: Enable/Disable BT/WLAN Host chain seperation
  858. */
  859. struct wlan_mlme_chainmask {
  860. uint8_t txchainmask1x1;
  861. uint8_t rxchainmask1x1;
  862. bool tx_chain_mask_cck;
  863. uint8_t tx_chain_mask_1ss;
  864. uint16_t num_11b_tx_chains;
  865. uint16_t num_11ag_tx_chains;
  866. uint8_t tx_chain_mask_2g;
  867. uint8_t rx_chain_mask_2g;
  868. uint8_t tx_chain_mask_5g;
  869. uint8_t rx_chain_mask_5g;
  870. bool enable_bt_chain_separation;
  871. };
  872. /* struct wlan_mlme_generic - Generic CFG config items
  873. *
  874. * @band_capability: HW Band Capability - Both or 2.4G only or 5G only
  875. * @band: Current Band - Internal variable, initialized to INI and updated later
  876. * @select_5ghz_margin: RSSI margin to select 5Ghz over 2.4 Ghz
  877. * @sub_20_chan_width: Sub 20Mhz Channel Width
  878. * @ito_repeat_count: ITO Repeat Count
  879. * @pmf_sa_query_max_retries: PMF query max retries for SAP
  880. * @pmf_sa_query_retry_interval: PMF query retry interval for SAP
  881. * @dropped_pkt_disconnect_thresh: Threshold for dropped pkts before disconnect
  882. * @rtt_mac_randomization: Enable/Disable RTT MAC randomization
  883. * @rtt3_enabled: RTT3 enable or disable info
  884. * @prevent_link_down: Enable/Disable prevention of link down
  885. * @memory_deep_sleep: Enable/Disable memory deep sleep
  886. * @cck_tx_fir_override: Enable/Disable CCK Tx FIR Override
  887. * @crash_inject: Enable/Disable Crash Inject
  888. * @lpass_support: Enable/Disable LPASS Support
  889. * @self_recovery: Enable/Disable Self Recovery
  890. * @sap_dot11mc: Enable/Disable SAP 802.11mc support
  891. * @fatal_event_trigger: Enable/Disable Fatal Events Trigger
  892. * @optimize_ca_event: Enable/Disable Optimization of CA events
  893. * @fw_timeout_crash: Enable/Disable FW Timeout Crash *
  894. * @debug_packet_log: Debug packet log flags
  895. * @enabled_11h: enable 11h flag
  896. * @enabled_11d: enable 11d flag
  897. * @enable_beacon_reception_stats: enable beacon reception stats
  898. */
  899. struct wlan_mlme_generic {
  900. enum band_info band_capability;
  901. enum band_info band;
  902. uint8_t select_5ghz_margin;
  903. uint8_t sub_20_chan_width;
  904. uint8_t ito_repeat_count;
  905. uint8_t pmf_sa_query_max_retries;
  906. uint16_t pmf_sa_query_retry_interval;
  907. uint16_t dropped_pkt_disconnect_thresh;
  908. bool rtt_mac_randomization;
  909. bool rtt3_enabled;
  910. bool prevent_link_down;
  911. bool memory_deep_sleep;
  912. bool cck_tx_fir_override;
  913. bool crash_inject;
  914. bool lpass_support;
  915. bool self_recovery;
  916. bool sap_dot11mc;
  917. bool fatal_event_trigger;
  918. bool optimize_ca_event;
  919. bool fw_timeout_crash;
  920. uint8_t debug_packet_log;
  921. bool enabled_11h;
  922. bool enabled_11d;
  923. bool enable_deauth_to_disassoc_map;
  924. bool enable_beacon_reception_stats;
  925. };
  926. /*
  927. * struct wlan_mlme_product_details_cfg - product details config items
  928. * @manufacturer_name: manufacture name
  929. * @model_number: model number
  930. * @model_name: model name
  931. * @manufacture_product_name: manufacture product name
  932. * @manufacture_product_version: manufacture product version
  933. */
  934. struct wlan_mlme_product_details_cfg {
  935. char manufacturer_name[WLAN_CFG_MFR_NAME_LEN + 1];
  936. char model_number[WLAN_CFG_MODEL_NUMBER_LEN + 1];
  937. char model_name[WLAN_CFG_MODEL_NAME_LEN + 1];
  938. char manufacture_product_name[WLAN_CFG_MFR_PRODUCT_NAME_LEN + 1];
  939. char manufacture_product_version[WLAN_CFG_MFR_PRODUCT_VERSION_LEN + 1];
  940. };
  941. /*
  942. * struct wlan_mlme_acs - All acs related cfg items
  943. * @is_acs_with_more_param - to enable acs with more param
  944. * @auto_channel_select_weight - to set acs channel weight
  945. * @is_vendor_acs_support - enable application based channel selection
  946. * @is_acs_support_for_dfs_ltecoex - enable channel for dfs and lte coex
  947. * @is_external_acs_policy - control external policy
  948. */
  949. struct wlan_mlme_acs {
  950. bool is_acs_with_more_param;
  951. uint32_t auto_channel_select_weight;
  952. bool is_vendor_acs_support;
  953. bool is_acs_support_for_dfs_ltecoex;
  954. bool is_external_acs_policy;
  955. };
  956. /*
  957. * struct wlan_mlme_cfg_twt - All twt related cfg items
  958. * @is_twt_bcast_enabled: twt capability for the session
  959. * @is_twt_enabled: global twt configuration
  960. * @is_twt_responder_enabled: twt responder
  961. * @is_twt_requestor_enabled: twt requestor
  962. * @twt_congestion_timeout: congestion timeout value
  963. */
  964. struct wlan_mlme_cfg_twt {
  965. bool is_twt_bcast_enabled;
  966. bool is_twt_enabled;
  967. bool is_twt_responder_enabled;
  968. bool is_twt_requestor_enabled;
  969. uint32_t twt_congestion_timeout;
  970. };
  971. /**
  972. * struct wlan_mlme_obss_ht40 - OBSS HT40 config items
  973. * @active_dwelltime: obss active dwelltime
  974. * @passive_dwelltime: obss passive dwelltime
  975. * @width_trigger_interval: obss trigger interval
  976. * @passive_per_channel: obss scan passive total duration per channel
  977. * @active_per_channel: obss scan active total duration per channel
  978. * @width_trans_delay: obss width transition delay
  979. * @scan_activity_threshold: obss scan activity threshold
  980. * @is_override_ht20_40_24g: use channel bonding in 2.4 GHz
  981. */
  982. struct wlan_mlme_obss_ht40 {
  983. uint32_t active_dwelltime;
  984. uint32_t passive_dwelltime;
  985. uint32_t width_trigger_interval;
  986. uint32_t passive_per_channel;
  987. uint32_t active_per_channel;
  988. uint32_t width_trans_delay;
  989. uint32_t scan_activity_threshold;
  990. bool is_override_ht20_40_24g;
  991. };
  992. /**
  993. * enum dot11p_mode - The 802.11p mode of operation
  994. * @WLAN_HDD_11P_DISABLED: 802.11p mode is disabled
  995. * @WLAN_HDD_11P_STANDALONE: 802.11p-only operation
  996. * @WLAN_HDD_11P_CONCURRENT: 802.11p and WLAN operate concurrently
  997. */
  998. enum dot11p_mode {
  999. CFG_11P_DISABLED = 0,
  1000. CFG_11P_STANDALONE,
  1001. CFG_11P_CONCURRENT,
  1002. };
  1003. #define MAX_VDEV_NSS 2
  1004. #define MAX_VDEV_CHAINS 2
  1005. /**
  1006. * struct wlan_mlme_nss_chains - MLME vdev config of nss, and chains
  1007. * @num_tx_chains: tx chains of vdev config
  1008. * @num_rx_chains: rx chains of vdev config
  1009. * @tx_nss: tx nss of vdev config
  1010. * @rx_nss: rx nss of vdev config
  1011. * @num_tx_chains_11b: number of tx chains in 11b mode
  1012. * @num_tx_chains_11g: number of tx chains in 11g mode
  1013. * @num_tx_chains_11a: number of tx chains in 11a mode
  1014. * @disable_rx_mrc: disable 2 rx chains, in rx nss 1 mode
  1015. * @disable_tx_mrc: disable 2 tx chains, in tx nss 1 mode
  1016. */
  1017. struct wlan_mlme_nss_chains {
  1018. uint32_t num_tx_chains[NSS_CHAINS_BAND_MAX];
  1019. uint32_t num_rx_chains[NSS_CHAINS_BAND_MAX];
  1020. uint32_t tx_nss[NSS_CHAINS_BAND_MAX];
  1021. uint32_t rx_nss[NSS_CHAINS_BAND_MAX];
  1022. uint32_t num_tx_chains_11b;
  1023. uint32_t num_tx_chains_11g;
  1024. uint32_t num_tx_chains_11a;
  1025. bool disable_rx_mrc[NSS_CHAINS_BAND_MAX];
  1026. bool disable_tx_mrc[NSS_CHAINS_BAND_MAX];
  1027. };
  1028. /**
  1029. * enum station_keepalive_method - available keepalive methods for stations
  1030. * @MLME_STA_KEEPALIVE_NULL_DATA: null data packet
  1031. * @MLME_STA_KEEPALIVE_GRAT_ARP: gratuitous ARP packet
  1032. * @MLME_STA_KEEPALIVE_COUNT: number of method options available
  1033. */
  1034. enum station_keepalive_method {
  1035. MLME_STA_KEEPALIVE_NULL_DATA,
  1036. MLME_STA_KEEPALIVE_GRAT_ARP,
  1037. /* keep at the end */
  1038. MLME_STA_KEEPALIVE_COUNT
  1039. };
  1040. /**
  1041. * struct wlan_mlme_sta_cfg - MLME STA configuration items
  1042. * @sta_keep_alive_period: Sends NULL frame to AP period
  1043. * @tgt_gtx_usr_cfg: Target gtx user config
  1044. * @pmkid_modes: Enable PMKID modes
  1045. * @wait_cnf_timeout: Wait assoc cnf timeout
  1046. * @sta_miracast_mcc_rest_time: STA+MIRACAST(P2P) MCC rest time
  1047. * @dot11p_mode: Set 802.11p mode
  1048. * @fils_max_chan_guard_time: Set maximum channel guard time
  1049. * @current_rssi: Current rssi
  1050. * @ignore_peer_erp_info: Ignore peer infrormation
  1051. * @sta_prefer_80mhz_over_160mhz: Set Sta preference to connect in 80HZ/160HZ
  1052. * @enable_5g_ebt: Set default 5G early beacon termination
  1053. * @deauth_before_connection: Send deauth before connection or not
  1054. * @enable_go_cts2self_for_sta: Stop NOA and start using cts2self
  1055. * @qcn_ie_support: QCN IE support
  1056. * @force_rsne_override: Force rsnie override from user
  1057. * @single_tid: Set replay counter for all TID
  1058. * @allow_tpc_from_ap: Support for AP power constraint
  1059. */
  1060. struct wlan_mlme_sta_cfg {
  1061. uint32_t sta_keep_alive_period;
  1062. uint32_t tgt_gtx_usr_cfg;
  1063. uint32_t pmkid_modes;
  1064. uint32_t wait_cnf_timeout;
  1065. uint32_t sta_miracast_mcc_rest_time;
  1066. enum dot11p_mode dot11p_mode;
  1067. uint8_t fils_max_chan_guard_time;
  1068. uint8_t current_rssi;
  1069. bool ignore_peer_erp_info;
  1070. bool sta_prefer_80mhz_over_160mhz;
  1071. bool enable_5g_ebt;
  1072. bool deauth_before_connection;
  1073. bool enable_go_cts2self_for_sta;
  1074. bool qcn_ie_support;
  1075. bool force_rsne_override;
  1076. bool single_tid;
  1077. bool allow_tpc_from_ap;
  1078. enum station_keepalive_method sta_keepalive_method;
  1079. };
  1080. /**
  1081. * struct wlan_mlme_stats_cfg - MLME stats configuration items
  1082. * @stats_periodic_display_time: time after which stats will be printed
  1083. * @stats_link_speed_rssi_high: rssi link speed, high
  1084. * @stats_link_speed_rssi_med: medium rssi link speed
  1085. * @stats_link_speed_rssi_low: rssi link speed, low
  1086. * @stats_report_max_link_speed_rssi: report speed limit
  1087. */
  1088. struct wlan_mlme_stats_cfg {
  1089. uint32_t stats_periodic_display_time;
  1090. int stats_link_speed_rssi_high;
  1091. int stats_link_speed_rssi_med;
  1092. int stats_link_speed_rssi_low;
  1093. uint32_t stats_report_max_link_speed_rssi;
  1094. };
  1095. /**
  1096. * enum roaming_dfs_channel_type - Allow dfs channel in roam
  1097. * @CFG_ROAMING_DFS_CHANNEL_DISABLED: Disallow dfs channel in roam
  1098. * @CFG_ROAMING_DFS_CHANNEL_ENABLED_NORMAL: Allow dfs channel
  1099. * @CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE: Allow dfs channel with active scan
  1100. */
  1101. enum roaming_dfs_channel_type {
  1102. ROAMING_DFS_CHANNEL_DISABLED,
  1103. ROAMING_DFS_CHANNEL_ENABLED_NORMAL,
  1104. ROAMING_DFS_CHANNEL_ENABLED_ACTIVE,
  1105. };
  1106. /*
  1107. * struct bss_load_trigger - parameters related to bss load triggered roam
  1108. * @enabled: flag to check if this trigger is enabled/disabled
  1109. * @threshold: Bss load threshold value above which roaming should start
  1110. * @sample_time: Time duration in milliseconds for which the bss load value
  1111. * should be monitored
  1112. */
  1113. struct bss_load_trigger {
  1114. bool enabled;
  1115. uint32_t threshold;
  1116. uint32_t sample_time;
  1117. };
  1118. /*
  1119. * @mawc_roam_enabled: Enable/Disable MAWC during roaming
  1120. * @enable_fast_roam_in_concurrency:Enable LFR roaming on STA during concurrency
  1121. * @lfr3_roaming_offload: Enable/disable roam offload feature
  1122. * @early_stop_scan_enable: Set early stop scan
  1123. * @lfr3_enable_subnet_detection: Enable LFR3 subnet detection
  1124. * @enable_5g_band_pref: Enable preference for 5G from INI
  1125. * @ese_enabled: Enable ESE feature
  1126. * @lfr_enabled: Enable fast roaming
  1127. * @mawc_enabled: Enable MAWC
  1128. * @fast_transition_enabled: Enable fast transition
  1129. * @wes_mode_enabled: Enable WES mode
  1130. * @mawc_roam_traffic_threshold: Configure traffic threshold
  1131. * @mawc_roam_ap_rssi_threshold: Best AP RSSI threshold
  1132. * @mawc_roam_rssi_high_adjust: Adjust MAWC roam high RSSI
  1133. * @mawc_roam_rssi_low_adjust: Adjust MAWC roam low RSSI
  1134. * @roam_rssi_abs_threshold: The min RSSI of the candidate AP
  1135. * @rssi_threshold_offset_5g: Lookup threshold offset for 5G band
  1136. * @early_stop_scan_min_threshold: Set early stop scan min
  1137. * @early_stop_scan_max_threshold: Set early stop scan max
  1138. * @first_scan_bucket_threshold: Set first scan bucket
  1139. * @roam_dense_traffic_threshold: Dense traffic threshold
  1140. * @roam_dense_rssi_thre_offset: Sets dense roam RSSI threshold diff
  1141. * @roam_dense_min_aps: Sets minimum number of AP for dense roam
  1142. * @roam_bg_scan_bad_rssi_threshold:RSSI threshold for background roam
  1143. * @roam_bg_scan_client_bitmap: Bitmap used to identify the scan clients
  1144. * @roam_bg_scan_bad_rssi_offset_2g:RSSI threshold offset for 2G to 5G roam
  1145. * @adaptive_roamscan_dwell_mode: Sets dwell time adaptive mode
  1146. * @per_roam_enable: To enabled/disable PER based roaming in FW
  1147. * @per_roam_config_high_rate_th: Rate at which PER based roam will stop
  1148. * @per_roam_config_low_rate_th: Rate at which PER based roam will start
  1149. * @per_roam_config_rate_th_percent:Percentage at which FW will issue roam scan
  1150. * @per_roam_rest_time: FW will wait once it issues a roam scan.
  1151. * @per_roam_monitor_time: Min time to be considered as valid scenario
  1152. * @per_roam_min_candidate_rssi: Min roamable AP RSSI for candidate selection
  1153. * @lfr3_disallow_duration: Disallow duration before roaming
  1154. * @lfr3_rssi_channel_penalization: RSSI penalization
  1155. * @lfr3_num_disallowed_aps: Max number of AP's to maintain in LCA list
  1156. * @rssi_boost_threshold_5g: Boost threshold above which 5 GHz is favored
  1157. * @rssi_boost_factor_5g: Factor by which 5GHz RSSI is boosted
  1158. * @max_rssi_boost_5g: Maximum boost that can be applied to 5G RSSI
  1159. * @rssi_penalize_threshold_5g: Penalize thres above which 5G isn't favored
  1160. * @rssi_penalize_factor_5g: Factor by which 5GHz RSSI is penalizeed
  1161. * @max_rssi_penalize_5g: Max penalty that can be applied to 5G RSSI
  1162. * @max_num_pre_auth: Configure max number of pre-auth
  1163. * @roam_preauth_retry_count: Configure the max number of preauth retry
  1164. * @roam_preauth_no_ack_timeout: Configure the no ack timeout period
  1165. * @roam_rssi_diff: Enable roam based on rssi
  1166. * @roam_scan_offload_enabled: Enable Roam Scan Offload
  1167. * @neighbor_scan_timer_period: Neighbor scan timer period
  1168. * @neighbor_scan_min_timer_period: Min neighbor scan timer period
  1169. * @neighbor_lookup_rssi_threshold: Neighbor lookup rssi threshold
  1170. * @opportunistic_scan_threshold_diff: Set oppurtunistic threshold diff
  1171. * @roam_rescan_rssi_diff: Sets RSSI for Scan trigger in firmware
  1172. * @neighbor_scan_min_chan_time: Neighbor scan channel min time
  1173. * @neighbor_scan_max_chan_time: Neighbor scan channel max time
  1174. * @neighbor_scan_results_refresh_period: Neighbor scan refresh period
  1175. * @empty_scan_refresh_period: Empty scan refresh period
  1176. * @roam_bmiss_first_bcnt: First beacon miss count
  1177. * @roam_bmiss_final_bcnt: Final beacon miss count
  1178. * @roam_beacon_rssi_weight: Beacon miss weight
  1179. * @roaming_dfs_channel: Allow dfs channel in roam
  1180. * @roam_scan_hi_rssi_maxcount: 5GHz maximum scan count
  1181. * @roam_scan_hi_rssi_delta: RSSI Delta for scan trigger
  1182. * @roam_scan_hi_rssi_delay: Minimum delay between 5GHz scans
  1183. * @roam_scan_hi_rssi_ub: Upper bound after which 5GHz scan
  1184. * @roam_prefer_5ghz: Prefer roaming to 5GHz Bss
  1185. * @roam_intra_band: Prefer roaming within Band
  1186. * @roam_scan_home_away_time: The home away time to firmware
  1187. * @roam_scan_n_probes: The number of probes to be sent for firmware roaming
  1188. * @delay_before_vdev_stop:Wait time for tx complete before vdev stop
  1189. * @neighbor_scan_channel_list: Neighbor scan channel list
  1190. * @neighbor_scan_channel_list_num: Neighbor scan channel list number
  1191. */
  1192. struct wlan_mlme_lfr_cfg {
  1193. bool mawc_roam_enabled;
  1194. bool enable_fast_roam_in_concurrency;
  1195. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  1196. bool lfr3_roaming_offload;
  1197. #endif
  1198. bool early_stop_scan_enable;
  1199. bool lfr3_enable_subnet_detection;
  1200. bool enable_5g_band_pref;
  1201. #ifdef FEATURE_WLAN_ESE
  1202. bool ese_enabled;
  1203. #endif
  1204. bool lfr_enabled;
  1205. bool mawc_enabled;
  1206. bool fast_transition_enabled;
  1207. bool wes_mode_enabled;
  1208. uint32_t mawc_roam_traffic_threshold;
  1209. uint32_t mawc_roam_ap_rssi_threshold;
  1210. uint32_t mawc_roam_rssi_high_adjust;
  1211. uint32_t mawc_roam_rssi_low_adjust;
  1212. uint32_t roam_rssi_abs_threshold;
  1213. uint8_t rssi_threshold_offset_5g;
  1214. uint8_t early_stop_scan_min_threshold;
  1215. uint8_t early_stop_scan_max_threshold;
  1216. uint8_t first_scan_bucket_threshold;
  1217. uint32_t roam_dense_traffic_threshold;
  1218. uint32_t roam_dense_rssi_thre_offset;
  1219. uint32_t roam_dense_min_aps;
  1220. uint32_t roam_bg_scan_bad_rssi_threshold;
  1221. uint32_t roam_bg_scan_client_bitmap;
  1222. uint32_t roam_bg_scan_bad_rssi_offset_2g;
  1223. uint32_t adaptive_roamscan_dwell_mode;
  1224. uint32_t per_roam_enable;
  1225. uint32_t per_roam_config_high_rate_th;
  1226. uint32_t per_roam_config_low_rate_th;
  1227. uint32_t per_roam_config_rate_th_percent;
  1228. uint32_t per_roam_rest_time;
  1229. uint32_t per_roam_monitor_time;
  1230. uint32_t per_roam_min_candidate_rssi;
  1231. uint32_t lfr3_disallow_duration;
  1232. uint32_t lfr3_rssi_channel_penalization;
  1233. uint32_t lfr3_num_disallowed_aps;
  1234. uint32_t rssi_boost_threshold_5g;
  1235. uint32_t rssi_boost_factor_5g;
  1236. uint32_t max_rssi_boost_5g;
  1237. uint32_t rssi_penalize_threshold_5g;
  1238. uint32_t rssi_penalize_factor_5g;
  1239. uint32_t max_rssi_penalize_5g;
  1240. uint32_t max_num_pre_auth;
  1241. uint32_t roam_preauth_retry_count;
  1242. uint32_t roam_preauth_no_ack_timeout;
  1243. uint32_t roam_rssi_diff;
  1244. bool roam_scan_offload_enabled;
  1245. uint32_t neighbor_scan_timer_period;
  1246. uint32_t neighbor_scan_min_timer_period;
  1247. uint32_t neighbor_lookup_rssi_threshold;
  1248. uint32_t opportunistic_scan_threshold_diff;
  1249. uint32_t roam_rescan_rssi_diff;
  1250. uint16_t neighbor_scan_min_chan_time;
  1251. uint16_t neighbor_scan_max_chan_time;
  1252. uint32_t neighbor_scan_results_refresh_period;
  1253. uint32_t empty_scan_refresh_period;
  1254. uint8_t roam_bmiss_first_bcnt;
  1255. uint8_t roam_bmiss_final_bcnt;
  1256. uint32_t roam_beacon_rssi_weight;
  1257. enum roaming_dfs_channel_type roaming_dfs_channel;
  1258. uint32_t roam_scan_hi_rssi_maxcount;
  1259. uint32_t roam_scan_hi_rssi_delta;
  1260. uint32_t roam_scan_hi_rssi_delay;
  1261. uint32_t roam_scan_hi_rssi_ub;
  1262. bool roam_prefer_5ghz;
  1263. bool roam_intra_band;
  1264. uint16_t roam_scan_home_away_time;
  1265. uint32_t roam_scan_n_probes;
  1266. uint8_t delay_before_vdev_stop;
  1267. uint8_t neighbor_scan_channel_list[CFG_VALID_CHANNEL_LIST_LEN];
  1268. uint8_t neighbor_scan_channel_list_num;
  1269. struct bss_load_trigger bss_load_trig;
  1270. };
  1271. /**
  1272. * struct wlan_mlme_wmm_config - WMM configuration
  1273. * @wmm_mode: Enable WMM feature
  1274. * @b80211e_is_enabled: Enable 802.11e feature
  1275. * @uapsd_mask: what ACs to setup U-APSD for at assoc
  1276. * @bimplicit_qos_enabled: Enable implicit QOS
  1277. */
  1278. struct wlan_mlme_wmm_config {
  1279. uint8_t wmm_mode;
  1280. bool b80211e_is_enabled;
  1281. uint8_t uapsd_mask;
  1282. bool bimplicit_qos_enabled;
  1283. };
  1284. /**
  1285. * struct wlan_mlme_wmm_tspec_element - Default TSPEC parameters
  1286. * from the wmm spec
  1287. * @inactivity_interval: inactivity_interval as per wmm spec
  1288. * @burst_size_def: TS burst size
  1289. * @ts_ack_policy: TS Info ACK policy
  1290. * @ts_acm_is_off: ACM is off for AC
  1291. */
  1292. struct wlan_mlme_wmm_tspec_element {
  1293. #ifdef FEATURE_WLAN_ESE
  1294. uint32_t inactivity_intv;
  1295. #endif
  1296. bool burst_size_def;
  1297. enum mlme_ts_info_ack_policy ts_ack_policy;
  1298. bool ts_acm_is_off;
  1299. };
  1300. /**
  1301. * struct wlan_mlme_wmm_ac_vo - Default TSPEC parameters
  1302. * for AC_VO
  1303. * @dir_ac_vo: TSPEC direction for VO
  1304. * @nom_msdu_size_ac_vo: normal MSDU size for VO
  1305. * @mean_data_rate_ac_vo: mean data rate for VO
  1306. * @min_phy_rate_ac_vo: min PHY rate for VO
  1307. * @sba_ac_vo: surplus bandwidth allowance for VO
  1308. * @uapsd_vo_srv_intv: Uapsd service interval for voice
  1309. * @uapsd_vo_sus_intv: Uapsd suspension interval for voice
  1310. */
  1311. struct wlan_mlme_wmm_ac_vo {
  1312. uint8_t dir_ac_vo;
  1313. uint16_t nom_msdu_size_ac_vo;
  1314. uint32_t mean_data_rate_ac_vo;
  1315. uint32_t min_phy_rate_ac_vo;
  1316. uint16_t sba_ac_vo;
  1317. uint32_t uapsd_vo_srv_intv;
  1318. uint32_t uapsd_vo_sus_intv;
  1319. };
  1320. /**
  1321. * struct wlan_mlme_wmm_ac_vi - Default TSPEC parameters
  1322. * for AC_VI
  1323. * @dir_ac_vi: TSPEC direction for VI
  1324. * @nom_msdu_size_ac_vi: normal MSDU size for VI
  1325. * @mean_data_rate_ac_vi: mean data rate for VI
  1326. * @min_phy_rate_ac_vi: min PHY rate for VI
  1327. * @sba_ac_vi: surplus bandwidth allowance for VI
  1328. * @uapsd_vo_srv_intv: Uapsd service interval for VI
  1329. * @uapsd_vo_sus_intv: Uapsd suspension interval for VI
  1330. */
  1331. struct wlan_mlme_wmm_ac_vi {
  1332. uint8_t dir_ac_vi;
  1333. uint16_t nom_msdu_size_ac_vi;
  1334. uint32_t mean_data_rate_ac_vi;
  1335. uint32_t min_phy_rate_ac_vi;
  1336. uint16_t sba_ac_vi;
  1337. uint32_t uapsd_vi_srv_intv;
  1338. uint32_t uapsd_vi_sus_intv;
  1339. };
  1340. /**
  1341. * struct wlan_mlme_wmm_ac_be - Default TSPEC parameters
  1342. * for AC_BE
  1343. * @dir_ac_be: TSPEC direction for BE
  1344. * @nom_msdu_size_ac_be: normal MSDU size for BE
  1345. * @mean_data_rate_ac_be: mean data rate for BE
  1346. * @min_phy_rate_ac_be: min PHY rate for BE
  1347. * @sba_ac_be: surplus bandwidth allowance for BE
  1348. * @uapsd_be_srv_intv: Uapsd service interval for BE
  1349. * @uapsd_be_sus_intv: Uapsd suspension interval for BE
  1350. */
  1351. struct wlan_mlme_wmm_ac_be {
  1352. uint8_t dir_ac_be;
  1353. uint16_t nom_msdu_size_ac_be;
  1354. uint32_t mean_data_rate_ac_be;
  1355. uint32_t min_phy_rate_ac_be;
  1356. uint16_t sba_ac_be;
  1357. uint32_t uapsd_be_srv_intv;
  1358. uint32_t uapsd_be_sus_intv;
  1359. };
  1360. /**
  1361. * struct wlan_mlme_wmm_ac_bk - Default TSPEC parameters
  1362. * for AC_BK
  1363. * @dir_ac_bk: TSPEC direction for BK
  1364. * @nom_msdu_size_ac_bk: normal MSDU size for BK
  1365. * @mean_data_rate_ac_bk: mean data rate for BK
  1366. * @min_phy_rate_ac_bk: min PHY rate for BK
  1367. * @sba_ac_bk: surplus bandwidth allowance for BK
  1368. * @uapsd_bk_srv_intv: Uapsd service interval for BK
  1369. * @uapsd_bk_sus_intv: Uapsd suspension interval for BK
  1370. */
  1371. struct wlan_mlme_wmm_ac_bk {
  1372. uint8_t dir_ac_bk;
  1373. uint16_t nom_msdu_size_ac_bk;
  1374. uint32_t mean_data_rate_ac_bk;
  1375. uint32_t min_phy_rate_ac_bk;
  1376. uint16_t sba_ac_bk;
  1377. uint32_t uapsd_bk_srv_intv;
  1378. uint32_t uapsd_bk_sus_intv;
  1379. };
  1380. /**
  1381. * struct wlan_mlme_wmm_params - WMM CFG Items
  1382. * @qos_enabled: AP is enabled with 11E
  1383. * @wme_enabled: AP is enabled with WMM
  1384. * @max_sp_length: Maximum SP Length
  1385. * @wsm_enabled: AP is enabled with WSM
  1386. * @edca_profile: WMM Edca profile
  1387. * @wmm_config: WMM configuration
  1388. * @wmm_tspec_element: Default TSPEC parameters
  1389. * @ac_vo: Default TSPEC parameters for AC_VO
  1390. * @ac_vi: Default TSPEC parameters for AC_VI
  1391. * @ac_be: Default TSPEC parameters for AC_BE
  1392. * @ac_bk: Default TSPEC parameters for AC_BK
  1393. */
  1394. struct wlan_mlme_wmm_params {
  1395. bool qos_enabled;
  1396. bool wme_enabled;
  1397. uint8_t max_sp_length;
  1398. bool wsm_enabled;
  1399. uint32_t edca_profile;
  1400. struct wlan_mlme_wmm_config wmm_config;
  1401. struct wlan_mlme_wmm_tspec_element wmm_tspec_element;
  1402. struct wlan_mlme_wmm_ac_vo ac_vo;
  1403. struct wlan_mlme_wmm_ac_vi ac_vi;
  1404. struct wlan_mlme_wmm_ac_be ac_be;
  1405. struct wlan_mlme_wmm_ac_bk ac_bk;
  1406. };
  1407. /**
  1408. * struct wlan_mlme_weight_config - weight params to
  1409. * calculate best candidate
  1410. *
  1411. * @rssi_weightage: RSSI weightage
  1412. * @ht_caps_weightage: HT caps weightage
  1413. * @vht_caps_weightage: VHT caps weightage
  1414. * @he_caps_weightage: HE caps weightage
  1415. * @chan_width_weightage: Channel width weightage
  1416. * @chan_band_weightage: Channel band weightage
  1417. * @nss_weightage: NSS weightage
  1418. * @beamforming_cap_weightage: Beamforming caps weightage
  1419. * @pcl_weightage: PCL weightage
  1420. * @channel_congestion_weightage: channel congestion weightage
  1421. * @oce_wan_weightage: OCE WAN metrics weightage
  1422. */
  1423. struct wlan_mlme_weight_config {
  1424. uint8_t rssi_weightage;
  1425. uint8_t ht_caps_weightage;
  1426. uint8_t vht_caps_weightage;
  1427. uint8_t he_caps_weightage;
  1428. uint8_t chan_width_weightage;
  1429. uint8_t chan_band_weightage;
  1430. uint8_t nss_weightage;
  1431. uint8_t beamforming_cap_weightage;
  1432. uint8_t pcl_weightage;
  1433. uint8_t channel_congestion_weightage;
  1434. uint8_t oce_wan_weightage;
  1435. };
  1436. /**
  1437. * struct wlan_mlme_rssi_cfg_score - RSSI params to
  1438. * calculate best candidate
  1439. *
  1440. * @best_rssi_threshold: Best RSSI threshold
  1441. * @good_rssi_threshold: Good RSSI threshold
  1442. * @bad_rssi_threshold: Bad RSSI threshold
  1443. * @good_rssi_pcnt: Good RSSI Percentage
  1444. * @bad_rssi_pcnt: Bad RSSI Percentage
  1445. * @good_rssi_bucket_size: Good RSSI Bucket Size
  1446. * @bad_rssi_bucket_size: Bad RSSI Bucket Size
  1447. * @rssi_pref_5g_rssi_thresh: Preffered 5G RSSI threshold
  1448. */
  1449. struct wlan_mlme_rssi_cfg_score {
  1450. uint32_t best_rssi_threshold;
  1451. uint32_t good_rssi_threshold;
  1452. uint32_t bad_rssi_threshold;
  1453. uint32_t good_rssi_pcnt;
  1454. uint32_t bad_rssi_pcnt;
  1455. uint32_t good_rssi_bucket_size;
  1456. uint32_t bad_rssi_bucket_size;
  1457. uint32_t rssi_pref_5g_rssi_thresh;
  1458. };
  1459. /**
  1460. * struct wlan_mlme_per_slot_scoring - define % score for differents slots
  1461. * for a scoring param.
  1462. * num_slot: number of slots in which the param will be divided.
  1463. * Max 15. index 0 is used for 'not_present. Num_slot will
  1464. * equally divide 100. e.g, if num_slot = 4 slot 0 = 0-25%, slot
  1465. * 1 = 26-50% slot 2 = 51-75%, slot 3 = 76-100%
  1466. * score_pcnt3_to_0: Conatins score percentage for slot 0-3
  1467. * BITS 0-7 :- the scoring pcnt when not present
  1468. * BITS 8-15 :- SLOT_1
  1469. * BITS 16-23 :- SLOT_2
  1470. * BITS 24-31 :- SLOT_3
  1471. * score_pcnt7_to_4: Conatins score percentage for slot 4-7
  1472. * BITS 0-7 :- SLOT_4
  1473. * BITS 8-15 :- SLOT_5
  1474. * BITS 16-23 :- SLOT_6
  1475. * BITS 24-31 :- SLOT_7
  1476. * score_pcnt11_to_8: Conatins score percentage for slot 8-11
  1477. * BITS 0-7 :- SLOT_8
  1478. * BITS 8-15 :- SLOT_9
  1479. * BITS 16-23 :- SLOT_10
  1480. * BITS 24-31 :- SLOT_11
  1481. * score_pcnt15_to_12: Conatins score percentage for slot 12-15
  1482. * BITS 0-7 :- SLOT_12
  1483. * BITS 8-15 :- SLOT_13
  1484. * BITS 16-23 :- SLOT_14
  1485. * BITS 24-31 :- SLOT_15
  1486. */
  1487. struct wlan_mlme_per_slot_scoring {
  1488. uint32_t num_slot;
  1489. uint32_t score_pcnt3_to_0;
  1490. uint32_t score_pcnt7_to_4;
  1491. uint32_t score_pcnt11_to_8;
  1492. uint32_t score_pcnt15_to_12;
  1493. };
  1494. /*
  1495. * struct wlan_mlme_score_config - MLME BSS Scoring related config
  1496. * @enable_scoring_for_roam: Enable/disable BSS Scoring for Roaming
  1497. * @weight_cfg: Various Weight related Scoring Configs
  1498. * @rssi_score: RSSI Scoring related thresholds/percentages config
  1499. * @esp_qbss_scoring: ESP QBSS Scoring configs
  1500. * @oce_wan_scoring: OCE WAN Scoring Configs
  1501. * @bandwidth_weight_per_index: Bandwidth weight per index for scoring logic
  1502. * @nss_weight_per_index: NSS weight per index for scoring logic
  1503. * @band_weight_per_index: Band weight per index for scoring logic
  1504. * @roam_trigger_bitmap: bitmap for various roam triggers
  1505. * @roam_score_delta: percentage delta in roam score
  1506. */
  1507. struct wlan_mlme_scoring_cfg {
  1508. bool enable_scoring_for_roam;
  1509. struct wlan_mlme_weight_config weight_cfg;
  1510. struct wlan_mlme_rssi_cfg_score rssi_score;
  1511. struct wlan_mlme_per_slot_scoring esp_qbss_scoring;
  1512. struct wlan_mlme_per_slot_scoring oce_wan_scoring;
  1513. uint32_t bandwidth_weight_per_index;
  1514. uint32_t nss_weight_per_index;
  1515. uint32_t band_weight_per_index;
  1516. uint32_t roam_trigger_bitmap;
  1517. uint32_t roam_score_delta;
  1518. };
  1519. /* struct wlan_mlme_threshold - Threshold related config items
  1520. * @rts_threshold: set rts threshold
  1521. * @frag_threshold: set fragmentation threshold
  1522. */
  1523. struct wlan_mlme_threshold {
  1524. uint32_t rts_threshold;
  1525. uint32_t frag_threshold;
  1526. };
  1527. /* struct mlme_max_tx_power_24 - power related items
  1528. * @max_len: max length of string
  1529. * @len: actual len of string
  1530. * @data: Data in string format
  1531. */
  1532. struct mlme_max_tx_power_24 {
  1533. qdf_size_t max_len;
  1534. qdf_size_t len;
  1535. uint8_t data[CFG_MAX_TX_POWER_2_4_LEN];
  1536. };
  1537. /* struct mlme_max_tx_power_5 - power related items
  1538. * @max_len: max length of string
  1539. * @len: actual len of string
  1540. * @data: Data in string format
  1541. */
  1542. struct mlme_max_tx_power_5 {
  1543. qdf_size_t max_len;
  1544. qdf_size_t len;
  1545. uint8_t data[CFG_MAX_TX_POWER_5_LEN];
  1546. };
  1547. /* struct mlme_power_usage - power related items
  1548. * @max_len: max length of string
  1549. * @len: actual len of string
  1550. * @data: Data in string format
  1551. */
  1552. struct mlme_power_usage {
  1553. qdf_size_t max_len;
  1554. qdf_size_t len;
  1555. char data[CFG_POWER_USAGE_MAX_LEN];
  1556. };
  1557. /*
  1558. * struct wlan_mlme_power - power related config items
  1559. * @max_tx_power_24: max power Tx for 2.4 ghz
  1560. * @max_tx_power_5: max power Tx for 5 ghz
  1561. * @power_usage: power usage mode, min, max, mod
  1562. * @tx_power_2g: limit tx power in 2.4 ghz
  1563. * @tx_power_5g: limit tx power in 5 ghz
  1564. */
  1565. struct wlan_mlme_power {
  1566. struct mlme_max_tx_power_24 max_tx_power_24;
  1567. struct mlme_max_tx_power_5 max_tx_power_5;
  1568. struct mlme_power_usage power_usage;
  1569. uint8_t tx_power_2g;
  1570. uint8_t tx_power_5g;
  1571. };
  1572. /*
  1573. * struct wlan_mlme_timeout - mlme timeout related config items
  1574. * @join_failure_timeout: join failure timeout
  1575. * @auth_failure_timeout: authenticate failure timeout
  1576. * @auth_rsp_timeout: authenticate response timeout
  1577. * @assoc_failure_timeout: assoc failure timeout
  1578. * @reassoc_failure_timeout: re-assoc failure timeout
  1579. * @probe_after_hb_fail_timeout: Probe after HB fail timeout
  1580. * @olbc_detect_timeout: OLBC detect timeout
  1581. * @addts_rsp_timeout: ADDTS rsp timeout value
  1582. * @heart_beat_threshold: Heart beat threshold
  1583. * @ap_keep_alive_timeout: AP keep alive timeout value
  1584. * @ap_link_monitor_timeout: AP link monitor timeout value
  1585. * @ps_data_inactivity_timeout: PS data inactivity timeout
  1586. * @wmi_wq_watchdog_timeout: timeout period for wmi watchdog bite
  1587. */
  1588. struct wlan_mlme_timeout {
  1589. uint32_t join_failure_timeout;
  1590. uint32_t auth_failure_timeout;
  1591. uint32_t auth_rsp_timeout;
  1592. uint32_t assoc_failure_timeout;
  1593. uint32_t reassoc_failure_timeout;
  1594. uint32_t probe_after_hb_fail_timeout;
  1595. uint32_t olbc_detect_timeout;
  1596. uint32_t addts_rsp_timeout;
  1597. uint32_t heart_beat_threshold;
  1598. uint32_t ap_keep_alive_timeout;
  1599. uint32_t ap_link_monitor_timeout;
  1600. uint32_t ps_data_inactivity_timeout;
  1601. uint32_t wmi_wq_watchdog_timeout;
  1602. };
  1603. /**
  1604. * struct wlan_mlme_oce - OCE related config items
  1605. * @enable_bcast_probe_rsp: enable broadcast probe response
  1606. * @oce_sta_enabled: enable/disable oce feature for sta
  1607. * @oce_sap_enabled: enable/disable oce feature for sap
  1608. * @fils_enabled: enable/disable fils support
  1609. * @feature_bitmap: oce feature bitmap
  1610. *
  1611. */
  1612. struct wlan_mlme_oce {
  1613. bool enable_bcast_probe_rsp;
  1614. bool oce_sta_enabled;
  1615. bool oce_sap_enabled;
  1616. bool fils_enabled;
  1617. uint8_t feature_bitmap;
  1618. };
  1619. #define MLME_WEP_KEY_LEN_13 (13)
  1620. #define MLME_WEP_KEY_LENGTH_5 (5)
  1621. /**
  1622. * enum wep_key_id - values passed to get/set wep default keys
  1623. * @MLME_WEP_DEFAULT_KEY_1: wep default key 1
  1624. * @MLME_WEP_DEFAULT_KEY_2: wep default key 2
  1625. * @MLME_WEP_DEFAULT_KEY_3: wep default key 3
  1626. * @MLME_WEP_DEFAULT_KEY_4: wep default key 4
  1627. */
  1628. enum wep_key_id {
  1629. MLME_WEP_DEFAULT_KEY_1 = 0,
  1630. MLME_WEP_DEFAULT_KEY_2,
  1631. MLME_WEP_DEFAULT_KEY_3,
  1632. MLME_WEP_DEFAULT_KEY_4
  1633. };
  1634. /**
  1635. * struct wlan_mlme_wep_cfg - WEP related configs
  1636. * @is_privacy_enabled: Flag to check if encryption is enabled
  1637. * @is_shared_key_auth: Flag to check if the auth type is shared key
  1638. * @is_auth_open_system: Flag to check if the auth type is open
  1639. * @auth_type: Authentication type value
  1640. * @wep_default_key_id: Default WEP key id
  1641. * @wep_default_key_1: WEP encryption key 1
  1642. * @wep_default_key_2: WEP encryption key 2
  1643. * @wep_default_key_3: WEP encryption key 3
  1644. * @wep_default_key_4: WEP encryption key 4
  1645. */
  1646. struct wlan_mlme_wep_cfg {
  1647. bool is_privacy_enabled;
  1648. bool is_shared_key_auth;
  1649. bool is_auth_open_system;
  1650. uint8_t auth_type;
  1651. uint8_t wep_default_key_id;
  1652. struct mlme_cfg_str wep_default_key_1;
  1653. struct mlme_cfg_str wep_default_key_2;
  1654. struct mlme_cfg_str wep_default_key_3;
  1655. struct mlme_cfg_str wep_default_key_4;
  1656. };
  1657. /**
  1658. * struct wlan_mlme_wifi_pos_cfg - WIFI POS configs
  1659. * @fine_time_meas_cap: fine timing measurement capability information
  1660. */
  1661. struct wlan_mlme_wifi_pos_cfg {
  1662. uint32_t fine_time_meas_cap;
  1663. };
  1664. #define MLME_SET_BIT(value, bit_offset) ((value) |= (1 << (bit_offset)))
  1665. #define BTM_OFFLOAD_CONFIG_BIT_8 8
  1666. #define BTM_OFFLOAD_CONFIG_BIT_7 7
  1667. /*
  1668. * struct wlan_mlme_btm - BTM related configs
  1669. * @prefer_btm_query: flag to prefer btm query over 11k
  1670. * @abridge_flag: set this flag to enable firmware to sort candidates based on
  1671. * roam score rather than selecting preferred APs.
  1672. * @btm_offload_config: configure btm offload
  1673. * @btm_solicited_timeout: configure timeout value for waiting BTM request
  1674. * @btm_max_attempt_cnt: configure maximum attempt for sending BTM query to ESS
  1675. * @btm_sticky_time: configure Stick time after roaming to new AP by BTM
  1676. * @rct_validity_timer: Timeout values for roam cache table entries
  1677. * @disassoc_timer_threshold: Disassociation timeout till which roam scan need
  1678. * not be triggered
  1679. */
  1680. struct wlan_mlme_btm {
  1681. bool prefer_btm_query;
  1682. bool abridge_flag;
  1683. uint32_t btm_offload_config;
  1684. uint32_t btm_solicited_timeout;
  1685. uint32_t btm_max_attempt_cnt;
  1686. uint32_t btm_sticky_time;
  1687. uint32_t rct_validity_timer;
  1688. uint32_t disassoc_timer_threshold;
  1689. };
  1690. /**
  1691. * struct wlan_mlme_fe_wlm - WLM related configs
  1692. * @latency_enable: Flag to check if latency is enabled
  1693. * @latency_level: WLM latency level
  1694. * @latency_flags: WLM latency flags setting
  1695. */
  1696. struct wlan_mlme_fe_wlm {
  1697. bool latency_enable;
  1698. uint8_t latency_level;
  1699. uint32_t latency_flags[MLME_NUM_WLM_LATENCY_LEVEL];
  1700. };
  1701. /**
  1702. * struct wlan_mlme_fe_rrm - RRM related configs
  1703. * @rrm_enabled: Flag to check if RRM is enabled
  1704. * @rrm_rand_interval: RRM randomization interval
  1705. * @rm_capability: RM enabled capabilities IE
  1706. */
  1707. struct wlan_mlme_fe_rrm {
  1708. bool rrm_enabled;
  1709. uint8_t rrm_rand_interval;
  1710. uint8_t rm_capability[MLME_RMENABLEDCAP_MAX_LEN];
  1711. };
  1712. #ifdef MWS_COEX
  1713. /*
  1714. * struct wlan_mlme_mwc - MWC related configs
  1715. * @mws_coex_4g_quick_tdm: bitmap to set mws-coex 5g-nr power limit
  1716. * @mws_coex_5g_nr_pwr_limit: bitmap to set mws-coex 5g-nr power limit
  1717. **/
  1718. struct wlan_mlme_mwc {
  1719. uint32_t mws_coex_4g_quick_tdm;
  1720. uint32_t mws_coex_5g_nr_pwr_limit;
  1721. };
  1722. #else
  1723. struct wlan_mlme_mwc {
  1724. };
  1725. #endif
  1726. /**
  1727. * struct wlan_mlme_reg - REG related configs
  1728. * @self_gen_frm_pwr: self-generated frame power in tx chain mask
  1729. * for CCK rates
  1730. * @etsi13_srd_chan_in_master_mode: etsi13 srd chan in master mode
  1731. * @restart_beaconing_on_ch_avoid: restart beaconing on ch avoid
  1732. * @indoor_channel_support: indoor channel support
  1733. * @scan_11d_interval: scan 11d interval
  1734. */
  1735. struct wlan_mlme_reg {
  1736. uint32_t self_gen_frm_pwr;
  1737. bool etsi13_srd_chan_in_master_mode;
  1738. enum restart_beaconing_on_ch_avoid_rule
  1739. restart_beaconing_on_ch_avoid;
  1740. bool indoor_channel_support;
  1741. uint32_t scan_11d_interval;
  1742. };
  1743. /**
  1744. * struct wlan_mlme_cfg - MLME config items
  1745. * @chainmask_cfg: VHT chainmask related cfg items
  1746. * @edca_params: edca related CFG items
  1747. * @gen: Generic CFG items
  1748. * @ht_caps: HT related CFG Items
  1749. * @he_caps: HE related cfg items
  1750. * @lfr: LFR related CFG Items
  1751. * @obss_ht40:obss ht40 CFG Items
  1752. * @mbo_cfg: Multiband Operation related CFG items
  1753. * @vht_caps: VHT related CFG Items
  1754. * @qos_mlme_params: QOS CFG Items
  1755. * @rates: Rates related cfg items
  1756. * @product_details: product details related CFG Items
  1757. * @dfs_cfg: DFS related CFG Items
  1758. * @sap_protection_cfg: SAP erp protection related CFG items
  1759. * @sap_cfg: sap CFG items
  1760. * @nss_chains_ini_cfg: Per vdev nss, chains related CFG items
  1761. * @sta: sta CFG Items
  1762. * @stats: stats CFG Items
  1763. * @scoring: BSS Scoring related CFG Items
  1764. * @oce: OCE related CFG items
  1765. * @threshold: threshold related cfg items
  1766. * @timeouts: mlme timeout related CFG items
  1767. * @twt_cfg: TWT CFG Items
  1768. * @wlan_mlme_power: power related items
  1769. * @acs: ACS related CFG items
  1770. * @feature_flags: Feature flag config items
  1771. * @ps_params: Powersave related ini configs
  1772. * @wep_params: WEP related config items
  1773. * @wifi_pos_cfg: WIFI POS config
  1774. * @wmm_params: WMM related CFG & INI Items
  1775. * @wps_params: WPS related CFG itmes
  1776. * @btm: BTM related CFG itmes
  1777. * @wlm_config: WLM related CFG items
  1778. * @rrm_config: RRM related CFG items
  1779. * @mwc: MWC related CFG items
  1780. * @reg: REG related CFG itmes
  1781. */
  1782. struct wlan_mlme_cfg {
  1783. struct wlan_mlme_chainmask chainmask_cfg;
  1784. struct wlan_mlme_edca_params edca_params;
  1785. struct wlan_mlme_generic gen;
  1786. struct wlan_mlme_ht_caps ht_caps;
  1787. #ifdef WLAN_FEATURE_11AX
  1788. struct wlan_mlme_he_caps he_caps;
  1789. #endif
  1790. struct wlan_mlme_lfr_cfg lfr;
  1791. struct wlan_mlme_obss_ht40 obss_ht40;
  1792. struct wlan_mlme_mbo mbo_cfg;
  1793. struct wlan_mlme_vht_caps vht_caps;
  1794. struct wlan_mlme_qos qos_mlme_params;
  1795. struct wlan_mlme_rates rates;
  1796. struct wlan_mlme_product_details_cfg product_details;
  1797. struct wlan_mlme_dfs_cfg dfs_cfg;
  1798. struct wlan_mlme_sap_protection sap_protection_cfg;
  1799. struct wlan_mlme_cfg_sap sap_cfg;
  1800. struct wlan_mlme_nss_chains nss_chains_ini_cfg;
  1801. struct wlan_mlme_sta_cfg sta;
  1802. struct wlan_mlme_stats_cfg stats;
  1803. struct wlan_mlme_scoring_cfg scoring;
  1804. struct wlan_mlme_oce oce;
  1805. struct wlan_mlme_threshold threshold;
  1806. struct wlan_mlme_timeout timeouts;
  1807. struct wlan_mlme_cfg_twt twt_cfg;
  1808. struct wlan_mlme_power power;
  1809. struct wlan_mlme_acs acs;
  1810. struct wlan_mlme_feature_flag feature_flags;
  1811. struct wlan_mlme_powersave ps_params;
  1812. struct wlan_mlme_wep_cfg wep_params;
  1813. struct wlan_mlme_wifi_pos_cfg wifi_pos_cfg;
  1814. struct wlan_mlme_wmm_params wmm_params;
  1815. struct wlan_mlme_wps_params wps_params;
  1816. struct wlan_mlme_btm btm;
  1817. struct wlan_mlme_fe_wlm wlm_config;
  1818. struct wlan_mlme_fe_rrm rrm_config;
  1819. struct wlan_mlme_mwc mwc;
  1820. struct wlan_mlme_reg reg;
  1821. };
  1822. #endif