wmi_unified_param.h 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271
  1. /*
  2. * Copyright (c) 2016 The Linux Foundation. All rights reserved.
  3. *
  4. * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  5. *
  6. *
  7. * Permission to use, copy, modify, and/or distribute this software for
  8. * any purpose with or without fee is hereby granted, provided that the
  9. * above copyright notice and this permission notice appear in all
  10. * copies.
  11. *
  12. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  13. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  14. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  15. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  16. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  17. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  18. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  19. * PERFORMANCE OF THIS SOFTWARE.
  20. */
  21. /*
  22. * This file was originally distributed by Qualcomm Atheros, Inc.
  23. * under proprietary terms before Copyright ownership was assigned
  24. * to the Linux Foundation.
  25. */
  26. /*
  27. * This file contains the API definitions for the Unified Wireless Module
  28. * Interface (WMI).
  29. */
  30. #ifndef _WMI_UNIFIED_PARAM_H_
  31. #define _WMI_UNIFIED_PARAM_H_
  32. #include "wmi_unified.h"
  33. #define IEEE80211_ADDR_LEN 6 /* size of 802.11 address */
  34. #define WMI_MAC_MAX_SSID_LENGTH 32
  35. #define WMI_SCAN_MAX_NUM_SSID 0x0A
  36. #define mgmt_tx_dl_frm_len 64
  37. #define WMI_SMPS_MASK_LOWER_16BITS 0xFF
  38. #define WMI_SMPS_MASK_UPPER_3BITS 0x7
  39. #define WMI_SMPS_PARAM_VALUE_S 29
  40. #define WMI_MAX_NUM_ARGS 8
  41. /* The size of the utc time in bytes. */
  42. #define WMI_SIZE_UTC_TIME (10)
  43. /* The size of the utc time error in bytes. */
  44. #define WMI_SIZE_UTC_TIME_ERROR (5)
  45. #define WMI_MCC_MIN_CHANNEL_QUOTA 20
  46. #define WMI_MCC_MAX_CHANNEL_QUOTA 80
  47. #define WMI_MCC_MIN_NON_ZERO_CHANNEL_LATENCY 30
  48. #define WMI_BEACON_TX_BUFFER_SIZE (512)
  49. #define WMI_WIFI_SCANNING_MAC_OUI_LENGTH 3
  50. #define WMI_EXTSCAN_MAX_SIGNIFICANT_CHANGE_APS 64
  51. #define WMI_RSSI_THOLD_DEFAULT -300
  52. #define WMI_NLO_FREQ_THRESH 1000
  53. #define WMI_SEC_TO_MSEC(sec) (sec * 1000)
  54. #define WMI_MSEC_TO_USEC(msec) (msec * 1000)
  55. #define WMI_ETH_LEN 64
  56. #define WMI_QOS_NUM_TSPEC_MAX 2
  57. #define WMI_QOS_NUM_AC_MAX 4
  58. #define WMI_IPV4_ADDR_LEN 4
  59. #define WMI_KEEP_ALIVE_NULL_PKT 1
  60. #define WMI_KEEP_ALIVE_UNSOLICIT_ARP_RSP 2
  61. #ifdef WLAN_NS_OFFLOAD
  62. /* support only one IPv6 offload */
  63. #define WMI_MAC_NS_OFFLOAD_SIZE 1
  64. /* Number of target IP V6 addresses for NS offload */
  65. #define WMI_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA 16
  66. #define WMI_MAC_IPV6_ADDR_LEN 16
  67. #define WMI_IPV6_ADDR_VALID 1
  68. #endif /* WLAN_NS_OFFLOAD */
  69. #define WMI_EXTSCAN_MAX_HOTLIST_SSIDS 8
  70. #define WMI_ROAM_MAX_CHANNELS 80
  71. #ifdef FEATURE_WLAN_EXTSCAN
  72. #define WMI_MAX_EXTSCAN_MSG_SIZE 1536
  73. #define WMI_EXTSCAN_REST_TIME 100
  74. #define WMI_EXTSCAN_MAX_SCAN_TIME 50000
  75. #define WMI_EXTSCAN_BURST_DURATION 150
  76. #endif
  77. #define WMI_SCAN_NPROBES_DEFAULT (2)
  78. #define WMI_SEC_TO_MSEC(sec) (sec * 1000) /* sec to msec */
  79. #define WMI_MSEC_TO_USEC(msec) (msec * 1000) /* msec to usec */
  80. #define WMI_NLO_FREQ_THRESH 1000 /* in MHz */
  81. /**
  82. * struct vdev_create_params - vdev create cmd parameter
  83. * @if_id: interface id
  84. * @type: interface type
  85. * @subtype: interface subtype
  86. */
  87. struct vdev_create_params {
  88. uint8_t if_id;
  89. uint32_t type;
  90. uint32_t subtype;
  91. };
  92. /**
  93. * struct vdev_delete_params - vdev delete cmd parameter
  94. * @if_id: interface id
  95. */
  96. struct vdev_delete_params {
  97. uint8_t if_id;
  98. };
  99. /**
  100. * struct vdev_start_params - vdev start cmd parameter
  101. * @beacon_intval: beacon intval
  102. * @dtim_period: dtim period
  103. * @max_txpow: max tx power
  104. * @phy_ch_width chan_width: channel width
  105. * @is_dfs: flag to check if dfs enabled
  106. * @vdev_id: vdev id
  107. * @chan: channel no
  108. * @oper_mode: operating mode
  109. * @length: length
  110. * @ssId[32]: ssid
  111. * @hidden_ssid: hidden ssid
  112. * @pmf_enabled: is pmf enabled
  113. * @vht_capable: is vht capable
  114. * @ch_center_freq_seg0: center freq seq 0
  115. * @ch_center_freq_seg1: center freq seq 1
  116. * @ht_capable: is ht capable
  117. * @dfs_pri_multiplier: DFS multiplier
  118. * @dot11_mode: dot11 mode
  119. * @is_half_rate: Indicates half rate channel
  120. * @is_quarter_rate: Indicates quarter rate channel
  121. * @preferred_tx_streams: preferred tx streams
  122. * @preferred_rx_streams: preferred rx streams
  123. */
  124. struct vdev_start_params {
  125. uint32_t beacon_intval;
  126. uint32_t dtim_period;
  127. int32_t max_txpow;
  128. bool is_dfs;
  129. uint8_t vdev_id;
  130. uint8_t chan;
  131. uint8_t oper_mode;
  132. uint8_t length;
  133. uint8_t ssId[32];
  134. uint8_t hidden_ssid;
  135. uint8_t pmf_enabled;
  136. uint8_t vht_capable;
  137. uint8_t ch_center_freq_seg0;
  138. uint8_t ch_center_freq_seg1;
  139. uint8_t ht_capable;
  140. int32_t dfs_pri_multiplier;
  141. uint8_t dot11_mode;
  142. bool is_half_rate;
  143. bool is_quarter_rate;
  144. uint32_t preferred_tx_streams;
  145. uint32_t preferred_rx_streams;
  146. };
  147. /**
  148. * struct vdev_stop_params - vdev stop cmd parameter
  149. * @vdev_id: vdev id
  150. */
  151. struct vdev_stop_params {
  152. uint8_t vdev_id;
  153. };
  154. /**
  155. * struct vdev_up_params - vdev up cmd parameter
  156. * @vdev_id: vdev id
  157. * @assoc_id: association id
  158. */
  159. struct vdev_up_params {
  160. uint8_t vdev_id;
  161. uint16_t assoc_id;
  162. };
  163. /**
  164. * struct vdev_down_params - vdev down cmd parameter
  165. * @vdev_id: vdev id
  166. */
  167. struct vdev_down_params {
  168. uint8_t vdev_id;
  169. };
  170. /**
  171. * struct vdev_set_params - vdev set cmd parameter
  172. * @if_id: vdev id
  173. * @param_id: parameter id
  174. * @param_value: parameter value
  175. */
  176. struct vdev_set_params {
  177. uint32_t if_id;
  178. uint32_t param_id;
  179. uint32_t param_value;
  180. };
  181. /**
  182. * struct peer_delete_params - peer delete cmd parameter
  183. * @vdev_id: vdev id
  184. */
  185. struct peer_delete_params {
  186. uint8_t vdev_id;
  187. };
  188. /**
  189. * struct peer_flush_params - peer flush cmd parameter
  190. * @peer_tid_bitmap: peer tid bitmap
  191. * @vdev_id: vdev id
  192. */
  193. struct peer_flush_params {
  194. uint32_t peer_tid_bitmap;
  195. uint8_t vdev_id;
  196. };
  197. /**
  198. * struct peer_set_params - peer set cmd parameter
  199. * @param_id: parameter id
  200. * @param_value: parameter value
  201. * @vdev_id: vdev id
  202. */
  203. struct peer_set_params {
  204. uint32_t param_id;
  205. uint32_t param_value;
  206. uint32_t vdev_id;
  207. };
  208. /**
  209. * struct peer_create_params - peer create cmd parameter
  210. * @peer_addr: peer mac addr
  211. * @peer_type: peer type
  212. * @vdev_id: vdev id
  213. */
  214. struct peer_create_params {
  215. const uint8_t *peer_addr;
  216. uint32_t peer_type;
  217. uint32_t vdev_id;
  218. };
  219. /**
  220. * struct peer_remove_params - peer remove cmd parameter
  221. * @bssid: bss id
  222. * @vdev_id: vdev id
  223. * @roam_synch_in_progress: flag to indicate if roaming is in progress
  224. */
  225. struct peer_remove_params {
  226. uint8_t *bssid;
  227. uint8_t vdev_id;
  228. bool roam_synch_in_progress;
  229. };
  230. /**
  231. * struct stats_request_params - stats_request cmd parameter
  232. * @stats_id: statistics id
  233. * @vdev_id: vdev id
  234. */
  235. struct stats_request_params {
  236. uint32_t stats_id;
  237. uint32_t vdev_id;
  238. };
  239. /**
  240. * struct green_ap_ps_params - green ap ps cmd parameter
  241. * @value: parameter value
  242. */
  243. struct green_ap_ps_params {
  244. uint32_t value;
  245. };
  246. /**
  247. * struct wow_cmd_params - wow cmd parameter
  248. * @enable: wow enable or disable flag
  249. * @can_suspend_link: flag to indicate if link can be suspended
  250. * @pause_iface_config: interface config
  251. */
  252. struct wow_cmd_params {
  253. bool enable;
  254. bool can_suspend_link;
  255. uint8_t pause_iface_config;
  256. };
  257. /**
  258. * struct packet_enable_params - packet enable cmd parameter
  259. * @vdev_id: vdev id
  260. * @enable: flag to indicate if parameter can be enabled or disabled
  261. */
  262. struct packet_enable_params {
  263. uint8_t vdev_id;
  264. bool enable;
  265. };
  266. /**
  267. * struct suspend_params - suspend cmd parameter
  268. * @disable_target_intr: disable target interrupt
  269. */
  270. struct suspend_params {
  271. uint8_t disable_target_intr;
  272. };
  273. /**
  274. * struct pdev_params - pdev set cmd parameter
  275. * @param_id: parameter id
  276. * @param_value: parameter value
  277. */
  278. struct pdev_params {
  279. uint32_t param_id;
  280. uint32_t param_value;
  281. };
  282. /**
  283. * struct beacon_params - beacon template cmd parameter
  284. * @vdev_id: vdev id
  285. * @tim_ie_offset: tim ie offset
  286. * @tmpl_len: beacon template length
  287. * @tmpl_len_aligned: beacon template alignment
  288. * @frm: beacon template parameter
  289. */
  290. struct beacon_params {
  291. uint8_t vdev_id;
  292. uint32_t tim_ie_offset;
  293. uint32_t tmpl_len;
  294. uint32_t tmpl_len_aligned;
  295. uint8_t *frm;
  296. };
  297. /**
  298. * struct peer_assoc_params - peer assoc cmd parameter
  299. * @peer_macaddr: peer mac address
  300. * @vdev_id: vdev id
  301. * @peer_new_assoc: peer association type
  302. * @peer_associd: peer association id
  303. * @peer_flags: peer flags
  304. * @peer_caps: peer capabalities
  305. * @peer_listen_intval: peer listen interval
  306. * @peer_ht_caps: HT capabalities
  307. * @peer_max_mpdu: 0 : 8k , 1 : 16k, 2 : 32k, 3 : 64k
  308. * @peer_mpdu_density: 3 : 0~7 : 2^(11nAMPDUdensity -4)
  309. * @peer_rate_caps: peer rate capabalities
  310. * @peer_nss: peer nss
  311. * @peer_phymode: peer phymode
  312. * @peer_ht_info: peer HT info
  313. * @peer_legacy_rates: peer legacy rates
  314. * @peer_ht_rates: peer ht rates
  315. * @num_peer_legacy_rates: no of peer legacy rates
  316. * @num_peer_ht_rates: no of peer ht rates
  317. * @rx_max_rate: max rx rates
  318. * @rx_mcs_set: rx mcs
  319. * @tx_max_rate: max tx rates
  320. * @tx_mcs_set: tx mcs
  321. * @vht_capable: VHT capabalities
  322. */
  323. struct peer_assoc_params {
  324. wmi_mac_addr peer_macaddr;
  325. uint32_t vdev_id;
  326. uint32_t peer_new_assoc;
  327. uint32_t peer_associd;
  328. uint32_t peer_flags;
  329. uint32_t peer_caps;
  330. uint32_t peer_listen_intval;
  331. uint32_t peer_ht_caps;
  332. uint32_t peer_max_mpdu;
  333. uint32_t peer_mpdu_density;
  334. uint32_t peer_rate_caps;
  335. uint32_t peer_nss;
  336. uint32_t peer_vht_caps;
  337. uint32_t peer_phymode;
  338. uint32_t peer_ht_info[2];
  339. wmi_rate_set peer_legacy_rates;
  340. wmi_rate_set peer_ht_rates;
  341. uint32_t num_peer_legacy_rates;
  342. uint32_t num_peer_ht_rates;
  343. uint32_t rx_max_rate;
  344. uint32_t rx_mcs_set;
  345. uint32_t tx_max_rate;
  346. uint32_t tx_mcs_set;
  347. uint8_t vht_capable;
  348. };
  349. /**
  350. * struct sta_ps_params - sta ps cmd parameter
  351. * @vdev_id: vdev id
  352. * @param: sta ps paramter
  353. * @value: sta ps parameter value
  354. */
  355. struct sta_ps_params {
  356. uint32_t vdev_id;
  357. uint32_t param;
  358. uint32_t value;
  359. };
  360. /**
  361. * struct ap_ps_params - ap ps cmd parameter
  362. * @vdev_id: vdev id
  363. * @param: ap ps paramter
  364. * @value: ap ps paramter value
  365. */
  366. struct ap_ps_params {
  367. uint32_t vdev_id;
  368. uint32_t param;
  369. uint32_t value;
  370. };
  371. /**
  372. * struct mac_ssid - mac ssid structure
  373. * @length:
  374. * @mac_ssid[WMI_MAC_MAX_SSID_LENGTH]:
  375. */
  376. struct mac_ssid {
  377. uint8_t length;
  378. uint8_t mac_ssid[WMI_MAC_MAX_SSID_LENGTH];
  379. } qdf_packed;
  380. /**
  381. * struct scan_start_params - start scan cmd parameter
  382. * @scan_id: scan id
  383. * @scan_req_id: requeted scan id
  384. * @vdev_id: vdev id
  385. * @scan_priority: scan priority
  386. * @notify_scan_events: flag to indicate if scan to be notified
  387. * @dwell_time_active: active dwell time
  388. * @dwell_time_passive: passive dwell time
  389. * @min_rest_time: min rest time
  390. * @max_rest_time: max rest time
  391. * @repeat_probe_time: repeat probe time
  392. * @probe_spacing_time: probe spacing time
  393. * @idle_time: idle time
  394. * @max_scan_time: max scan time
  395. * @probe_delay: probe delay
  396. * @scan_ctrl_flags: scan control flag
  397. * @burst_duration: burst duration
  398. * @num_chan: no of channel
  399. * @num_bssid: no of bssid
  400. * @num_ssids: no of ssid
  401. * @ie_len: ie length
  402. * @n_probes: no of probe
  403. * @chan_list: channel list
  404. * @ie_len_with_pad: ie length with padding
  405. * @num_ssid: no of ssid
  406. * @sid: pointer to mac_ssid structure
  407. * @uie_fieldOffset: ie field offset
  408. * @mac_add_bytes: mac address bytes
  409. */
  410. struct scan_start_params {
  411. uint32_t scan_id;
  412. uint32_t scan_req_id;
  413. uint32_t vdev_id;
  414. uint32_t scan_priority;
  415. uint32_t notify_scan_events;
  416. uint32_t dwell_time_active;
  417. uint32_t dwell_time_passive;
  418. uint32_t min_rest_time;
  419. uint32_t max_rest_time;
  420. uint32_t repeat_probe_time;
  421. uint32_t probe_spacing_time;
  422. uint32_t idle_time;
  423. uint32_t max_scan_time;
  424. uint32_t probe_delay;
  425. uint32_t scan_ctrl_flags;
  426. uint32_t burst_duration;
  427. uint32_t num_chan;
  428. uint32_t num_bssid;
  429. uint32_t num_ssids;
  430. uint32_t ie_len;
  431. uint32_t n_probes;
  432. uint32_t *chan_list;
  433. uint32_t ie_len_with_pad;
  434. struct mac_ssid ssid[WMI_SCAN_MAX_NUM_SSID];
  435. uint8_t *ie_base;
  436. uint16_t uie_fieldOffset;
  437. uint8_t mac_add_bytes[IEEE80211_ADDR_LEN];
  438. };
  439. /**
  440. * struct scan_stop_params - stop scan cmd parameter
  441. * @requestor: scan requestor
  442. * @scan_id: scan id
  443. * @req_type: scan request type
  444. * @vdev_id: vdev id
  445. */
  446. struct scan_stop_params {
  447. uint32_t requestor;
  448. uint32_t scan_id;
  449. uint32_t req_type;
  450. uint32_t vdev_id;
  451. };
  452. /**
  453. * struct scan_chan_list_params - scan channel list cmd parameter
  454. * @num_scan_chans: no of scan channels
  455. * @chan_info: pointer to wmi channel info
  456. */
  457. struct scan_chan_list_params {
  458. uint8_t num_scan_chans;
  459. wmi_channel *chan_info;
  460. };
  461. /**
  462. * struct fw_hang_params - fw hang command parameters
  463. * @type: 0:unused 1: ASSERT, 2:not respond detect command, 3:simulate ep-full
  464. * @delay_time_ms: 0xffffffff means the simulate will delay for random time (0 ~0xffffffff ms)
  465. */
  466. struct fw_hang_params {
  467. uint32_t type;
  468. uint32_t delay_time_ms;
  469. };
  470. /**
  471. * struct pdev_utf_params - pdev utf command parameters
  472. * @utf_payload:
  473. * @len:
  474. */
  475. struct pdev_utf_params {
  476. uint8_t *utf_payload;
  477. uint32_t len;
  478. };
  479. /**
  480. * struct crash_inject - crash inject command parameters
  481. * @type: crash inject type
  482. * @delay_time_ms: time in milliseconds for FW to delay the crash
  483. */
  484. struct crash_inject {
  485. uint32_t type;
  486. uint32_t delay_time_ms;
  487. };
  488. /**
  489. * struct dbglog_params - fw deboglog command parameters
  490. * @param: command parameter
  491. * @val: parameter value
  492. * @module_id_bitmap: fixed length module id bitmap
  493. * @bitmap_len: module id bitmap length
  494. */
  495. struct dbglog_params {
  496. uint32_t param;
  497. uint32_t val;
  498. uint32_t *module_id_bitmap;
  499. uint32_t bitmap_len;
  500. };
  501. /**
  502. * struct seg_hdr_info - header info
  503. * @len: length
  504. * @msgref: message refrence
  505. * @segmentInfo: segment info
  506. * @pad: padding
  507. */
  508. struct seg_hdr_info {
  509. uint32_t len;
  510. uint32_t msgref;
  511. uint32_t segmentInfo;
  512. uint32_t pad;
  513. };
  514. /**
  515. * struct wmi_mgmt_params - wmi mgmt cmd paramters
  516. * @tx_frame: management tx frame
  517. * @frmLen: frame length
  518. * @vdev_id: vdev id
  519. * @tx_complete_cb: tx download callback handler
  520. * @tx_ota_post_proc_cb: OTA complition handler
  521. * @chanfreq: channel frequency
  522. * @pdata: frame data
  523. * @wmi_desc: command descriptor
  524. */
  525. struct wmi_mgmt_params {
  526. void *tx_frame;
  527. uint16_t frm_len;
  528. uint8_t vdev_id;
  529. void *tx_complete_cb;
  530. void *tx_ota_post_proc_cb;
  531. uint16_t chanfreq;
  532. void *pdata;
  533. struct wmi_desc_t *wmi_desc;
  534. void *qdf_ctx;
  535. };
  536. /**
  537. * struct p2p_ps_params - P2P powersave related params
  538. * @opp_ps: opportunistic power save
  539. * @ctwindow: CT window
  540. * @count: count
  541. * @duration: duration
  542. * @interval: interval
  543. * @single_noa_duration: single shot noa duration
  544. * @ps_selection: power save selection
  545. * @session_id: session id
  546. */
  547. struct p2p_ps_params {
  548. uint8_t opp_ps;
  549. uint32_t ctwindow;
  550. uint8_t count;
  551. uint32_t duration;
  552. uint32_t interval;
  553. uint32_t single_noa_duration;
  554. uint8_t ps_selection;
  555. uint8_t session_id;
  556. };
  557. /**
  558. * struct ta_uapsd_trig_params - uapsd trigger parameter
  559. * @vdevid: vdev id
  560. * @peer_addr: peer address
  561. * @auto_triggerparam: trigger parameters
  562. * @num_ac: no of access category
  563. */
  564. struct sta_uapsd_trig_params {
  565. uint32_t vdevid;
  566. uint8_t peer_addr[IEEE80211_ADDR_LEN];
  567. uint8_t *auto_triggerparam;
  568. uint32_t num_ac;
  569. };
  570. /**
  571. * struct ocb_utc_param
  572. * @vdev_id: session id
  573. * @utc_time: number of nanoseconds from Jan 1st 1958
  574. * @time_error: the error in the UTC time. All 1's for unknown
  575. */
  576. struct ocb_utc_param {
  577. uint32_t vdev_id;
  578. uint8_t utc_time[WMI_SIZE_UTC_TIME];
  579. uint8_t time_error[WMI_SIZE_UTC_TIME_ERROR];
  580. };
  581. /**
  582. * struct ocb_timing_advert_param
  583. * @vdev_id: session id
  584. * @chan_freq: frequency on which to advertise
  585. * @repeat_rate: the number of times it will send TA in 5 seconds
  586. * @timestamp_offset: offset of the timestamp field in the TA frame
  587. * @time_value_offset: offset of the time_value field in the TA frame
  588. * @template_length: size in bytes of the TA frame
  589. * @template_value: the TA frame
  590. */
  591. struct ocb_timing_advert_param {
  592. uint32_t vdev_id;
  593. uint32_t chan_freq;
  594. uint32_t repeat_rate;
  595. uint32_t timestamp_offset;
  596. uint32_t time_value_offset;
  597. uint32_t template_length;
  598. uint8_t *template_value;
  599. };
  600. /**
  601. * struct dcc_get_stats_param
  602. * @vdev_id: session id
  603. * @channel_count: number of dcc channels
  604. * @request_array_len: size in bytes of the request array
  605. * @request_array: the request array
  606. */
  607. struct dcc_get_stats_param {
  608. uint32_t vdev_id;
  609. uint32_t channel_count;
  610. uint32_t request_array_len;
  611. void *request_array;
  612. };
  613. /**
  614. * struct dcc_update_ndl_param
  615. * @vdev_id: session id
  616. * @channel_count: number of channels to be updated
  617. * @dcc_ndl_chan_list_len: size in bytes of the ndl_chan array
  618. * @dcc_ndl_chan_list: the ndl_chan array
  619. * @dcc_ndl_active_state_list_len: size in bytes of the active_state array
  620. * @dcc_ndl_active_state_list: the active state array
  621. */
  622. struct dcc_update_ndl_param {
  623. uint32_t vdev_id;
  624. uint32_t channel_count;
  625. uint32_t dcc_ndl_chan_list_len;
  626. void *dcc_ndl_chan_list;
  627. uint32_t dcc_ndl_active_state_list_len;
  628. void *dcc_ndl_active_state_list;
  629. };
  630. /**
  631. * struct ocb_config_sched
  632. * @chan_freq: frequency of the channel
  633. * @total_duration: duration of the schedule
  634. * @guard_interval: guard interval on the start of the schedule
  635. */
  636. struct ocb_config_sched {
  637. uint32_t chan_freq;
  638. uint32_t total_duration;
  639. uint32_t guard_interval;
  640. };
  641. /**
  642. * OCB structures
  643. */
  644. #define WMI_NUM_AC (4)
  645. #define WMI_OCB_CHANNEL_MAX (5)
  646. #define WMI_MAX_NUM_AC 4
  647. struct wmi_ocb_qos_params {
  648. uint8_t aifsn;
  649. uint8_t cwmin;
  650. uint8_t cwmax;
  651. };
  652. /**
  653. * struct ocb_config_channel
  654. * @chan_freq: frequency of the channel
  655. * @bandwidth: bandwidth of the channel, either 10 or 20 MHz
  656. * @mac_address: MAC address assigned to this channel
  657. * @qos_params: QoS parameters
  658. * @max_pwr: maximum transmit power of the channel (dBm)
  659. * @min_pwr: minimum transmit power of the channel (dBm)
  660. * @reg_pwr: maximum transmit power specified by the regulatory domain (dBm)
  661. * @antenna_max: maximum antenna gain specified by the regulatory domain (dB)
  662. */
  663. struct ocb_config_channel {
  664. uint32_t chan_freq;
  665. uint32_t bandwidth;
  666. struct qdf_mac_addr mac_address;
  667. struct wmi_ocb_qos_params qos_params[WMI_MAX_NUM_AC];
  668. uint32_t max_pwr;
  669. uint32_t min_pwr;
  670. uint8_t reg_pwr;
  671. uint8_t antenna_max;
  672. uint16_t flags;
  673. };
  674. /**
  675. * struct ocb_config_param
  676. * @session_id: session id
  677. * @channel_count: number of channels
  678. * @schedule_size: size of the channel schedule
  679. * @flags: reserved
  680. * @channels: array of OCB channels
  681. * @schedule: array of OCB schedule elements
  682. * @dcc_ndl_chan_list_len: size of the ndl_chan array
  683. * @dcc_ndl_chan_list: array of dcc channel info
  684. * @dcc_ndl_active_state_list_len: size of the active state array
  685. * @dcc_ndl_active_state_list: array of active states
  686. * @adapter: the OCB adapter
  687. * @dcc_stats_callback: callback for the response event
  688. */
  689. struct ocb_config_param {
  690. uint8_t session_id;
  691. uint32_t channel_count;
  692. uint32_t schedule_size;
  693. uint32_t flags;
  694. struct ocb_config_channel *channels;
  695. struct ocb_config_sched *schedule;
  696. uint32_t dcc_ndl_chan_list_len;
  697. void *dcc_ndl_chan_list;
  698. uint32_t dcc_ndl_active_state_list_len;
  699. void *dcc_ndl_active_state_list;
  700. };
  701. /**
  702. * struct t_thermal_cmd_params - thermal command parameters
  703. * @min_temp: minimum temprature
  704. * @max_temp: maximum temprature
  705. * @thermal_enable: thermal enable
  706. */
  707. struct thermal_cmd_params {
  708. uint16_t min_temp;
  709. uint16_t max_temp;
  710. uint8_t thermal_enable;
  711. };
  712. #define WMI_LRO_IPV4_SEED_ARR_SZ 5
  713. #define WMI_LRO_IPV6_SEED_ARR_SZ 11
  714. /**
  715. * struct wmi_lro_config_cmd_t - set LRO init parameters
  716. * @lro_enable: indicates whether lro is enabled
  717. * @tcp_flag: If the TCP flags from the packet do not match
  718. * the values in this field after masking with TCP flags mask
  719. * below, packet is not LRO eligible
  720. * @tcp_flag_mask: field for comparing the TCP values provided
  721. * above with the TCP flags field in the received packet
  722. * @toeplitz_hash_ipv4: contains seed needed to compute the flow id
  723. * 5-tuple toeplitz hash for ipv4 packets
  724. * @toeplitz_hash_ipv6: contains seed needed to compute the flow id
  725. * 5-tuple toeplitz hash for ipv6 packets
  726. */
  727. struct wmi_lro_config_cmd_t {
  728. uint32_t lro_enable;
  729. uint32_t tcp_flag:9,
  730. tcp_flag_mask:9;
  731. uint32_t toeplitz_hash_ipv4[WMI_LRO_IPV4_SEED_ARR_SZ];
  732. uint32_t toeplitz_hash_ipv6[WMI_LRO_IPV6_SEED_ARR_SZ];
  733. };
  734. /**
  735. * struct gtx_config_t - GTX config
  736. * @gtx_rt_mask: for HT and VHT rate masks
  737. * @gtx_usrcfg: host request for GTX mask
  738. * @gtx_threshold: PER Threshold (default: 10%)
  739. * @gtx_margin: PER margin (default: 2%)
  740. * @gtx_tcpstep: TCP step (default: 1)
  741. * @gtx_tpcMin: TCP min (default: 5)
  742. * @gtx_bwmask: BW mask (20/40/80/160 Mhz)
  743. */
  744. struct wmi_gtx_config {
  745. uint32_t gtx_rt_mask[2];
  746. uint32_t gtx_usrcfg;
  747. uint32_t gtx_threshold;
  748. uint32_t gtx_margin;
  749. uint32_t gtx_tpcstep;
  750. uint32_t gtx_tpcmin;
  751. uint32_t gtx_bwmask;
  752. };
  753. /**
  754. * struct wmi_probe_resp_params - send probe response parameters
  755. * @bssId: BSSID
  756. * @pProbeRespTemplate: probe response template
  757. * @probeRespTemplateLen: probe response template length
  758. * @ucProxyProbeReqValidIEBmap: valid IE bitmap
  759. */
  760. struct wmi_probe_resp_params {
  761. uint8_t bssId[WMI_ETH_LEN];
  762. uint8_t *pProbeRespTemplate;
  763. uint32_t probeRespTemplateLen;
  764. uint32_t ucProxyProbeReqValidIEBmap[8];
  765. };
  766. /**
  767. * struct sta_params - sta keep alive parameters
  768. * @vdev_id: vdev id
  769. * @method: keep alive method
  770. * @timeperiod: time to keep alive
  771. * @hostv4addr: host ipv4 address
  772. * @destv4addr: destination ipv4 address
  773. * @destmac: destination mac address
  774. */
  775. struct sta_params {
  776. uint8_t vdev_id;
  777. uint32_t method;
  778. uint32_t timeperiod;
  779. uint8_t *hostv4addr;
  780. uint8_t *destv4addr;
  781. uint8_t *destmac;
  782. };
  783. /**
  784. * struct gateway_update_req_param - gateway parameter update request
  785. * @request_id: request id
  786. * @session_id: session id
  787. * @max_retries: Max ARP/NS retry attempts
  788. * @timeout: Retry interval
  789. * @ipv4_addr_type: on ipv4 network
  790. * @ipv6_addr_type: on ipv6 network
  791. * @gw_mac_addr: gateway mac addr
  792. * @ipv4_addr: ipv4 addr
  793. * @ipv6_addr: ipv6 addr
  794. */
  795. struct gateway_update_req_param {
  796. uint32_t request_id;
  797. uint32_t session_id;
  798. uint32_t max_retries;
  799. uint32_t timeout;
  800. uint32_t ipv4_addr_type;
  801. uint32_t ipv6_addr_type;
  802. struct qdf_mac_addr gw_mac_addr;
  803. uint8_t ipv4_addr[QDF_IPV4_ADDR_SIZE];
  804. uint8_t ipv6_addr[QDF_IPV6_ADDR_SIZE];
  805. };
  806. /**
  807. * struct rssi_monitor_param - rssi monitoring
  808. * @request_id: request id
  809. * @session_id: session id
  810. * @min_rssi: minimum rssi
  811. * @max_rssi: maximum rssi
  812. * @control: flag to indicate start or stop
  813. */
  814. struct rssi_monitor_param {
  815. uint32_t request_id;
  816. uint32_t session_id;
  817. int8_t min_rssi;
  818. int8_t max_rssi;
  819. bool control;
  820. };
  821. /**
  822. * struct scan_mac_oui - oui paramters
  823. * @oui: oui parameters
  824. */
  825. struct scan_mac_oui {
  826. uint8_t oui[WMI_WIFI_SCANNING_MAC_OUI_LENGTH];
  827. };
  828. #define WMI_PASSPOINT_REALM_LEN 256
  829. #define WMI_PASSPOINT_ROAMING_CONSORTIUM_ID_NUM 16
  830. #define WMI_PASSPOINT_PLMN_LEN 3
  831. /**
  832. * struct wifi_passpoint_network_param - passpoint network block
  833. * @id: identifier of this network block
  834. * @realm: null terminated UTF8 encoded realm, 0 if unspecified
  835. * @roaming_consortium_ids: roaming consortium ids to match, 0s if unspecified
  836. * @plmn: mcc/mnc combination as per rules, 0s if unspecified
  837. */
  838. struct wifi_passpoint_network_param {
  839. uint32_t id;
  840. uint8_t realm[WMI_PASSPOINT_REALM_LEN];
  841. int64_t roaming_consortium_ids[WMI_PASSPOINT_ROAMING_CONSORTIUM_ID_NUM];
  842. uint8_t plmn[WMI_PASSPOINT_PLMN_LEN];
  843. };
  844. /**
  845. * struct wifi_passpoint_req_param - passpoint request
  846. * @request_id: request identifier
  847. * @num_networks: number of networks
  848. * @networks: passpoint networks
  849. */
  850. struct wifi_passpoint_req_param {
  851. uint32_t request_id;
  852. uint32_t session_id;
  853. uint32_t num_networks;
  854. struct wifi_passpoint_network_param networks[];
  855. };
  856. /**
  857. * struct wifi_epno_network - enhanced pno network block
  858. * @ssid: ssid
  859. * @rssi_threshold: threshold for considering this SSID as found, required
  860. * granularity for this threshold is 4dBm to 8dBm
  861. * @flags: WIFI_PNO_FLAG_XXX
  862. * @auth_bit_field: auth bit field for matching WPA IE
  863. */
  864. struct wifi_epno_network_params {
  865. struct mac_ssid ssid;
  866. int8_t rssi_threshold;
  867. uint8_t flags;
  868. uint8_t auth_bit_field;
  869. };
  870. /**
  871. * struct wifi_enhanched_pno_params - enhanced pno network params
  872. * @num_networks: number of ssids
  873. * @networks: PNO networks
  874. */
  875. struct wifi_enhanched_pno_params {
  876. uint32_t request_id;
  877. uint32_t session_id;
  878. uint32_t num_networks;
  879. struct wifi_epno_network_params networks[];
  880. };
  881. enum {
  882. WMI_AP_RX_DATA_OFFLOAD = 0x00,
  883. WMI_STA_RX_DATA_OFFLOAD = 0x01,
  884. };
  885. /**
  886. * enum extscan_report_events_type - extscan report events type
  887. * @EXTSCAN_REPORT_EVENTS_BUFFER_FULL: report only when scan history is % full
  888. * @EXTSCAN_REPORT_EVENTS_EACH_SCAN: report a scan completion event after scan
  889. * @EXTSCAN_REPORT_EVENTS_FULL_RESULTS: forward scan results
  890. * (beacons/probe responses + IEs)
  891. * in real time to HAL, in addition to completion events.
  892. * Note: To keep backward compatibility,
  893. * fire completion events regardless of REPORT_EVENTS_EACH_SCAN.
  894. * @EXTSCAN_REPORT_EVENTS_NO_BATCH: controls batching,
  895. * 0 => batching, 1 => no batching
  896. */
  897. enum wmi_extscan_report_events_type {
  898. WMI_EXTSCAN_REPORT_EVENTS_BUFFER_FULL = 0x00,
  899. WMI_EXTSCAN_REPORT_EVENTS_EACH_SCAN = 0x01,
  900. WMI_EXTSCAN_REPORT_EVENTS_FULL_RESULTS = 0x02,
  901. WMI_EXTSCAN_REPORT_EVENTS_NO_BATCH = 0x04,
  902. };
  903. /**
  904. * struct ipa_offload_control_params - ipa offload parameters
  905. * @offload_type: ipa offload type
  906. * @vdev_id: vdev id
  907. * @enable: ipa offload enable/disable
  908. */
  909. struct ipa_offload_control_params {
  910. uint32_t offload_type;
  911. uint32_t vdev_id;
  912. uint32_t enable;
  913. };
  914. /**
  915. * struct extscan_capabilities_params - ext scan capablities
  916. * @request_id: request_id
  917. * @session_id: session_id
  918. */
  919. struct extscan_capabilities_params {
  920. uint32_t request_id;
  921. uint8_t session_id;
  922. };
  923. /**
  924. * struct extscan_capabilities_reset_params - ext scan capablities reset parameter
  925. * @request_id: request_id
  926. * @session_id: session_id
  927. */
  928. struct extscan_capabilities_reset_params {
  929. uint32_t request_id;
  930. uint8_t session_id;
  931. };
  932. /**
  933. * struct extscan_bssid_hotlist_reset_params - ext scan hotlist reset parameter
  934. * @request_id: request_id
  935. * @session_id: session_id
  936. */
  937. struct extscan_bssid_hotlist_reset_params {
  938. uint32_t request_id;
  939. uint8_t session_id;
  940. };
  941. /**
  942. * struct extscan_stop_req_params - ext scan stop parameter
  943. * @request_id: request_id
  944. * @session_id: session_id
  945. */
  946. struct extscan_stop_req_params {
  947. uint32_t request_id;
  948. uint8_t session_id;
  949. };
  950. /**
  951. * struct ap_threshold_params - ap threshold parameter
  952. * @bssid: mac address
  953. * @low: low threshold
  954. * @high: high threshold
  955. */
  956. struct ap_threshold_params {
  957. struct qdf_mac_addr bssid;
  958. int32_t low;
  959. int32_t high;
  960. };
  961. /**
  962. * struct extscan_set_sig_changereq_params - ext scan channel parameter
  963. * @request_id: mac address
  964. * @session_id: low threshold
  965. * @rssi_sample_size: Number of samples for averaging RSSI
  966. * @lostap_sample_size: Number of missed samples to confirm AP loss
  967. * @min_breaching: Number of APs breaching threshold required for firmware
  968. * @num_ap: no of scanned ap
  969. * @ap: ap threshold parameter
  970. */
  971. struct extscan_set_sig_changereq_params {
  972. uint32_t request_id;
  973. uint8_t session_id;
  974. uint32_t rssi_sample_size;
  975. uint32_t lostap_sample_size;
  976. uint32_t min_breaching;
  977. uint32_t num_ap;
  978. struct ap_threshold_params ap[WMI_EXTSCAN_MAX_SIGNIFICANT_CHANGE_APS];
  979. };
  980. /**
  981. * struct extscan_cached_result_params - ext scan cached parameter
  982. * @request_id: mac address
  983. * @session_id: low threshold
  984. * @flush: cached results flush
  985. */
  986. struct extscan_cached_result_params {
  987. uint32_t request_id;
  988. uint8_t session_id;
  989. bool flush;
  990. };
  991. #ifdef FEATURE_WLAN_SCAN_PNO
  992. /* Set PNO */
  993. #define WMI_PNO_MAX_NETW_CHANNELS 26
  994. #define WMI_PNO_MAX_NETW_CHANNELS_EX 60
  995. #define WMI_PNO_MAX_SUPP_NETWORKS 16
  996. /*
  997. * size based of dot11 declaration without extra IEs as we will not carry those
  998. * for PNO
  999. */
  1000. #define WMI_PNO_MAX_PB_REQ_SIZE 450
  1001. #define WMI_PNO_24G_DEFAULT_CH 1
  1002. #define WMI_PNO_5G_DEFAULT_CH 36
  1003. /**
  1004. * enum pno_mode - pno mode types
  1005. * @WMI_PNO_MODE_IMMEDIATE: immidiate mode
  1006. * @WMI_PNO_MODE_ON_SUSPEND: suspend on mode
  1007. * @WMI_PNO_MODE_ON_RESUME: resume on mode
  1008. * @WMI_PNO_MODE_MAX: max range
  1009. */
  1010. enum pno_mode {
  1011. WMI_PNO_MODE_IMMEDIATE,
  1012. WMI_PNO_MODE_ON_SUSPEND,
  1013. WMI_PNO_MODE_ON_RESUME,
  1014. WMI_PNO_MODE_MAX
  1015. };
  1016. /**
  1017. * struct pno_nw_type - pno nw type
  1018. * @ssid: mac ssid
  1019. * @authentication: authentication type
  1020. * @encryption: encryption type
  1021. * @bcastNetwType: broadcast nw type
  1022. * @ucChannelCount: uc channel count
  1023. * @aChannels: pno channel
  1024. * @rssiThreshold: rssi threshold
  1025. */
  1026. struct pno_nw_type {
  1027. struct mac_ssid ssid;
  1028. uint32_t authentication;
  1029. uint32_t encryption;
  1030. uint32_t bcastNetwType;
  1031. uint8_t ucChannelCount;
  1032. uint8_t aChannels[WMI_PNO_MAX_NETW_CHANNELS_EX];
  1033. int32_t rssiThreshold;
  1034. };
  1035. /**
  1036. * struct pno_scan_req_params - PNO Scan request structure
  1037. * @enable: flag to enable or disable
  1038. * @modePNO: PNO Mode
  1039. * @ucNetworksCount: Number of networks
  1040. * @aNetworks: Preferred network list
  1041. * @sessionId: Session identifier
  1042. * @fast_scan_period: Fast Scan period
  1043. * @slow_scan_period: Slow scan period
  1044. * @fast_scan_max_cycles: Fast scan max cycles
  1045. * @us24GProbeTemplateLen: 2.4G probe template length
  1046. * @p24GProbeTemplate: 2.4G probe template
  1047. * @us5GProbeTemplateLen: 5G probe template length
  1048. * @p5GProbeTemplate: 5G probe template
  1049. */
  1050. struct pno_scan_req_params {
  1051. uint8_t enable;
  1052. enum pno_mode modePNO;
  1053. uint8_t ucNetworksCount;
  1054. struct pno_nw_type aNetworks[WMI_PNO_MAX_SUPP_NETWORKS];
  1055. uint8_t sessionId;
  1056. uint32_t fast_scan_period;
  1057. uint32_t slow_scan_period;
  1058. uint8_t fast_scan_max_cycles;
  1059. uint32_t active_min_time;
  1060. uint32_t active_max_time;
  1061. uint32_t passive_min_time;
  1062. uint32_t passive_max_time;
  1063. uint16_t us24GProbeTemplateLen;
  1064. uint8_t p24GProbeTemplate[WMI_PNO_MAX_PB_REQ_SIZE];
  1065. uint16_t us5GProbeTemplateLen;
  1066. uint8_t p5GProbeTemplate[WMI_PNO_MAX_PB_REQ_SIZE];
  1067. #ifdef FEATURE_WLAN_SCAN_PNO
  1068. bool pno_channel_prediction;
  1069. uint8_t top_k_num_of_channels;
  1070. uint8_t stationary_thresh;
  1071. uint32_t channel_prediction_full_scan;
  1072. #endif
  1073. };
  1074. #endif /* FEATURE_WLAN_SCAN_PNO */
  1075. #define WMI_WLAN_EXTSCAN_MAX_CHANNELS 36
  1076. #define WMI_WLAN_EXTSCAN_MAX_BUCKETS 16
  1077. #define WMI_WLAN_EXTSCAN_MAX_HOTLIST_APS 128
  1078. #define WMI_WLAN_EXTSCAN_MAX_SIGNIFICANT_CHANGE_APS 64
  1079. #define WMI_EXTSCAN_MAX_HOTLIST_SSIDS 8
  1080. /**
  1081. * struct wifi_scan_channelspec_params - wifi scan channel parameter
  1082. * @channel: Frequency in MHz
  1083. * @dwellTimeMs: dwell time
  1084. * @flush: cached results flush
  1085. * @passive: passive scan
  1086. * @chnlClass: channel class
  1087. */
  1088. struct wifi_scan_channelspec_params {
  1089. uint32_t channel;
  1090. uint32_t dwellTimeMs;
  1091. bool passive;
  1092. uint8_t chnlClass;
  1093. };
  1094. /**
  1095. * enum wmi_wifi_band - wifi band
  1096. * @WMI_WIFI_BAND_UNSPECIFIED: unspecified band
  1097. * @WMI_WIFI_BAND_BG: 2.4 GHz
  1098. * @WMI_WIFI_BAND_A: 5 GHz without DFS
  1099. * @WMI_WIFI_BAND_ABG: 2.4 GHz + 5 GHz; no DFS
  1100. * @WMI_WIFI_BAND_A_DFS_ONLY: 5 GHz DFS only
  1101. * @WMI_WIFI_BAND_A_WITH_DFS: 5 GHz with DFS
  1102. * @WMI_WIFI_BAND_ABG_WITH_DFS: 2.4 GHz + 5 GHz with DFS
  1103. * @WMI_WIFI_BAND_MAX: max range
  1104. */
  1105. enum wmi_wifi_band {
  1106. WMI_WIFI_BAND_UNSPECIFIED,
  1107. WMI_WIFI_BAND_BG = 1,
  1108. WMI_WIFI_BAND_A = 2,
  1109. WMI_WIFI_BAND_ABG = 3,
  1110. WMI_WIFI_BAND_A_DFS_ONLY = 4,
  1111. /* 5 is reserved */
  1112. WMI_WIFI_BAND_A_WITH_DFS = 6,
  1113. WMI_WIFI_BAND_ABG_WITH_DFS = 7,
  1114. /* Keep it last */
  1115. WMI_WIFI_BAND_MAX
  1116. };
  1117. /**
  1118. * struct wifi_scan_bucket_params - wifi scan bucket spec
  1119. * @bucket: bucket identifier
  1120. * @band: wifi band
  1121. * @period: Desired period, in millisecond; if this is too
  1122. * low, the firmware should choose to generate results as fast as
  1123. * it can instead of failing the command byte
  1124. * for exponential backoff bucket this is the min_period
  1125. * @reportEvents: 0 => normal reporting (reporting rssi history
  1126. * only, when rssi history buffer is % full)
  1127. * 1 => same as 0 + report a scan completion event after scanning
  1128. * this bucket
  1129. * 2 => same as 1 + forward scan results
  1130. * (beacons/probe responses + IEs) in real time to HAL
  1131. * @max_period: if max_period is non zero or different than period,
  1132. * then this bucket is an exponential backoff bucket and
  1133. * the scan period will grow exponentially as per formula:
  1134. * actual_period(N) = period ^ (N/(step_count+1)) to a
  1135. * maximum period of max_period
  1136. * @exponent: for exponential back off bucket: multiplier:
  1137. * new_period = old_period * exponent
  1138. * @step_count: for exponential back off bucket, number of scans performed
  1139. * at a given period and until the exponent is applied
  1140. * @numChannels: channels to scan; these may include DFS channels
  1141. * Note that a given channel may appear in multiple buckets
  1142. * @min_dwell_time_active: per bucket minimum active dwell time
  1143. * @max_dwell_time_active: per bucket maximum active dwell time
  1144. * @min_dwell_time_passive: per bucket minimum passive dwell time
  1145. * @max_dwell_time_passive: per bucket maximum passive dwell time
  1146. * @channels: Channel list
  1147. */
  1148. struct wifi_scan_bucket_params {
  1149. uint8_t bucket;
  1150. enum wmi_wifi_band band;
  1151. uint32_t period;
  1152. uint32_t reportEvents;
  1153. uint32_t max_period;
  1154. uint32_t exponent;
  1155. uint32_t step_count;
  1156. uint32_t numChannels;
  1157. uint32_t min_dwell_time_active;
  1158. uint32_t max_dwell_time_active;
  1159. uint32_t min_dwell_time_passive;
  1160. uint32_t max_dwell_time_passive;
  1161. struct wifi_scan_channelspec_params channels[WMI_WLAN_EXTSCAN_MAX_CHANNELS];
  1162. };
  1163. /**
  1164. * struct wifi_scan_cmd_req_params - wifi scan command request params
  1165. * @basePeriod: base timer period
  1166. * @maxAPperScan: max ap per scan
  1167. * @report_threshold_percent: report threshold
  1168. * in %, when buffer is this much full, wake up host
  1169. * @report_threshold_num_scans: report threshold number of scans
  1170. * in number of scans, wake up host after these many scans
  1171. * @requestId: request id
  1172. * @sessionId: session id
  1173. * @numBuckets: number of buckets
  1174. * @min_dwell_time_active: per bucket minimum active dwell time
  1175. * @max_dwell_time_active: per bucket maximum active dwell time
  1176. * @min_dwell_time_passive: per bucket minimum passive dwell time
  1177. * @max_dwell_time_passive: per bucket maximum passive dwell time
  1178. * @configuration_flags: configuration flags
  1179. * @buckets: buckets array
  1180. */
  1181. struct wifi_scan_cmd_req_params {
  1182. uint32_t basePeriod;
  1183. uint32_t maxAPperScan;
  1184. uint32_t report_threshold_percent;
  1185. uint32_t report_threshold_num_scans;
  1186. uint32_t requestId;
  1187. uint8_t sessionId;
  1188. uint32_t numBuckets;
  1189. uint32_t min_dwell_time_active;
  1190. uint32_t max_dwell_time_active;
  1191. uint32_t min_dwell_time_passive;
  1192. uint32_t max_dwell_time_passive;
  1193. uint32_t configuration_flags;
  1194. struct wifi_scan_bucket_params buckets[WMI_WLAN_EXTSCAN_MAX_BUCKETS];
  1195. };
  1196. #if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD)
  1197. #define WMI_CFG_VALID_CHANNEL_LIST_LEN 100
  1198. /**
  1199. * struct plm_req_params - plm req parameter
  1200. * @diag_token: Dialog token
  1201. * @meas_token: measurement token
  1202. * @num_bursts: total number of bursts
  1203. * @burst_int: burst interval in seconds
  1204. * @meas_duration:in TU's,STA goes off-ch
  1205. * @burst_len: no of times the STA should cycle through PLM ch list
  1206. * @desired_tx_pwr: desired tx power
  1207. * @mac_addr: MC dest addr
  1208. * @plm_num_ch: channel numbers
  1209. * @plm_ch_list: channel list
  1210. * @session_id: session id
  1211. * @enable: enable/disable
  1212. */
  1213. struct plm_req_params {
  1214. uint16_t diag_token;
  1215. uint16_t meas_token;
  1216. uint16_t num_bursts;
  1217. uint16_t burst_int;
  1218. uint16_t meas_duration;
  1219. /* no of times the STA should cycle through PLM ch list */
  1220. uint8_t burst_len;
  1221. int8_t desired_tx_pwr;
  1222. struct qdf_mac_addr mac_addr;
  1223. /* no of channels */
  1224. uint8_t plm_num_ch;
  1225. /* channel numbers */
  1226. uint8_t plm_ch_list[WMI_CFG_VALID_CHANNEL_LIST_LEN];
  1227. uint8_t session_id;
  1228. bool enable;
  1229. };
  1230. #endif
  1231. /**
  1232. * struct mac_ts_info_tfc - mac ts info parameters
  1233. * @burstSizeDefn: burst size
  1234. * @reserved: reserved
  1235. * @ackPolicy: ack policy
  1236. * @psb: psb
  1237. * @aggregation: aggregation
  1238. * @accessPolicy: access policy
  1239. * @direction: direction
  1240. * @tsid: direction
  1241. * @trafficType: traffic type
  1242. */
  1243. struct mac_ts_info_tfc {
  1244. #ifndef ANI_LITTLE_BIT_ENDIAN
  1245. uint8_t burstSizeDefn:1;
  1246. uint8_t reserved:7;
  1247. #else
  1248. uint8_t reserved:7;
  1249. uint8_t burstSizeDefn:1;
  1250. #endif
  1251. #ifndef ANI_LITTLE_BIT_ENDIAN
  1252. uint16_t ackPolicy:2;
  1253. uint16_t userPrio:3;
  1254. uint16_t psb:1;
  1255. uint16_t aggregation:1;
  1256. uint16_t accessPolicy:2;
  1257. uint16_t direction:2;
  1258. uint16_t tsid:4;
  1259. uint16_t trafficType:1;
  1260. #else
  1261. uint16_t trafficType:1;
  1262. uint16_t tsid:4;
  1263. uint16_t direction:2;
  1264. uint16_t accessPolicy:2;
  1265. uint16_t aggregation:1;
  1266. uint16_t psb:1;
  1267. uint16_t userPrio:3;
  1268. uint16_t ackPolicy:2;
  1269. #endif
  1270. } qdf_packed;
  1271. /**
  1272. * struct mac_ts_info_sch - mac ts info schedule parameters
  1273. * @rsvd: reserved
  1274. * @schedule: schedule bit
  1275. */
  1276. struct mac_ts_info_sch {
  1277. #ifndef ANI_LITTLE_BIT_ENDIAN
  1278. uint8_t rsvd:7;
  1279. uint8_t schedule:1;
  1280. #else
  1281. uint8_t schedule:1;
  1282. uint8_t rsvd:7;
  1283. #endif
  1284. } qdf_packed;
  1285. /**
  1286. * struct mac_ts_info_sch - mac ts info schedule parameters
  1287. * @traffic: mac tfc parameter
  1288. * @schedule: mac schedule parameters
  1289. */
  1290. struct mac_ts_info {
  1291. struct mac_ts_info_tfc traffic;
  1292. struct mac_ts_info_sch schedule;
  1293. } qdf_packed;
  1294. /**
  1295. * struct mac_tspec_ie - mac ts spec
  1296. * @type: type
  1297. * @length: length
  1298. * @tsinfo: tsinfo
  1299. * @nomMsduSz: nomMsduSz
  1300. * @maxMsduSz: maxMsduSz
  1301. * @minSvcInterval: minSvcInterval
  1302. * @maxSvcInterval: maxSvcInterval
  1303. * @inactInterval: inactInterval
  1304. * @suspendInterval: suspendInterval
  1305. * @svcStartTime: svcStartTime
  1306. * @minDataRate: minDataRate
  1307. * @meanDataRate: meanDataRate
  1308. * @peakDataRate: peakDataRate
  1309. * @maxBurstSz: maxBurstSz
  1310. * @delayBound: delayBound
  1311. * @minPhyRate: minPhyRate
  1312. * @surplusBw: surplusBw
  1313. * @mediumTime: mediumTime
  1314. */
  1315. struct mac_tspec_ie {
  1316. uint8_t type;
  1317. uint8_t length;
  1318. struct mac_ts_info tsinfo;
  1319. uint16_t nomMsduSz;
  1320. uint16_t maxMsduSz;
  1321. uint32_t minSvcInterval;
  1322. uint32_t maxSvcInterval;
  1323. uint32_t inactInterval;
  1324. uint32_t suspendInterval;
  1325. uint32_t svcStartTime;
  1326. uint32_t minDataRate;
  1327. uint32_t meanDataRate;
  1328. uint32_t peakDataRate;
  1329. uint32_t maxBurstSz;
  1330. uint32_t delayBound;
  1331. uint32_t minPhyRate;
  1332. uint16_t surplusBw;
  1333. uint16_t mediumTime;
  1334. } qdf_packed;
  1335. /**
  1336. * struct add_ts_param - ADDTS related parameters
  1337. * @staIdx: station index
  1338. * @tspecIdx: TSPEC handler uniquely identifying a TSPEC for a STA in a BSS
  1339. * @tspec: tspec value
  1340. * @status: CDF status
  1341. * @sessionId: session id
  1342. * @tsm_interval: TSM interval period passed from UMAC to WMI
  1343. * @setRICparams: RIC parameters
  1344. * @sme_session_id: sme session id
  1345. */
  1346. struct add_ts_param {
  1347. uint16_t staIdx;
  1348. uint16_t tspecIdx;
  1349. struct mac_tspec_ie tspec;
  1350. QDF_STATUS status;
  1351. uint8_t sessionId;
  1352. #ifdef FEATURE_WLAN_ESE
  1353. uint16_t tsm_interval;
  1354. #endif /* FEATURE_WLAN_ESE */
  1355. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  1356. uint8_t setRICparams;
  1357. #endif /* WLAN_FEATURE_ROAM_OFFLOAD */
  1358. uint8_t sme_session_id;
  1359. };
  1360. /**
  1361. * struct delts_req_info - DELTS request parameter
  1362. * @tsinfo: ts info
  1363. * @tspec: ts spec
  1364. * @wmeTspecPresent: wme ts spec flag
  1365. * @wsmTspecPresent: wsm ts spec flag
  1366. * @lleTspecPresent: lle ts spec flag
  1367. */
  1368. struct delts_req_info {
  1369. struct mac_ts_info tsinfo;
  1370. struct mac_tspec_ie tspec;
  1371. uint8_t wmeTspecPresent:1;
  1372. uint8_t wsmTspecPresent:1;
  1373. uint8_t lleTspecPresent:1;
  1374. };
  1375. /**
  1376. * struct del_ts_params - DELTS related parameters
  1377. * @staIdx: station index
  1378. * @tspecIdx: TSPEC identifier uniquely identifying a TSPEC for a STA in a BSS
  1379. * @bssId: BSSID
  1380. * @sessionId: session id
  1381. * @userPrio: user priority
  1382. * @delTsInfo: DELTS info
  1383. * @setRICparams: RIC parameters
  1384. */
  1385. struct del_ts_params {
  1386. uint16_t staIdx;
  1387. uint16_t tspecIdx;
  1388. uint8_t bssId[WMI_ETH_LEN];
  1389. uint8_t sessionId;
  1390. uint8_t userPrio;
  1391. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  1392. struct delts_req_info delTsInfo;
  1393. uint8_t setRICparams;
  1394. #endif /* WLAN_FEATURE_ROAM_OFFLOAD */
  1395. };
  1396. /**
  1397. * struct ll_stats_clear_params - ll stats clear parameter
  1398. * @req_id: request id
  1399. * @sta_id: sta id
  1400. * @stats_clear_mask: stats clear mask
  1401. * @stop_req: stop request
  1402. */
  1403. struct ll_stats_clear_params {
  1404. uint32_t req_id;
  1405. uint8_t sta_id;
  1406. uint32_t stats_clear_mask;
  1407. uint8_t stop_req;
  1408. };
  1409. /**
  1410. * struct ll_stats_set_params - ll stats get parameter
  1411. * @req_id: request id
  1412. * @sta_id: sta id
  1413. * @mpdu_size_threshold: mpdu sixe threshold
  1414. * @aggressive_statistics_gathering: aggressive_statistics_gathering
  1415. */
  1416. struct ll_stats_set_params {
  1417. uint32_t req_id;
  1418. uint8_t sta_id;
  1419. uint32_t mpdu_size_threshold;
  1420. uint32_t aggressive_statistics_gathering;
  1421. };
  1422. /**
  1423. * struct ll_stats_get_params - ll stats parameter
  1424. * @req_id: request id
  1425. * @sta_id: sta id
  1426. * @param_id_mask: param is mask
  1427. */
  1428. struct ll_stats_get_params {
  1429. uint32_t req_id;
  1430. uint8_t sta_id;
  1431. uint32_t param_id_mask;
  1432. };
  1433. /**
  1434. * struct pe_stats_req - pe stats parameter
  1435. * @msg_type: message type is same as the request type
  1436. * @msg_len: length of the entire request
  1437. * @sta_id: Per STA stats request must contain valid
  1438. * @stats_mask: categories of stats requested
  1439. * @session_id: wsm ts spec flag
  1440. */
  1441. struct pe_stats_req {
  1442. /* Common for all types are requests */
  1443. uint16_t msg_type;
  1444. uint16_t msg_len;
  1445. uint32_t sta_id;
  1446. /* categories of stats requested. look at ePEStatsMask */
  1447. uint32_t stats_mask;
  1448. uint8_t session_id;
  1449. };
  1450. /**
  1451. * struct link_status_params - link stats parameter
  1452. * @msg_type: message type is same as the request type
  1453. * @msg_len: length of the entire request
  1454. * @link_status: wme ts spec flag
  1455. * @session_id: wsm ts spec flag
  1456. */
  1457. struct link_status_params {
  1458. uint16_t msg_type;
  1459. uint16_t msg_len;
  1460. uint8_t link_status;
  1461. uint8_t session_id;
  1462. };
  1463. /**
  1464. * struct dhcp_stop_ind_params - DHCP Stop indication message
  1465. * @msgtype: message type is same as the request type
  1466. * @msglen: length of the entire request
  1467. * @device_mode: Mode of the device(ex:STA, AP)
  1468. * @adapter_macaddr: MAC address of the adapter
  1469. * @peer_macaddr: MAC address of the connected peer
  1470. */
  1471. struct dhcp_stop_ind_params {
  1472. uint16_t msgtype;
  1473. uint16_t msglen;
  1474. uint8_t device_mode;
  1475. struct qdf_mac_addr adapter_macaddr;
  1476. struct qdf_mac_addr peer_macaddr;
  1477. };
  1478. /**
  1479. * struct aggr_add_ts_param - ADDTS parameters
  1480. * @staIdx: station index
  1481. * @tspecIdx: TSPEC handler uniquely identifying a TSPEC for a STA in a BSS
  1482. * @tspec: tspec value
  1483. * @status: CDF status
  1484. * @sessionId: session id
  1485. */
  1486. struct aggr_add_ts_param {
  1487. uint16_t staIdx;
  1488. uint16_t tspecIdx;
  1489. struct mac_tspec_ie tspec[WMI_QOS_NUM_AC_MAX];
  1490. QDF_STATUS status[WMI_QOS_NUM_AC_MAX];
  1491. uint8_t sessionId;
  1492. };
  1493. #define WMI_MAX_FILTER_TEST_DATA_LEN 8
  1494. #define WMI_MAX_NUM_MULTICAST_ADDRESS 240
  1495. #define WMI_MAX_NUM_FILTERS 20
  1496. #define WMI_MAX_NUM_TESTS_PER_FILTER 10
  1497. /**
  1498. * enum packet_filter_type - packet filter type
  1499. * @WMI_RCV_FILTER_TYPE_INVALID: invalid type
  1500. * @WMI_RCV_FILTER_TYPE_FILTER_PKT: filter packet type
  1501. * @WMI_RCV_FILTER_TYPE_BUFFER_PKT: buffer packet type
  1502. * @WMI_RCV_FILTER_TYPE_MAX_ENUM_SIZE: max enum size
  1503. */
  1504. enum packet_filter_type {
  1505. WMI_RCV_FILTER_TYPE_INVALID,
  1506. WMI_RCV_FILTER_TYPE_FILTER_PKT,
  1507. WMI_RCV_FILTER_TYPE_BUFFER_PKT,
  1508. WMI_RCV_FILTER_TYPE_MAX_ENUM_SIZE
  1509. };
  1510. /**
  1511. * enum packet_protocol_type - packet protocol type
  1512. * @WMI_FILTER_HDR_TYPE_INVALID: invalid type
  1513. * @WMI_FILTER_HDR_TYPE_MAC: mac type
  1514. * @WMI_FILTER_HDR_TYPE_ARP: trp type
  1515. * @WMI_FILTER_HDR_TYPE_IPV4: ipv4 type
  1516. * @WMI_FILTER_HDR_TYPE_IPV6: ipv6 type
  1517. * @WMI_FILTER_HDR_TYPE_UDP: udp type
  1518. * @WMI_FILTER_HDR_TYPE_MAX: max type
  1519. */
  1520. enum packet_protocol_type {
  1521. WMI_FILTER_HDR_TYPE_INVALID,
  1522. WMI_FILTER_HDR_TYPE_MAC,
  1523. WMI_FILTER_HDR_TYPE_ARP,
  1524. WMI_FILTER_HDR_TYPE_IPV4,
  1525. WMI_FILTER_HDR_TYPE_IPV6,
  1526. WMI_FILTER_HDR_TYPE_UDP,
  1527. WMI_FILTER_HDR_TYPE_MAX
  1528. };
  1529. /**
  1530. * enum packet_filter_comp_type - packet filter comparison type
  1531. * @WMI_FILTER_CMP_TYPE_INVALID: invalid type
  1532. * @WMI_FILTER_CMP_TYPE_EQUAL: type equal
  1533. * @WMI_FILTER_CMP_TYPE_MASK_EQUAL: mask equal
  1534. * @WMI_FILTER_CMP_TYPE_NOT_EQUAL: type not equal
  1535. * @WMI_FILTER_CMP_TYPE_MASK_NOT_EQUAL: mask not equal
  1536. * @WMI_FILTER_CMP_TYPE_MAX: max type
  1537. */
  1538. enum packet_filter_comp_type {
  1539. WMI_FILTER_CMP_TYPE_INVALID,
  1540. WMI_FILTER_CMP_TYPE_EQUAL,
  1541. WMI_FILTER_CMP_TYPE_MASK_EQUAL,
  1542. WMI_FILTER_CMP_TYPE_NOT_EQUAL,
  1543. WMI_FILTER_CMP_TYPE_MASK_NOT_EQUAL,
  1544. WMI_FILTER_CMP_TYPE_MAX
  1545. };
  1546. /**
  1547. * struct rcv_pkt_filter_params - recieve packet filter parameters
  1548. * @protocolLayer - protocol layer
  1549. * @cmpFlag - comparison flag
  1550. * @dataLength - data length
  1551. * @dataOffset - data offset
  1552. * @reserved - resserved
  1553. * @compareData - compare data
  1554. * @dataMask - data mask
  1555. */
  1556. struct rcv_pkt_filter_params {
  1557. enum packet_protocol_type protocolLayer;
  1558. enum packet_filter_comp_type cmpFlag;
  1559. uint16_t dataLength;
  1560. uint8_t dataOffset;
  1561. uint8_t reserved;
  1562. uint8_t compareData[WMI_MAX_FILTER_TEST_DATA_LEN];
  1563. uint8_t dataMask[WMI_MAX_FILTER_TEST_DATA_LEN];
  1564. };
  1565. /**
  1566. * struct rcv_pkt_filter_config - recieve packet filter info
  1567. * @filterId - filter id
  1568. * @filterType - filter type
  1569. * @numFieldParams - no of fields
  1570. * @coalesceTime - reserved parameter
  1571. * @self_macaddr - self mac address
  1572. * @bssid - Bssid of the connected AP
  1573. * @paramsData - data parameter
  1574. */
  1575. struct rcv_pkt_filter_config {
  1576. uint8_t filterId;
  1577. enum packet_filter_type filterType;
  1578. uint32_t numFieldParams;
  1579. uint32_t coalesceTime;
  1580. struct qdf_mac_addr self_macaddr;
  1581. struct qdf_mac_addr bssid;
  1582. struct rcv_pkt_filter_params paramsData[WMI_MAX_NUM_TESTS_PER_FILTER];
  1583. };
  1584. /**
  1585. * struct vdev_ie_info_param - IE info
  1586. * @vdev_id - vdev for which the IE is being sent
  1587. * @ie_id - ID of the IE
  1588. * @length - length of the IE data
  1589. * @data - IE data
  1590. *
  1591. * This structure is used to store the IE information.
  1592. */
  1593. struct vdev_ie_info_param {
  1594. uint32_t vdev_id;
  1595. uint32_t ie_id;
  1596. uint32_t length;
  1597. uint8_t *data;
  1598. };
  1599. #define WMI_MAX_NUM_FW_SEGMENTS 4
  1600. /**
  1601. * struct fw_dump_seg_req_param - individual segment details
  1602. * @seg_id - segment id.
  1603. * @seg_start_addr_lo - lower address of the segment.
  1604. * @seg_start_addr_hi - higher address of the segment.
  1605. * @seg_length - length of the segment.
  1606. * @dst_addr_lo - lower address of the destination buffer.
  1607. * @dst_addr_hi - higher address of the destination buffer.
  1608. *
  1609. * This structure carries the information to firmware about the
  1610. * individual segments. This structure is part of firmware memory
  1611. * dump request.
  1612. */
  1613. struct fw_dump_seg_req_param {
  1614. uint8_t seg_id;
  1615. uint32_t seg_start_addr_lo;
  1616. uint32_t seg_start_addr_hi;
  1617. uint32_t seg_length;
  1618. uint32_t dst_addr_lo;
  1619. uint32_t dst_addr_hi;
  1620. };
  1621. /**
  1622. * struct fw_dump_req_param - firmware memory dump request details.
  1623. * @request_id - request id.
  1624. * @num_seg - requested number of segments.
  1625. * @fw_dump_seg_req - individual segment information.
  1626. *
  1627. * This structure carries information about the firmware
  1628. * memory dump request.
  1629. */
  1630. struct fw_dump_req_param {
  1631. uint32_t request_id;
  1632. uint32_t num_seg;
  1633. struct fw_dump_seg_req_param segment[WMI_MAX_NUM_FW_SEGMENTS];
  1634. };
  1635. #define WMI_TDLS_MAX_SUPP_CHANNELS 128
  1636. #define WMI_TDLS_MAX_SUPP_OPER_CLASSES 32
  1637. #define WMI_2_4_GHZ_MAX_FREQ 3000
  1638. /**
  1639. * struct tdls_update_ch_params - channel parameters
  1640. * @chanId: ID of the channel
  1641. * @pwr: power level
  1642. * @dfsSet: is dfs supported or not
  1643. * @half_rate: is the channel operating at 10MHz
  1644. * @quarter_rate: is the channel operating at 5MHz
  1645. */
  1646. struct tdls_update_ch_params {
  1647. uint8_t chanId;
  1648. uint8_t pwr;
  1649. bool dfsSet;
  1650. bool half_rate;
  1651. bool quarter_rate;
  1652. };
  1653. /**
  1654. * struct tdls_peer_cap_params - TDLS peer capablities parameters
  1655. * @isPeerResponder: is peer responder or not
  1656. * @peerUapsdQueue: peer uapsd queue
  1657. * @peerMaxSp: peer max SP value
  1658. * @peerBuffStaSupport: peer buffer sta supported or not
  1659. * @peerOffChanSupport: peer offchannel support
  1660. * @peerCurrOperClass: peer current operating class
  1661. * @selfCurrOperClass: self current operating class
  1662. * @peerChanLen: peer channel length
  1663. * @peerChan: peer channel list
  1664. * @peerOperClassLen: peer operating class length
  1665. * @peerOperClass: peer operating class
  1666. * @prefOffChanNum: peer offchannel number
  1667. * @prefOffChanBandwidth: peer offchannel bandwidth
  1668. * @opClassForPrefOffChan: operating class for offchannel
  1669. */
  1670. struct tdls_peer_cap_params {
  1671. uint8_t isPeerResponder;
  1672. uint8_t peerUapsdQueue;
  1673. uint8_t peerMaxSp;
  1674. uint8_t peerBuffStaSupport;
  1675. uint8_t peerOffChanSupport;
  1676. uint8_t peerCurrOperClass;
  1677. uint8_t selfCurrOperClass;
  1678. uint8_t peerChanLen;
  1679. struct tdls_update_ch_params peerChan[WMI_TDLS_MAX_SUPP_CHANNELS];
  1680. uint8_t peerOperClassLen;
  1681. uint8_t peerOperClass[WMI_TDLS_MAX_SUPP_OPER_CLASSES];
  1682. uint8_t prefOffChanNum;
  1683. uint8_t prefOffChanBandwidth;
  1684. uint8_t opClassForPrefOffChan;
  1685. };
  1686. /**
  1687. * struct tdls_peer_state_params - TDLS peer state parameters
  1688. * @vdevId: vdev id
  1689. * @peerMacAddr: peer mac address
  1690. * @peerCap: peer capabality
  1691. */
  1692. struct tdls_peer_state_params {
  1693. uint32_t vdevId;
  1694. uint8_t peerMacAddr[WMI_ETH_LEN];
  1695. uint32_t peerState;
  1696. struct tdls_peer_cap_params peerCap;
  1697. };
  1698. /**
  1699. * struct wmi_tdls_params - TDLS parameters
  1700. * @vdev_id: vdev id
  1701. * @tdls_state: TDLS state
  1702. * @notification_interval_ms: notification inerval
  1703. * @tx_discovery_threshold: tx discovery threshold
  1704. * @tx_teardown_threshold: tx teardown threashold
  1705. * @rssi_teardown_threshold: RSSI teardown threshold
  1706. * @rssi_delta: RSSI delta
  1707. * @tdls_options: TDLS options
  1708. * @peer_traffic_ind_window: raffic indication window
  1709. * @peer_traffic_response_timeout: traffic response timeout
  1710. * @puapsd_mask: uapsd mask
  1711. * @puapsd_inactivity_time: uapsd inactivity time
  1712. * @puapsd_rx_frame_threshold: uapsd rx frame threshold
  1713. * @teardown_notification_ms: tdls teardown notification interval
  1714. * @tdls_peer_kickout_threshold: tdls packet threshold for
  1715. * peer kickout operation
  1716. */
  1717. struct wmi_tdls_params {
  1718. uint32_t vdev_id;
  1719. uint32_t tdls_state;
  1720. uint32_t notification_interval_ms;
  1721. uint32_t tx_discovery_threshold;
  1722. uint32_t tx_teardown_threshold;
  1723. int32_t rssi_teardown_threshold;
  1724. int32_t rssi_delta;
  1725. uint32_t tdls_options;
  1726. uint32_t peer_traffic_ind_window;
  1727. uint32_t peer_traffic_response_timeout;
  1728. uint32_t puapsd_mask;
  1729. uint32_t puapsd_inactivity_time;
  1730. uint32_t puapsd_rx_frame_threshold;
  1731. uint32_t teardown_notification_ms;
  1732. uint32_t tdls_peer_kickout_threshold;
  1733. };
  1734. /**
  1735. * struct tdls_chan_switch_params - channel switch parameter structure
  1736. * @vdev_id: vdev ID
  1737. * @peer_mac_addr: Peer mac address
  1738. * @tdls_off_ch_bw_offset: Target off-channel bandwitdh offset
  1739. * @tdls_off_ch: Target Off Channel
  1740. * @oper_class: Operating class for target channel
  1741. * @is_responder: Responder or initiator
  1742. */
  1743. struct tdls_channel_switch_params {
  1744. uint32_t vdev_id;
  1745. uint8_t peer_mac_addr[WMI_ETH_LEN];
  1746. uint16_t tdls_off_ch_bw_offset;
  1747. uint8_t tdls_off_ch;
  1748. uint8_t tdls_sw_mode;
  1749. uint8_t oper_class;
  1750. uint8_t is_responder;
  1751. };
  1752. /**
  1753. * struct dhcp_offload_info_params - dhcp offload parameters
  1754. * @vdev_id: request data length
  1755. * @dhcpSrvOffloadEnabled: dhcp offload enabled
  1756. * @dhcpClientNum: dhcp client no
  1757. * @dhcpSrvIP: dhcp server ip
  1758. */
  1759. struct dhcp_offload_info_params {
  1760. uint32_t vdev_id;
  1761. uint32_t dhcpSrvOffloadEnabled;
  1762. uint32_t dhcpClientNum;
  1763. uint32_t dhcpSrvIP;
  1764. };
  1765. /**
  1766. * struct nan_req_params - NAN request params
  1767. * @request_data_len: request data length
  1768. * @request_data: request data
  1769. */
  1770. struct nan_req_params {
  1771. uint16_t request_data_len;
  1772. uint8_t request_data[];
  1773. };
  1774. /**
  1775. * struct app_type2_params - app type2parameter
  1776. * @vdev_id: vdev id
  1777. * @rc4_key: rc4 key
  1778. * @rc4_key_len: rc4 key length
  1779. * @ip_id: NC id
  1780. * @ip_device_ip: NC IP addres
  1781. * @ip_server_ip: Push server IP address
  1782. * @tcp_src_port: NC TCP port
  1783. * @tcp_dst_port: Push server TCP port
  1784. * @tcp_seq: tcp sequence
  1785. * @tcp_ack_seq: tcp ack sequence
  1786. * @keepalive_init: Initial ping interval
  1787. * @keepalive_min: Minimum ping interval
  1788. * @keepalive_max: Maximum ping interval
  1789. * @keepalive_inc: Increment of ping interval
  1790. * @gateway_mac: gateway mac address
  1791. * @tcp_tx_timeout_val: tcp tx timeout value
  1792. * @tcp_rx_timeout_val: tcp rx timeout value
  1793. */
  1794. struct app_type2_params {
  1795. uint8_t vdev_id;
  1796. uint8_t rc4_key[16];
  1797. uint32_t rc4_key_len;
  1798. /** ip header parameter */
  1799. uint32_t ip_id;
  1800. uint32_t ip_device_ip;
  1801. uint32_t ip_server_ip;
  1802. /** tcp header parameter */
  1803. uint16_t tcp_src_port;
  1804. uint16_t tcp_dst_port;
  1805. uint32_t tcp_seq;
  1806. uint32_t tcp_ack_seq;
  1807. uint32_t keepalive_init;
  1808. uint32_t keepalive_min;
  1809. uint32_t keepalive_max;
  1810. uint32_t keepalive_inc;
  1811. struct qdf_mac_addr gateway_mac;
  1812. uint32_t tcp_tx_timeout_val;
  1813. uint32_t tcp_rx_timeout_val;
  1814. };
  1815. /**
  1816. * struct app_type1_params - app type1 parameter
  1817. * @vdev_id: vdev id
  1818. * @wakee_mac_addr: mac address
  1819. * @identification_id: identification id
  1820. * @password: password
  1821. * @id_length: id length
  1822. * @pass_length: password length
  1823. */
  1824. struct app_type1_params {
  1825. uint8_t vdev_id;
  1826. struct qdf_mac_addr wakee_mac_addr;
  1827. uint8_t identification_id[8];
  1828. uint8_t password[16];
  1829. uint32_t id_length;
  1830. uint32_t pass_length;
  1831. };
  1832. /**
  1833. * enum wmi_ext_wow_type - wow type
  1834. * @WMI_EXT_WOW_TYPE_APP_TYPE1: only enable wakeup for app type1
  1835. * @WMI_EXT_WOW_TYPE_APP_TYPE2: only enable wakeup for app type2
  1836. * @WMI_EXT_WOW_TYPE_APP_TYPE1_2: enable wakeup for app type1&2
  1837. */
  1838. enum wmi_ext_wow_type {
  1839. WMI_EXT_WOW_TYPE_APP_TYPE1,
  1840. WMI_EXT_WOW_TYPE_APP_TYPE2,
  1841. WMI_EXT_WOW_TYPE_APP_TYPE1_2,
  1842. };
  1843. /**
  1844. * struct ext_wow_params - ext wow parameters
  1845. * @vdev_id: vdev id
  1846. * @type: wow type
  1847. * @wakeup_pin_num: wake up gpio no
  1848. */
  1849. struct ext_wow_params {
  1850. uint8_t vdev_id;
  1851. enum wmi_ext_wow_type type;
  1852. uint32_t wakeup_pin_num;
  1853. };
  1854. /**
  1855. * struct stats_ext_params - ext stats request
  1856. * @vdev_id: vdev id
  1857. * @request_data_len: request data length
  1858. * @request_data: request data
  1859. */
  1860. struct stats_ext_params {
  1861. uint32_t vdev_id;
  1862. uint32_t request_data_len;
  1863. uint8_t request_data[];
  1864. };
  1865. #define WMI_PERIODIC_TX_PTRN_MAX_SIZE 1536
  1866. /**
  1867. * struct periodic_tx_pattern - periodic tx pattern
  1868. * @mac_address: MAC Address for the adapter
  1869. * @ucPtrnId: Pattern ID
  1870. * @ucPtrnSize: Pattern size
  1871. * @usPtrnIntervalMs: in ms
  1872. * @ucPattern: Pattern buffer
  1873. */
  1874. struct periodic_tx_pattern {
  1875. struct qdf_mac_addr mac_address;
  1876. uint8_t ucPtrnId;
  1877. uint16_t ucPtrnSize;
  1878. uint32_t usPtrnIntervalMs;
  1879. uint8_t ucPattern[WMI_PERIODIC_TX_PTRN_MAX_SIZE];
  1880. };
  1881. #define WMI_GTK_OFFLOAD_KEK_BYTES 16
  1882. #define WMI_GTK_OFFLOAD_KCK_BYTES 16
  1883. /**
  1884. * struct gtk_offload_params - gtk offload parameters
  1885. * @ulFlags: optional flags
  1886. * @aKCK: Key confirmation key
  1887. * @aKEK: key encryption key
  1888. * @ullKeyReplayCounter: replay counter
  1889. * @bssid: bss id
  1890. */
  1891. struct gtk_offload_params {
  1892. uint32_t ulFlags;
  1893. uint8_t aKCK[WMI_GTK_OFFLOAD_KCK_BYTES];
  1894. uint8_t aKEK[WMI_GTK_OFFLOAD_KEK_BYTES];
  1895. uint64_t ullKeyReplayCounter;
  1896. struct qdf_mac_addr bssid;
  1897. };
  1898. /**
  1899. * struct flashing_req_params - led flashing parameter
  1900. * @reqId: request id
  1901. * @pattern_id: pattern identifier. 0: disconnected 1: connected
  1902. * @led_x0: led flashing parameter0
  1903. * @led_x1: led flashing parameter1
  1904. */
  1905. struct flashing_req_params {
  1906. uint32_t req_id;
  1907. uint32_t pattern_id;
  1908. uint32_t led_x0;
  1909. uint32_t led_x1;
  1910. };
  1911. struct wmi_host_mem_chunk {
  1912. uint32_t *vaddr;
  1913. uint32_t paddr;
  1914. qdf_dma_mem_context(memctx);
  1915. uint32_t len;
  1916. uint32_t req_id;
  1917. };
  1918. struct target_resource_config {
  1919. uint32_t num_vdevs;
  1920. uint32_t num_peers;
  1921. uint32_t num_active_peers;
  1922. uint32_t num_offload_peers;
  1923. uint32_t num_offload_reorder_buffs;
  1924. uint32_t num_peer_keys;
  1925. uint32_t num_tids;
  1926. uint32_t ast_skid_limit;
  1927. uint32_t tx_chain_mask;
  1928. uint32_t rx_chain_mask;
  1929. uint32_t rx_timeout_pri[4];
  1930. uint32_t rx_decap_mode;
  1931. uint32_t scan_max_pending_req;
  1932. uint32_t bmiss_offload_max_vdev;
  1933. uint32_t roam_offload_max_vdev;
  1934. uint32_t roam_offload_max_ap_profiles;
  1935. uint32_t num_mcast_groups;
  1936. uint32_t num_mcast_table_elems;
  1937. uint32_t mcast2ucast_mode;
  1938. uint32_t tx_dbg_log_size;
  1939. uint32_t num_wds_entries;
  1940. uint32_t dma_burst_size;
  1941. uint32_t mac_aggr_delim;
  1942. uint32_t rx_skip_defrag_timeout_dup_detection_check;
  1943. uint32_t vow_config;
  1944. uint32_t gtk_offload_max_vdev;
  1945. uint32_t num_msdu_desc; /* Number of msdu desc */
  1946. uint32_t max_frag_entries;
  1947. /* End common */
  1948. /* Added in MCL */
  1949. uint32_t num_tdls_vdevs;
  1950. uint32_t num_tdls_conn_table_entries;
  1951. uint32_t beacon_tx_offload_max_vdev;
  1952. uint32_t num_multicast_filter_entries;
  1953. uint32_t num_wow_filters;
  1954. uint32_t num_keep_alive_pattern;
  1955. uint32_t keep_alive_pattern_size;
  1956. uint32_t max_tdls_concurrent_sleep_sta;
  1957. uint32_t max_tdls_concurrent_buffer_sta;
  1958. uint32_t wmi_send_separate;
  1959. uint32_t num_ocb_vdevs;
  1960. uint32_t num_ocb_channels;
  1961. uint32_t num_ocb_schedules;
  1962. };
  1963. /**
  1964. * struct wmi_wifi_start_log - Structure to store the params sent to start/
  1965. * stop logging
  1966. * @name: Attribute which indicates the type of logging like per packet
  1967. * statistics, connectivity etc.
  1968. * @verbose_level: Verbose level which can be 0,1,2,3
  1969. * @flag: Flag field for future use
  1970. */
  1971. struct wmi_wifi_start_log {
  1972. uint32_t ring_id;
  1973. uint32_t verbose_level;
  1974. uint32_t flag;
  1975. };
  1976. /**
  1977. * struct wmi_pcl_list - Format of PCL
  1978. * @pcl_list: List of preferred channels
  1979. * @pcl_len: Number of channels in the PCL
  1980. */
  1981. struct wmi_pcl_list {
  1982. uint8_t pcl_list[128];
  1983. uint32_t pcl_len;
  1984. };
  1985. /**
  1986. * struct wmi_hw_mode_params - HW mode params
  1987. * @mac0_tx_ss: MAC0 Tx spatial stream
  1988. * @mac0_rx_ss: MAC0 Rx spatial stream
  1989. * @mac1_tx_ss: MAC1 Tx spatial stream
  1990. * @mac1_rx_ss: MAC1 Rx spatial stream
  1991. * @mac0_bw: MAC0 bandwidth
  1992. * @mac1_bw: MAC1 bandwidth
  1993. * @dbs_cap: DBS capabality
  1994. * @agile_dfs_cap: Agile DFS capabality
  1995. */
  1996. struct wmi_hw_mode_params {
  1997. uint8_t mac0_tx_ss;
  1998. uint8_t mac0_rx_ss;
  1999. uint8_t mac1_tx_ss;
  2000. uint8_t mac1_rx_ss;
  2001. uint8_t mac0_bw;
  2002. uint8_t mac1_bw;
  2003. uint8_t dbs_cap;
  2004. uint8_t agile_dfs_cap;
  2005. };
  2006. /**
  2007. * struct wmi_dual_mac_config - Dual MAC configuration
  2008. * @scan_config: Scan configuration
  2009. * @fw_mode_config: FW mode configuration
  2010. * @set_dual_mac_cb: Callback function to be executed on response to the command
  2011. */
  2012. struct wmi_dual_mac_config {
  2013. uint32_t scan_config;
  2014. uint32_t fw_mode_config;
  2015. void *set_dual_mac_cb;
  2016. };
  2017. #ifdef WLAN_NS_OFFLOAD
  2018. /**
  2019. * struct ns_offload_req_params - ns offload request paramter
  2020. * @srcIPv6Addr: src ipv6 address
  2021. * @selfIPv6Addr: self ipv6 address
  2022. * @targetIPv6Addr: target ipv6 address
  2023. * @self_macaddr: self mac address
  2024. * @srcIPv6AddrValid: src ipv6 address valid flag
  2025. * @targetIPv6AddrValid: target ipv6 address valid flag
  2026. * @slotIdx: slot index
  2027. */
  2028. struct ns_offload_req_params {
  2029. uint8_t srcIPv6Addr[WMI_MAC_IPV6_ADDR_LEN];
  2030. uint8_t selfIPv6Addr[WMI_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA][WMI_MAC_IPV6_ADDR_LEN];
  2031. uint8_t targetIPv6Addr[WMI_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA][WMI_MAC_IPV6_ADDR_LEN];
  2032. struct qdf_mac_addr self_macaddr;
  2033. uint8_t srcIPv6AddrValid;
  2034. uint8_t targetIPv6AddrValid[WMI_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA];
  2035. uint8_t slotIdx;
  2036. };
  2037. #endif /* WLAN_NS_OFFLOAD */
  2038. /**
  2039. * struct host_offload_req_param - arp offload parameter
  2040. * @offloadType: offload type
  2041. * @enableOrDisable: enable or disable
  2042. * @num_ns_offload_count: offload count
  2043. */
  2044. struct host_offload_req_param {
  2045. uint8_t offloadType;
  2046. uint8_t enableOrDisable;
  2047. uint32_t num_ns_offload_count;
  2048. union {
  2049. uint8_t hostIpv4Addr[WMI_IPV4_ADDR_LEN];
  2050. uint8_t hostIpv6Addr[WMI_MAC_IPV6_ADDR_LEN];
  2051. } params;
  2052. #ifdef WLAN_NS_OFFLOAD
  2053. struct ns_offload_req_params nsOffloadInfo;
  2054. #endif /* WLAN_NS_OFFLOAD */
  2055. struct qdf_mac_addr bssid;
  2056. };
  2057. /**
  2058. * struct ssid_hotlist_param - param for SSID Hotlist
  2059. * @ssid: SSID which is being hotlisted
  2060. * @band: Band in which the given SSID should be scanned
  2061. * @rssi_low: Low bound on RSSI
  2062. * @rssi_high: High bound on RSSI
  2063. */
  2064. struct ssid_hotlist_param {
  2065. struct mac_ssid ssid;
  2066. uint8_t band;
  2067. int32_t rssi_low;
  2068. int32_t rssi_high;
  2069. };
  2070. /**
  2071. * struct ssid_hotlist_request_params - set SSID hotlist request struct
  2072. * @request_id: ID of the request
  2073. * @session_id: ID of the session
  2074. * @lost_ssid_sample_size: Number of consecutive scans in which the SSID
  2075. * must not be seen in order to consider the SSID "lost"
  2076. * @ssid_count: Number of valid entries in the @ssids array
  2077. * @ssids: Array that defines the SSIDs that are in the hotlist
  2078. */
  2079. struct ssid_hotlist_request_params {
  2080. uint32_t request_id;
  2081. uint8_t session_id;
  2082. uint32_t lost_ssid_sample_size;
  2083. uint32_t ssid_count;
  2084. struct ssid_hotlist_param ssids[WMI_EXTSCAN_MAX_HOTLIST_SSIDS];
  2085. };
  2086. /**
  2087. * struct wmi_unit_test_cmd - unit test command parameters
  2088. * @vdev_id: vdev id
  2089. * @module_id: module id
  2090. * @num_args: number of arguments
  2091. * @args: arguments
  2092. */
  2093. struct wmi_unit_test_cmd {
  2094. uint32_t vdev_id;
  2095. WLAN_MODULE_ID module_id;
  2096. uint32_t num_args;
  2097. uint32_t args[WMI_MAX_NUM_ARGS];
  2098. };
  2099. /**
  2100. * struct wmi_roam_invoke_cmd - roam invoke command
  2101. * @vdev_id: vdev id
  2102. * @bssid: mac address
  2103. * @channel: channel
  2104. */
  2105. struct wmi_roam_invoke_cmd {
  2106. uint32_t vdev_id;
  2107. uint8_t bssid[IEEE80211_ADDR_LEN];
  2108. uint32_t channel;
  2109. };
  2110. /**
  2111. * struct ext_scan_setbssi_hotlist_params - set hotlist request
  2112. * @requestId: request identifier
  2113. * @sessionId: session identifier
  2114. * @lost_ap_sample_size: number of samples to confirm AP loss
  2115. * @numAp: Number of hotlist APs
  2116. * @ap: hotlist APs
  2117. */
  2118. struct ext_scan_setbssi_hotlist_params {
  2119. uint32_t requestId;
  2120. uint8_t sessionId;
  2121. uint32_t lost_ap_sample_size;
  2122. uint32_t numAp;
  2123. struct ap_threshold_params ap[WMI_WLAN_EXTSCAN_MAX_HOTLIST_APS];
  2124. };
  2125. #endif /* _WMI_UNIFIED_PARAM_H_ */