cdp_txrx_mon_struct.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. /*
  2. * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * @file cdp_txrx_mon_struct.h
  21. * @brief Define the monitor mode API structure
  22. * shared by data path and the OS interface module
  23. */
  24. #ifndef _CDP_TXRX_MON_STRUCT_H_
  25. #define _CDP_TXRX_MON_STRUCT_H_
  26. #ifdef QCA_SUPPORT_LITE_MONITOR
  27. #define CDP_LITE_MON_PEER_MAX 16
  28. #define CDP_LITE_MON_LEN_64B 0x40
  29. #define CDP_LITE_MON_LEN_128B 0x80
  30. #define CDP_LITE_MON_LEN_256B 0x100
  31. #define CDP_LITE_MON_LEN_FULL 0xFFFF
  32. #define CDP_LITE_MON_FILTER_ALL 0xFFFF
  33. #define CDP_LITE_MON_RX_PACKET_OFFSET 8
  34. /* This should align with nac mac type enumerations in ieee80211_ioctl.h */
  35. #define CDP_LITE_MON_PEER_MAC_TYPE_CLIENT 2
  36. /* lite mon filter modes */
  37. enum cdp_lite_mon_filter_mode {
  38. /* mode filter pass */
  39. CDP_LITE_MON_MODE_FP = 0,
  40. /* mode monitor direct */
  41. CDP_LITE_MON_MODE_MD = 1,
  42. /* mode monitor other */
  43. CDP_LITE_MON_MODE_MO = 2,
  44. /* mode filter pass monitor other */
  45. CDP_LITE_MON_MODE_FP_MO = 3,
  46. /* max filter modes */
  47. CDP_LITE_MON_MODE_MAX = 4,
  48. };
  49. /* lite mon frame levels */
  50. enum cdp_lite_mon_level {
  51. /* level invalid */
  52. CDP_LITE_MON_LEVEL_INVALID = 0,
  53. /* level msdu */
  54. CDP_LITE_MON_LEVEL_MSDU = 1,
  55. /* level mpdu */
  56. CDP_LITE_MON_LEVEL_MPDU = 2,
  57. /* level ppdu */
  58. CDP_LITE_MON_LEVEL_PPDU = 3,
  59. };
  60. /* lite mon frame types */
  61. enum cdp_lite_mon_frm_type {
  62. /* frm type mgmt */
  63. CDP_LITE_MON_FRM_TYPE_MGMT = 0,
  64. /* frm type ctrl */
  65. CDP_LITE_MON_FRM_TYPE_CTRL = 1,
  66. /* frm type data */
  67. CDP_LITE_MON_FRM_TYPE_DATA = 2,
  68. /* max frame types */
  69. CDP_LITE_MON_FRM_TYPE_MAX = 3,
  70. };
  71. /* lite mon peer action */
  72. enum cdp_lite_mon_peer_action {
  73. /* peer add */
  74. CDP_LITE_MON_PEER_ADD = 0,
  75. /* peer remove */
  76. CDP_LITE_MON_PEER_REMOVE = 1,
  77. };
  78. /* lite mon peer types */
  79. enum cdp_lite_mon_peer_type {
  80. /* associated peer */
  81. CDP_LITE_MON_PEER_TYPE_ASSOCIATED = 0,
  82. /* non associated peer */
  83. CDP_LITE_MON_PEER_TYPE_NON_ASSOCIATED = 1,
  84. /* max peer types */
  85. CDP_LITE_MON_PEER_TYPE_MAX = 2,
  86. };
  87. /* lite mon config direction */
  88. enum cdp_lite_mon_direction {
  89. /* lite mon config direction rx */
  90. CDP_LITE_MON_DIRECTION_RX = 1,
  91. /* lite mon config direction tx */
  92. CDP_LITE_MON_DIRECTION_TX = 2,
  93. };
  94. #endif
  95. /* XXX not really a mode; there are really multiple PHY's */
  96. enum cdp_mon_phymode {
  97. /* autoselect */
  98. CDP_IEEE80211_MODE_AUTO = 0,
  99. /* 5GHz, OFDM */
  100. CDP_IEEE80211_MODE_11A = 1,
  101. /* 2GHz, CCK */
  102. CDP_IEEE80211_MODE_11B = 2,
  103. /* 2GHz, OFDM */
  104. CDP_IEEE80211_MODE_11G = 3,
  105. /* 2GHz, GFSK */
  106. CDP_IEEE80211_MODE_FH = 4,
  107. /* 5GHz, OFDM, 2x clock dynamic turbo */
  108. CDP_IEEE80211_MODE_TURBO_A = 5,
  109. /* 2GHz, OFDM, 2x clock dynamic turbo */
  110. CDP_IEEE80211_MODE_TURBO_G = 6,
  111. /* 5Ghz, HT20 */
  112. CDP_IEEE80211_MODE_11NA_HT20 = 7,
  113. /* 2Ghz, HT20 */
  114. CDP_IEEE80211_MODE_11NG_HT20 = 8,
  115. /* 5Ghz, HT40 (ext ch +1) */
  116. CDP_IEEE80211_MODE_11NA_HT40PLUS = 9,
  117. /* 5Ghz, HT40 (ext ch -1) */
  118. CDP_IEEE80211_MODE_11NA_HT40MINUS = 10,
  119. /* 2Ghz, HT40 (ext ch +1) */
  120. CDP_IEEE80211_MODE_11NG_HT40PLUS = 11,
  121. /* 2Ghz, HT40 (ext ch -1) */
  122. CDP_IEEE80211_MODE_11NG_HT40MINUS = 12,
  123. /* 2Ghz, Auto HT40 */
  124. CDP_IEEE80211_MODE_11NG_HT40 = 13,
  125. /* 5Ghz, Auto HT40 */
  126. CDP_IEEE80211_MODE_11NA_HT40 = 14,
  127. /* 5Ghz, VHT20 */
  128. CDP_IEEE80211_MODE_11AC_VHT20 = 15,
  129. /* 5Ghz, VHT40 (Ext ch +1) */
  130. CDP_IEEE80211_MODE_11AC_VHT40PLUS = 16,
  131. /* 5Ghz VHT40 (Ext ch -1) */
  132. CDP_IEEE80211_MODE_11AC_VHT40MINUS = 17,
  133. /* 5Ghz, VHT40 */
  134. CDP_IEEE80211_MODE_11AC_VHT40 = 18,
  135. /* 5Ghz, VHT80 */
  136. CDP_IEEE80211_MODE_11AC_VHT80 = 19,
  137. /* 5Ghz, VHT160 */
  138. CDP_IEEE80211_MODE_11AC_VHT160 = 20,
  139. /* 5Ghz, VHT80_80 */
  140. CDP_IEEE80211_MODE_11AC_VHT80_80 = 21,
  141. };
  142. enum {
  143. CDP_PKT_TYPE_OFDM = 0,
  144. CDP_PKT_TYPE_CCK,
  145. CDP_PKT_TYPE_HT,
  146. CDP_PKT_TYPE_VHT,
  147. CDP_PKT_TYPE_HE,
  148. };
  149. enum {
  150. CDP_SGI_0_8_US = 0,
  151. CDP_SGI_0_4_US,
  152. CDP_SGI_1_6_US,
  153. CDP_SGI_3_2_US,
  154. };
  155. enum {
  156. CDP_RX_TYPE_SU = 0,
  157. CDP_RX_TYPE_MU_MIMO,
  158. CDP_RX_TYPE_MU_OFDMA,
  159. CDP_RX_TYPE_MU_OFDMA_MIMO,
  160. };
  161. /*
  162. *Band Width Types
  163. */
  164. enum CMN_BW_TYPES {
  165. CMN_BW_20MHZ,
  166. CMN_BW_40MHZ,
  167. CMN_BW_80MHZ,
  168. CMN_BW_160MHZ,
  169. CMN_BW_80_80MHZ,
  170. #ifdef WLAN_FEATURE_11BE
  171. CMN_BW_320MHZ,
  172. #endif
  173. CMN_BW_CNT,
  174. CMN_BW_IDLE = 0xFF, /*default BW state */
  175. };
  176. enum cdp_punctured_modes {
  177. NO_PUNCTURE,
  178. #ifdef WLAN_FEATURE_11BE
  179. PUNCTURED_20MHZ,
  180. PUNCTURED_40MHZ,
  181. PUNCTURED_80MHZ,
  182. PUNCTURED_120MHZ,
  183. #endif
  184. PUNCTURED_MODE_CNT,
  185. };
  186. struct cdp_mon_status {
  187. /* bss color value 1-63 used for update on ppdu_desc bsscolor */
  188. uint8_t bsscolor;
  189. int rs_numchains;
  190. int rs_flags;
  191. #define IEEE80211_RX_FCS_ERROR 0x01
  192. #define IEEE80211_RX_MIC_ERROR 0x02
  193. #define IEEE80211_RX_DECRYPT_ERROR 0x04
  194. /* holes in flags here between, ATH_RX_XXXX to IEEE80211_RX_XXX */
  195. #define IEEE80211_RX_KEYMISS 0x200
  196. #define IEEE80211_RX_PN_ERROR 0x400
  197. int rs_rssi; /* RSSI (noise floor ajusted) */
  198. int rs_abs_rssi; /* absolute RSSI */
  199. int rs_datarate; /* data rate received */
  200. int rs_rateieee;
  201. int rs_ratephy1;
  202. int rs_ratephy2;
  203. int rs_ratephy3;
  204. /* Keep the same as ATH_MAX_ANTENNA */
  205. #define IEEE80211_MAX_ANTENNA 3
  206. /* RSSI (noise floor ajusted) */
  207. u_int8_t rs_rssictl[IEEE80211_MAX_ANTENNA];
  208. /* RSSI (noise floor ajusted) */
  209. u_int8_t rs_rssiextn[IEEE80211_MAX_ANTENNA];
  210. /* rs_rssi is valid or not */
  211. u_int8_t rs_isvalidrssi;
  212. enum cdp_mon_phymode rs_phymode;
  213. int rs_freq;
  214. union {
  215. u_int8_t data[8];
  216. u_int64_t tsf;
  217. } rs_tstamp;
  218. /*
  219. * Detail channel structure of recv frame.
  220. * It could be NULL if not available
  221. */
  222. #ifdef ATH_SUPPORT_AOW
  223. u_int16_t rs_rxseq; /* WLAN Sequence number */
  224. #endif
  225. #ifdef ATH_VOW_EXT_STATS
  226. /* Lower 16 bits holds the udp checksum offset in the data pkt */
  227. u_int32_t vow_extstats_offset;
  228. /* Higher 16 bits contains offset in the data pkt at which vow
  229. * ext stats are embedded
  230. */
  231. #endif
  232. u_int8_t rs_isaggr;
  233. u_int8_t rs_isapsd;
  234. int16_t rs_noisefloor;
  235. u_int16_t rs_channel;
  236. #ifdef ATH_SUPPORT_TxBF
  237. u_int32_t rs_rpttstamp; /* txbf report time stamp*/
  238. #endif
  239. /* The following counts are meant to assist in stats calculation.
  240. * These variables are incremented only in specific situations, and
  241. * should not be relied upon for any purpose other than the original
  242. * stats related purpose they have been introduced for.
  243. */
  244. u_int16_t rs_cryptodecapcount; /* Crypto bytes decapped/demic'ed. */
  245. u_int8_t rs_padspace; /* No. of padding bytes present after
  246. header in wbuf. */
  247. u_int8_t rs_qosdecapcount; /* QoS/HTC bytes decapped. */
  248. /* End of stats calculation related counts. */
  249. /*
  250. * uint8_t rs_lsig[IEEE80211_LSIG_LEN];
  251. * uint8_t rs_htsig[IEEE80211_HTSIG_LEN];
  252. * uint8_t rs_servicebytes[IEEE80211_SB_LEN];
  253. * uint8_t rs_fcs_error;
  254. */
  255. /* cdp convergence monitor mode status */
  256. union {
  257. u_int8_t cdp_data[8];
  258. u_int64_t cdp_tsf;
  259. } cdp_rs_tstamp;
  260. uint8_t cdp_rs_pream_type;
  261. uint32_t cdp_rs_user_rssi;
  262. uint8_t cdp_rs_stbc;
  263. uint8_t cdp_rs_sgi;
  264. uint32_t cdf_rs_rate_mcs;
  265. uint32_t cdp_rs_reception_type;
  266. uint32_t cdp_rs_bw;
  267. uint32_t cdp_rs_nss;
  268. uint8_t cdp_rs_fcs_err;
  269. bool cdp_rs_rxdma_err;
  270. };
  271. enum {
  272. CDP_MON_PPDU_START = 0,
  273. CDP_MON_PPDU_END,
  274. };
  275. #ifdef QCA_UNDECODED_METADATA_SUPPORT
  276. /**
  277. * enum cdp_mon_phyrx_abort_reason_code: Phy err code to store the reason
  278. * why PHY generated an abort request.
  279. */
  280. enum cdp_mon_phyrx_abort_reason_code {
  281. CDP_PHYRX_ERR_PHY_OFF = 0,
  282. CDP_PHYRX_ERR_SYNTH_OFF,
  283. CDP_PHYRX_ERR_OFDMA_TIMING,
  284. CDP_PHYRX_ERR_OFDMA_SIGNAL_PARITY,
  285. CDP_PHYRX_ERR_OFDMA_RATE_ILLEGAL,
  286. CDP_PHYRX_ERR_OFDMA_LENGTH_ILLEGAL,
  287. CDP_PHYRX_ERR_OFDMA_RESTART,
  288. CDP_PHYRX_ERR_OFDMA_SERVICE,
  289. CDP_PHYRX_ERR_PPDU_OFDMA_POWER_DROP,
  290. CDP_PHYRX_ERR_CCK_BLOKKER,
  291. CDP_PHYRX_ERR_CCK_TIMING = 10,
  292. CDP_PHYRX_ERR_CCK_HEADER_CRC,
  293. CDP_PHYRX_ERR_CCK_RATE_ILLEGAL,
  294. CDP_PHYRX_ERR_CCK_LENGTH_ILLEGAL,
  295. CDP_PHYRX_ERR_CCK_RESTART,
  296. CDP_PHYRX_ERR_CCK_SERVICE,
  297. CDP_PHYRX_ERR_CCK_POWER_DROP,
  298. CDP_PHYRX_ERR_HT_CRC_ERR,
  299. CDP_PHYRX_ERR_HT_LENGTH_ILLEGAL,
  300. CDP_PHYRX_ERR_HT_RATE_ILLEGAL,
  301. CDP_PHYRX_ERR_HT_ZLF = 20,
  302. CDP_PHYRX_ERR_FALSE_RADAR_EXT,
  303. CDP_PHYRX_ERR_GREEN_FIELD,
  304. CDP_PHYRX_ERR_BW_GT_DYN_BW,
  305. CDP_PHYRX_ERR_HT_LSIG_RATE_MISMATCH,
  306. CDP_PHYRX_ERR_VHT_CRC_ERROR,
  307. CDP_PHYRX_ERR_VHT_SIGA_UNSUPPORTED,
  308. CDP_PHYRX_ERR_VHT_LSIG_LEN_INVALID,
  309. CDP_PHYRX_ERR_VHT_NDP_OR_ZLF,
  310. CDP_PHYRX_ERR_VHT_NSYM_LT_ZERO,
  311. CDP_PHYRX_ERR_VHT_RX_EXTRA_SYMBOL_MISMATCH = 30,
  312. CDP_PHYRX_ERR_VHT_RX_SKIP_GROUP_ID0,
  313. CDP_PHYRX_ERR_VHT_RX_SKIP_GROUP_ID1TO62,
  314. CDP_PHYRX_ERR_VHT_RX_SKIP_GROUP_ID63,
  315. CDP_PHYRX_ERR_OFDM_LDPC_DECODER_DISABLED,
  316. CDP_PHYRX_ERR_DEFER_NAP,
  317. CDP_PHYRX_ERR_FDOMAIN_TIMEOUT,
  318. CDP_PHYRX_ERR_LSIG_REL_CHECK,
  319. CDP_PHYRX_ERR_BT_COLLISION,
  320. CDP_PHYRX_ERR_UNSUPPORTED_MU_FEEDBACK,
  321. CDP_PHYRX_ERR_PPDU_TX_INTERRUPT_RX = 40,
  322. CDP_PHYRX_ERR_UNSUPPORTED_CBF,
  323. CDP_PHYRX_ERR_OTHER,
  324. CDP_PHYRX_ERR_HE_SIGA_UNSUPPORTED,
  325. CDP_PHYRX_ERR_HE_SIGA_CRC_ERROR,
  326. CDP_PHYRX_ERR_HE_SIGB_UNSUPPORTED,
  327. CDP_PHYRX_ERR_HE_SIGB_CRC_ERROR,
  328. CDP_PHYRX_ERR_HE_MU_MODE_UNSUPPORTED,
  329. CDP_PHYRX_ERR_HE_NDP_OR_ZLF,
  330. CDP_PHYRX_ERR_HE_NSYM_LT_ZERO,
  331. CDP_PHYRX_ERR_HE_RU_PARAMS_UNSUPPORTED = 50,
  332. CDP_PHYRX_ERR_HE_NUM_USERS_UNSUPPORTED,
  333. CDP_PHYRX_ERR_HE_SOUNDING_PARAMS_UNSUPPORTED,
  334. CDP_PHYRX_ERR_HE_EXT_SU_UNSUPPORTED,
  335. CDP_PHYRX_ERR_HE_TRIG_UNSUPPORTED,
  336. CDP_PHYRX_ERR_HE_LSIG_LEN_INVALID = 55,
  337. CDP_PHYRX_ERR_HE_LSIG_RATE_MISMATCH,
  338. CDP_PHYRX_ERR_OFDMA_SIGNAL_RELIABILITY,
  339. CDP_PHYRX_ERR_HT_NSYM_LT_ZERO,
  340. CDP_PHYRX_ERR_VHT_LSIG_RATE_MISMATCH,
  341. CDP_PHYRX_ERR_VHT_PAID_GID_MISMATCH = 60,
  342. CDP_PHYRX_ERR_VHT_UNSUPPORTED_BW,
  343. CDP_PHYRX_ERR_VHT_GI_DISAM_MISMATCH,
  344. CDP_PHYRX_ERR_RX_WDG_TIMEOUT = 63,
  345. CDP_PHYRX_ERR_MAX
  346. };
  347. #endif
  348. #define MAX_PPDU_ID_HIST 128
  349. /**
  350. * struct cdp_pdev_mon_stats
  351. * @status_ppdu_state: state on PPDU start and end
  352. * @status_ppdu_start: status ring PPDU start TLV count
  353. * @status_ppdu_end: status ring PPDU end TLV count
  354. * @status_ppdu_compl: status ring matching start and end count on PPDU
  355. * @status_ppdu_start_mis: status ring missing start TLV count on PPDU
  356. * @status_ppdu_end_mis: status ring missing end TLV count on PPDU
  357. * @status_ppdu_done: status ring PPDU done TLV count
  358. * @dest_ppdu_done: destination ring PPDU count
  359. * @dest_mpdu_done: destination ring MPDU count
  360. * @dup_mon_linkdesc_cnt: duplicate link descriptor indications from HW
  361. * @dup_mon_buf_cnt: duplicate buffer indications from HW
  362. * @tlv_tag_status_err: status not correct in the tlv tag
  363. * @status_buf_done_war: Number of status ring buffers for which DMA not done
  364. * WAR is applied.
  365. * @mon_rx_bufs_replenished_dest: Rx buffers replenish count
  366. * @mon_rx_bufs_reaped_dest: Rx buffer reap count
  367. * @ppdu_id_mismatch: counter to track ppdu id mismatch in
  368. * mointor status and monitor destination ring
  369. * @ppdu_id_match: counter to track ppdu id match in
  370. * mointor status and monitor destination ring
  371. * @status_ppdu_drop: Number of ppdu dropped from monitor status ring
  372. * @dest_ppdu_drop: Number of ppdu dropped from monitor destination ring
  373. * @mon_link_desc_invalid: msdu link desc invalid count
  374. * @mon_rx_desc_invalid: rx_desc invalid count
  375. * @rx_undecoded_count: Received undecoded frame count
  376. * @rx_undecoded_error: Rx undecoded errors
  377. */
  378. struct cdp_pdev_mon_stats {
  379. #ifndef REMOVE_MON_DBG_STATS
  380. uint32_t status_ppdu_state;
  381. uint32_t status_ppdu_start;
  382. uint32_t status_ppdu_end;
  383. uint32_t status_ppdu_compl;
  384. uint32_t status_ppdu_start_mis;
  385. uint32_t status_ppdu_end_mis;
  386. #endif
  387. uint32_t status_ppdu_done;
  388. uint32_t dest_ppdu_done;
  389. uint32_t dest_mpdu_done;
  390. uint32_t dest_mpdu_drop;
  391. uint32_t dup_mon_linkdesc_cnt;
  392. uint32_t dup_mon_buf_cnt;
  393. uint32_t stat_ring_ppdu_id_hist[MAX_PPDU_ID_HIST];
  394. uint32_t dest_ring_ppdu_id_hist[MAX_PPDU_ID_HIST];
  395. uint32_t ppdu_id_hist_idx;
  396. uint32_t mon_rx_dest_stuck;
  397. uint32_t tlv_tag_status_err;
  398. uint32_t status_buf_done_war;
  399. uint32_t mon_rx_bufs_replenished_dest;
  400. uint32_t mon_rx_bufs_reaped_dest;
  401. uint32_t ppdu_id_mismatch;
  402. uint32_t ppdu_id_match;
  403. uint32_t status_ppdu_drop;
  404. uint32_t dest_ppdu_drop;
  405. uint32_t mon_link_desc_invalid;
  406. uint32_t mon_rx_desc_invalid;
  407. uint32_t mon_nbuf_sanity_err;
  408. #ifdef QCA_UNDECODED_METADATA_SUPPORT
  409. uint32_t rx_undecoded_count;
  410. uint32_t rx_undecoded_error[CDP_PHYRX_ERR_MAX];
  411. #endif
  412. };
  413. #ifdef QCA_SUPPORT_LITE_MONITOR
  414. /**
  415. * cdp_lite_mon_filter_config - lite mon set/get filter config
  416. * @direction: direction tx/rx
  417. * @disable: disables lite mon
  418. * @level: MSDU/MPDU/PPDU levels
  419. * @metadata: meta information to be added
  420. * @mgmt_filter: mgmt filter for modes fp,md,mo
  421. * @ctrl_filter: ctrl filter for modes fp,md,mo
  422. * @data_filter: data filter for modes fp,md,mo
  423. * @len: mgmt/ctrl/data frame lens
  424. * @debug: debug options
  425. * @vdev_id: output vdev id
  426. */
  427. struct cdp_lite_mon_filter_config {
  428. uint8_t direction;
  429. uint8_t disable;
  430. uint8_t level;
  431. uint8_t metadata;
  432. uint16_t mgmt_filter[CDP_LITE_MON_MODE_MAX];
  433. uint16_t ctrl_filter[CDP_LITE_MON_MODE_MAX];
  434. uint16_t data_filter[CDP_LITE_MON_MODE_MAX];
  435. uint16_t len[CDP_LITE_MON_FRM_TYPE_MAX];
  436. uint8_t debug;
  437. uint8_t vdev_id;
  438. };
  439. /**
  440. * cdp_lite_mon_peer_config - lite mon set peer config
  441. * @direction: direction tx/rx
  442. * @action: add/del
  443. * @type: assoc/non-assoc
  444. * @vdev_id: peer vdev id
  445. * @mac: peer mac
  446. */
  447. struct cdp_lite_mon_peer_config {
  448. uint8_t direction;
  449. uint8_t action;
  450. uint8_t type;
  451. uint8_t vdev_id;
  452. uint8_t mac[QDF_MAC_ADDR_SIZE];
  453. };
  454. /**
  455. * cdp_lite_mon_peer_info - lite mon get peer config
  456. * @direction: direction tx/rx
  457. * @type: assoc/non-assoc
  458. * @count: no of peers
  459. * @mac: peer macs
  460. */
  461. struct cdp_lite_mon_peer_info {
  462. uint8_t direction;
  463. uint8_t type;
  464. uint8_t count;
  465. uint8_t mac[CDP_LITE_MON_PEER_MAX][QDF_MAC_ADDR_SIZE];
  466. };
  467. #endif
  468. #endif