cdp_txrx_stats_struct.h 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517
  1. /*
  2. * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * @file cdp_txrx_stats_struct.h
  20. * @brief Define the host data path stats API functions
  21. * called by the host control SW and the OS interface module
  22. */
  23. #ifndef _CDP_TXRX_STATS_STRUCT_H_
  24. #define _CDP_TXRX_STATS_STRUCT_H_
  25. #ifndef CONFIG_WIN
  26. #include <wlan_defs.h>
  27. #endif
  28. #define TXRX_STATS_LEVEL_OFF 0
  29. #define TXRX_STATS_LEVEL_BASIC 1
  30. #define TXRX_STATS_LEVEL_FULL 2
  31. #define BSS_CHAN_INFO_READ 1
  32. #define BSS_CHAN_INFO_READ_AND_CLEAR 2
  33. #define TX_FRAME_TYPE_DATA 0
  34. #define TX_FRAME_TYPE_MGMT 1
  35. #define TX_FRAME_TYPE_BEACON 2
  36. #ifndef TXRX_STATS_LEVEL
  37. #define TXRX_STATS_LEVEL TXRX_STATS_LEVEL_BASIC
  38. #endif
  39. /* 1 additional MCS is for invalid values */
  40. #define MAX_MCS (12 + 1)
  41. #define MAX_MCS_11A 8
  42. #define MAX_MCS_11B 7
  43. #define MAX_MCS_11AC 12
  44. /* 1 additional GI is for invalid values */
  45. #define MAX_GI (4 + 1)
  46. #define SS_COUNT 8
  47. #define MAX_BW 7
  48. #define MAX_RECEPTION_TYPES 4
  49. /* WME stream classes */
  50. #define WME_AC_BE 0 /* best effort */
  51. #define WME_AC_BK 1 /* background */
  52. #define WME_AC_VI 2 /* video */
  53. #define WME_AC_VO 3 /* voice */
  54. #define WME_AC_MAX 4 /* MAX AC Value */
  55. #define CDP_MAX_RX_RINGS 4
  56. /* TID level VoW stats macros
  57. * to add and get stats
  58. */
  59. #define PFLOW_TXRX_TIDQ_STATS_ADD(_peer, _tid, _var, _val) \
  60. (((_peer)->tidq_stats[_tid]).stats[_var]) += _val
  61. #define PFLOW_TXRX_TIDQ_STATS_GET(_peer, _tid, _var, _val) \
  62. ((_peer)->tidq_stats[_tid].stats[_var])
  63. /*
  64. * Video only stats
  65. */
  66. #define PFLOW_CTRL_PDEV_VIDEO_STATS_SET(_pdev, _var, _val) \
  67. (((_pdev)->vow.vistats[_var]).value) = _val
  68. #define PFLOW_CTRL_PDEV_VIDEO_STATS_GET(_pdev, _var) \
  69. ((_pdev)->vow.vistats[_var].value)
  70. #define PFLOW_CTRL_PDEV_VIDEO_STATS_ADD(_pdev, _var, _val) \
  71. (((_pdev)->vow.vistats[_var]).value) += _val
  72. /*
  73. * video delay stats
  74. */
  75. #define PFLOW_CTRL_PDEV_DELAY_VIDEO_STATS_SET(_pdev, _var, _val) \
  76. (((_pdev)->vow.delaystats[_var]).value) = _val
  77. #define PFLOW_CTRL_PDEV_DELAY_VIDEO_STATS_GET(_pdev, _var) \
  78. ((_pdev)->vow.delaystats[_var].value)
  79. #define PFLOW_CTRL_PDEV_DELAY_VIDEO_STATS_ADD(_pdev, _var, _val) \
  80. (((_pdev)->vow.delaystats[_var]).value) += _val
  81. /*
  82. * Number of TLVs sent by FW. Needs to reflect
  83. * HTT_PPDU_STATS_MAX_TAG declared in FW
  84. */
  85. #define CDP_PPDU_STATS_MAX_TAG 14
  86. /* Different Packet Types */
  87. enum cdp_packet_type {
  88. DOT11_A = 0,
  89. DOT11_B = 1,
  90. DOT11_N = 2,
  91. DOT11_AC = 3,
  92. DOT11_AX = 4,
  93. DOT11_MAX = 5,
  94. };
  95. /* TID level Tx/Rx stats
  96. *
  97. */
  98. enum cdp_txrx_tidq_stats {
  99. /* Tx Counters */
  100. TX_MSDU_TOTAL_LINUX_SUBSYSTEM,
  101. TX_MSDU_TOTAL_FROM_OSIF,
  102. TX_MSDU_TX_COMP_PKT_CNT,
  103. /* Rx Counters */
  104. RX_MSDU_TOTAL_FROM_FW,
  105. RX_MSDU_MCAST_FROM_FW,
  106. RX_TID_MISMATCH_FROM_FW,
  107. RX_MSDU_MISC_PKTS,
  108. RX_MSDU_IS_ARP,
  109. RX_MSDU_IS_EAP,
  110. RX_MSDU_IS_DHCP,
  111. RX_AGGREGATE_10,
  112. RX_AGGREGATE_20,
  113. RX_AGGREGATE_30,
  114. RX_AGGREGATE_40,
  115. RX_AGGREGATE_50,
  116. RX_AGGREGATE_60,
  117. RX_AGGREGATE_MORE,
  118. RX_AMSDU_1,
  119. RX_AMSDU_2,
  120. RX_AMSDU_3,
  121. RX_AMSDU_4,
  122. RX_AMSDU_MORE,
  123. RX_MSDU_CHAINED_FROM_FW,
  124. RX_MSDU_REORDER_FAILED_FROM_FW,
  125. RX_MSDU_REORDER_FLUSHED_FROM_FW,
  126. RX_MSDU_DISCARD_FROM_FW,
  127. RX_MSDU_DUPLICATE_FROM_FW,
  128. RX_MSDU_DELIVERED_TO_STACK,
  129. TIDQ_STATS_MAX,
  130. };
  131. struct cdp_tidq_stats {
  132. uint32_t stats[TIDQ_STATS_MAX];
  133. };
  134. /* struct cdp_pkt_info - packet info
  135. * @num: no of packets
  136. * @bytes: total no of bytes
  137. */
  138. struct cdp_pkt_info {
  139. uint32_t num;
  140. uint64_t bytes;
  141. };
  142. /* struct cdp_pkt_type - packet type
  143. * @mcs_count: Counter array for each MCS index
  144. */
  145. struct cdp_pkt_type {
  146. uint32_t mcs_count[MAX_MCS];
  147. };
  148. /* struct cdp_tx_stats - tx stats
  149. * @cdp_pkt_info comp_pkt: Pkt Info for which completions were received
  150. * @cdp_pkt_info ucast: Unicast Packet Count
  151. * @cdp_pkt_info mcast: Multicast Packet Count
  152. * @cdp_pkt_info bcast: Broadcast Packet Count
  153. * @cdp_pkt_info nawds_mcast: NAWDS Multicast Packet Count
  154. * @nawds_mcast_drop: NAWDS Multicast Drop Count
  155. * @cdp_pkt_info tx_success: Successful Tx Packets
  156. * @tx_failed: Total Tx failure
  157. * @ofdma: Total Packets as ofdma
  158. * @stbc: Packets in STBC
  159. * @ldpc: Packets in LDPC
  160. * @retries: Packet retries
  161. * @non_amsdu_cnt: Number of MSDUs with no MSDU level aggregation
  162. * @amsdu_cnt: Number of MSDUs part of AMSDU
  163. * @tx_rate: Tx Rate
  164. * @last_tx_rate: Last tx rate for unicast packets
  165. * @last_tx_rate_mcs: Tx rate mcs for unicast packets
  166. * @mcast_last_tx_rate: Last tx rate for multicast packets
  167. * @mcast_last_tx_rate_mcs: Last tx rate mcs for multicast
  168. * @last_per: Tx Per
  169. * @rnd_avg_tx_rate: Rounded average tx rate
  170. * @avg_tx_rate: Average TX rate
  171. * @last_ack_rssi: RSSI of last acked packet
  172. * @tx_bytes_success_last: last Tx success bytes
  173. * @tx_data_success_last: last Tx success data
  174. * @tx_byte_rate: Bytes Trasmitted in last one sec
  175. * @tx_data_rate: Data Transmitted in last one sec
  176. * @sgi_count[MAX_GI]: SGI count
  177. * @nss[SS_COUNT]: Packet count for different num_spatial_stream values
  178. * @bw[MAX_BW]: Packet Count for different bandwidths
  179. * @wme_ac_type[WME_AC_MAX]: Wireless Multimedia type Count
  180. * @excess_retries_per_ac[WME_AC_MAX]: Wireless Multimedia type Count
  181. * @fw_rem: Discarded by firmware
  182. * @fw_rem_notx: firmware_discard_untransmitted
  183. * @fw_rem_tx: firmware_discard_transmitted
  184. * @age_out: aged out in mpdu/msdu queues
  185. * @fw_reason1: discarded by firmware reason 1
  186. * @fw_reason2: discarded by firmware reason 2
  187. * @fw_reason3: discarded by firmware reason 3
  188. * @mcs_count: MCS Count
  189. * @dot11_tx_pkts: dot11 tx packets
  190. * @an_tx_cnt: ald tx count
  191. * @an_tx_rates_used: ald rx rate used
  192. * @an_tx_bytes: ald tx bytes
  193. * @ald_txcount: ald tx count
  194. * @ald_lastper: ald last PER
  195. * @ald_max4msframelen: ald max frame len
  196. * @an_tx_ratecount: ald tx ratecount
  197. * @ald_retries: ald retries
  198. * @ald_ac_nobufs: #buffer overflows per node per AC
  199. * @ald_ac_excretries: #pkts dropped after excessive retries per node per AC
  200. * @rssi_chain: rssi chain
  201. * @inactive_time: inactive time in secs
  202. * @tx_ratecode: Tx rate code of last frame
  203. * @tx_flags: tx flags
  204. * @tx_power: Tx power latest
  205. * @is_tx_no_ack: no ack received
  206. * @is_tx_nodefkey: tx failed 'cuz no defkey
  207. * @is_tx_noheadroom: tx failed 'cuz no space
  208. * @is_crypto_enmicfail:
  209. * @is_tx_nonode: tx failed for no node
  210. * @is_tx_unknownmgt: tx of unknown mgt frame
  211. * @is_tx_badcipher: tx failed 'cuz key type
  212. * @ampdu_cnt: completion of aggregation
  213. * @non_ampdu_cnt: tx completion not aggregated
  214. */
  215. struct cdp_tx_stats {
  216. struct cdp_pkt_info comp_pkt;
  217. struct cdp_pkt_info ucast;
  218. struct cdp_pkt_info mcast;
  219. struct cdp_pkt_info bcast;
  220. struct cdp_pkt_info nawds_mcast;
  221. uint32_t nawds_mcast_drop;
  222. struct cdp_pkt_info tx_success;
  223. uint32_t tx_failed;
  224. uint32_t ofdma;
  225. uint32_t stbc;
  226. uint32_t ldpc;
  227. uint32_t retries;
  228. uint32_t non_amsdu_cnt;
  229. uint32_t amsdu_cnt;
  230. uint32_t tx_rate;
  231. uint32_t last_tx_rate;
  232. uint32_t last_tx_rate_mcs;
  233. uint32_t mcast_last_tx_rate;
  234. uint32_t mcast_last_tx_rate_mcs;
  235. uint32_t last_per;
  236. uint32_t rnd_avg_tx_rate;
  237. uint32_t avg_tx_rate;
  238. uint32_t last_ack_rssi;
  239. uint32_t tx_bytes_success_last;
  240. uint32_t tx_data_success_last;
  241. uint32_t tx_byte_rate;
  242. uint32_t tx_data_rate;
  243. struct cdp_pkt_type pkt_type[DOT11_MAX];
  244. uint32_t sgi_count[MAX_GI];
  245. uint32_t nss[SS_COUNT];
  246. uint32_t bw[MAX_BW];
  247. uint32_t wme_ac_type[WME_AC_MAX];
  248. uint32_t excess_retries_per_ac[WME_AC_MAX];
  249. struct {
  250. uint32_t fw_rem;
  251. uint32_t fw_rem_notx;
  252. uint32_t fw_rem_tx;
  253. uint32_t age_out;
  254. uint32_t fw_reason1;
  255. uint32_t fw_reason2;
  256. uint32_t fw_reason3;
  257. } dropped;
  258. struct cdp_pkt_info dot11_tx_pkts;
  259. uint32_t fw_tx_cnt;
  260. uint32_t fw_tx_rates_used;
  261. uint32_t fw_tx_bytes;
  262. uint32_t fw_txcount;
  263. uint32_t fw_max4msframelen;
  264. uint32_t fw_ratecount;
  265. uint32_t ac_nobufs[WME_AC_MAX];
  266. uint32_t rssi_chain[WME_AC_MAX];
  267. uint32_t inactive_time;
  268. uint32_t tx_ratecode;
  269. uint32_t tx_flags;
  270. uint32_t tx_power;
  271. /* MSDUs which the target sent but couldn't get an ack for */
  272. struct cdp_pkt_info is_tx_no_ack;
  273. /*add for peer and upadted from ppdu*/
  274. uint32_t ampdu_cnt;
  275. uint32_t non_ampdu_cnt;
  276. };
  277. /* struct cdp_rx_stats - rx Level Stats
  278. * @to_stack: Total packets sent up the stack
  279. * @rcvd_reo[CDP_MAX_RX_RINGS]: Packets received on the reo ring
  280. * @unicast: Total unicast packets
  281. * @multicast: Total multicast packets
  282. * @bcast: Broadcast Packet Count
  283. * @raw: Raw Pakets received
  284. * @nawds_mcast_drop: Total multicast packets
  285. * @pkts: Intra BSS packets received
  286. * @fail: Intra BSS packets failed
  287. * @mic_err: Rx MIC errors CCMP
  288. * @decrypt_err: Rx Decryption Errors CRC
  289. * @fcserr: rx MIC check failed (CCMP)
  290. * @wme_ac_type[WME_AC_MAX]: Wireless Multimedia type Count
  291. * @reception_type[MAX_RECEPTION_TYPES]: Reception type os packets
  292. * @mcs_count[MAX_MCS]: mcs count
  293. * @sgi_count[MAX_GI]: sgi count
  294. * @nss[SS_COUNT]: Packet count in spatiel Streams
  295. * @bw[MAX_BW]: Packet Count in different bandwidths
  296. * @non_ampdu_cnt: Number of MSDUs with no MPDU level aggregation
  297. * @ampdu_cnt: Number of MSDUs part of AMSPU
  298. * @non_amsdu_cnt: Number of MSDUs with no MSDU level aggregation
  299. * @amsdu_cnt: Number of MSDUs part of AMSDU
  300. * @bar_recv_cnt: Number of bar received
  301. * @rssi: RSSI of received signal
  302. * @last_rssi: Previous rssi
  303. * @rx_rate: Rx rate
  304. * @last_rx_rate: Previous rx rate
  305. * @rnd_avg_rx_rate: Rounded average rx rate
  306. * @avg_rx_rate: Average Rx rate
  307. * @dot11_rx_pkts: dot11 rx packets
  308. * @rx_bytes_last: last Rx success bytes
  309. * @rx_data_last: last rx success data
  310. * @rx_byte_rate: bytes received in last one sec
  311. * @rx_data_rate: data received in last one sec
  312. * @rx_retries: retries of packet in rx
  313. * @rx_mpdus: mpdu in rx
  314. * @rx_ppdus: ppdu in rx
  315. * @is_rx_tooshort: tooshort
  316. * @is_rx_decap: rx decap
  317. * @rx_ccmpmic: rx MIC check failed (CCMP)
  318. * @rx_tkipmic: rx MIC check failed (TKIP)
  319. * @rx_tkipicv: rx ICV check failed (TKIP)
  320. * @rx_wpimic: rx MIC check failed (WPI)
  321. * @rx_wepfail: rx wep processing failed
  322. * @rx_aggr: aggregation on rx
  323. * @rx_discard: packets discard in rx
  324. */
  325. struct cdp_rx_stats {
  326. struct cdp_pkt_info to_stack;
  327. struct cdp_pkt_info rcvd_reo[CDP_MAX_RX_RINGS];
  328. struct cdp_pkt_info unicast;
  329. struct cdp_pkt_info multicast;
  330. struct cdp_pkt_info bcast;
  331. struct cdp_pkt_info raw;
  332. uint32_t nawds_mcast_drop;
  333. struct {
  334. struct cdp_pkt_info pkts;
  335. struct cdp_pkt_info fail;
  336. } intra_bss;
  337. struct {
  338. uint32_t mic_err;
  339. uint32_t decrypt_err;
  340. uint32_t fcserr;
  341. } err;
  342. uint32_t wme_ac_type[WME_AC_MAX];
  343. uint32_t reception_type[MAX_RECEPTION_TYPES];
  344. struct cdp_pkt_type pkt_type[DOT11_MAX];
  345. uint32_t sgi_count[MAX_GI];
  346. uint32_t nss[SS_COUNT];
  347. uint32_t bw[MAX_BW];
  348. uint32_t non_ampdu_cnt;
  349. uint32_t ampdu_cnt;
  350. uint32_t non_amsdu_cnt;
  351. uint32_t amsdu_cnt;
  352. uint32_t bar_recv_cnt;
  353. uint32_t rssi;
  354. uint32_t last_rssi;
  355. uint32_t rx_rate;
  356. uint32_t last_rx_rate;
  357. uint32_t rnd_avg_rx_rate;
  358. uint32_t avg_rx_rate;
  359. struct cdp_pkt_info dot11_rx_pkts;
  360. uint32_t rx_bytes_success_last;
  361. uint32_t rx_data_success_last;
  362. uint32_t rx_byte_rate;
  363. uint32_t rx_data_rate;
  364. uint32_t rx_retries;
  365. uint32_t rx_mpdus;
  366. uint32_t rx_ppdus;
  367. /*add for peer updated for ppdu*/
  368. uint32_t rx_aggr;
  369. uint32_t rx_discard;
  370. };
  371. /* struct cdp_tx_ingress_stats - Tx ingress Stats
  372. * @rcvd: Total packets received for transmission
  373. * @processed: Tx packets processed
  374. * @inspect_pkts: Total packets passed to inspect handler
  375. * @nawds_mcast: NAWDS Multicast Packet Count
  376. * @bcast: Number of broadcast packets
  377. * @raw_pkt: Total Raw packets
  378. * @dma_map_error: DMA map error
  379. * @num_seg: No of segments in TSO packets
  380. * @tso_pkt:total no of TSO packets
  381. * @non_tso_pkts: non - TSO packets
  382. * @tso_desc_cnt: TSO descriptors
  383. * @dropped_host: TSO packets dropped by host
  384. * @dropped_target:TSO packets dropped by target
  385. * @sg_pkt: Total scatter gather packets
  386. * @non_sg_pkts: non SG packets
  387. * @sg_desc_cnt: SG Descriptors
  388. * @dropped_host: SG packets dropped by host
  389. * @dropped_target: SG packets dropped by target
  390. * @dma_map_error: Dma map error
  391. * @mcast_pkt: total no of multicast conversion packets
  392. * @dropped_map_error: packets dropped due to map error
  393. * @dropped_self_mac: packets dropped due to self Mac address
  394. * @dropped_send_fail: Packets dropped due to send fail
  395. * @ucast: total unicast packets transmitted
  396. * @fail_seg_alloc: Segment allocation failure
  397. * @clone_fail: NBUF clone failure
  398. * @dropped_pkt: Total scatter gather packets
  399. * @desc_na: Desc Not Available
  400. * @ring_full: ring full
  401. * @enqueue_fail: hw enqueue fail
  402. * @dma_error: dma fail
  403. * @res_full: Resource Full: Congestion Control
  404. * @exception_fw: packets sent to fw
  405. * @completion_fw: packets completions received from fw
  406. * @cce_classified:Number of packets classified by CCE
  407. * @cce_classified_raw:Number of raw packets classified by CCE
  408. */
  409. struct cdp_tx_ingress_stats {
  410. struct cdp_pkt_info rcvd;
  411. struct cdp_pkt_info processed;
  412. struct cdp_pkt_info reinject_pkts;
  413. struct cdp_pkt_info inspect_pkts;
  414. struct cdp_pkt_info nawds_mcast;
  415. struct cdp_pkt_info bcast;
  416. struct {
  417. struct cdp_pkt_info raw_pkt;
  418. uint32_t dma_map_error;
  419. } raw;
  420. /* TSO packets info */
  421. struct {
  422. uint32_t num_seg;
  423. struct cdp_pkt_info tso_pkt;
  424. struct cdp_pkt_info non_tso_pkts;
  425. uint32_t tso_desc_cnt;
  426. struct cdp_pkt_info dropped_host;
  427. uint32_t dropped_target;
  428. } tso;
  429. /* Scatter Gather packet info */
  430. struct {
  431. struct cdp_pkt_info sg_pkt;
  432. struct cdp_pkt_info non_sg_pkts;
  433. uint32_t sg_desc_cnt;
  434. struct cdp_pkt_info dropped_host;
  435. uint32_t dropped_target;
  436. uint32_t dma_map_error;
  437. } sg;
  438. /* Multicast Enhancement packets info */
  439. struct {
  440. struct cdp_pkt_info mcast_pkt;
  441. uint32_t dropped_map_error;
  442. uint32_t dropped_self_mac;
  443. uint32_t dropped_send_fail;
  444. uint32_t ucast;
  445. uint32_t fail_seg_alloc;
  446. uint32_t clone_fail;
  447. } mcast_en;
  448. /* Packets dropped on the Tx side */
  449. struct {
  450. struct cdp_pkt_info dropped_pkt;
  451. struct cdp_pkt_info desc_na;
  452. uint32_t ring_full;
  453. uint32_t enqueue_fail;
  454. uint32_t dma_error;
  455. uint32_t res_full;
  456. /* headroom insufficient */
  457. uint32_t headroom_insufficient;
  458. } dropped;
  459. /* Mesh packets info */
  460. struct {
  461. uint32_t exception_fw;
  462. uint32_t completion_fw;
  463. } mesh;
  464. uint32_t cce_classified;
  465. uint32_t cce_classified_raw;
  466. };
  467. /* struct cdp_vdev_stats - vdev stats structure
  468. * @tx_i: ingress tx stats
  469. * @tx: cdp tx stats
  470. * @rx: cdp rx stats
  471. */
  472. struct cdp_vdev_stats {
  473. struct cdp_tx_ingress_stats tx_i;
  474. struct cdp_tx_stats tx;
  475. struct cdp_rx_stats rx;
  476. };
  477. /* struct cdp_peer_stats - peer stats structure
  478. * @tx: cdp tx stats
  479. * @rx: cdp rx stats
  480. */
  481. struct cdp_peer_stats {
  482. /* CDP Tx Stats */
  483. struct cdp_tx_stats tx;
  484. /* CDP Rx Stats */
  485. struct cdp_rx_stats rx;
  486. };
  487. /* struct cdp_interface_peer_stats - interface structure for txrx peer stats
  488. * @peer_hdl: control path peer handle
  489. * @last_peer_tx_rate: peer tx rate for last transmission
  490. * @peer_tx_rate: tx rate for current transmission
  491. * @peer_rssi: current rssi value of peer
  492. * @rssi_changed: denotes rssi is changed
  493. * @tx_packet_count: tx packet count
  494. * @rx_packet_count: rx packet count
  495. * @tx_byte_count: tx byte count
  496. * @rx_byte_count: rx byte count
  497. * @per: per error rate
  498. */
  499. struct cdp_interface_peer_stats {
  500. void *peer_hdl;
  501. uint32_t last_peer_tx_rate;
  502. uint32_t peer_tx_rate;
  503. uint32_t peer_rssi;
  504. uint32_t tx_packet_count;
  505. uint32_t rx_packet_count;
  506. uint32_t tx_byte_count;
  507. uint32_t rx_byte_count;
  508. uint32_t per;
  509. uint8_t rssi_changed;
  510. };
  511. /* Tx completions per interrupt */
  512. struct cdp_hist_tx_comp {
  513. uint32_t pkts_1;
  514. uint32_t pkts_2_20;
  515. uint32_t pkts_21_40;
  516. uint32_t pkts_41_60;
  517. uint32_t pkts_61_80;
  518. uint32_t pkts_81_100;
  519. uint32_t pkts_101_200;
  520. uint32_t pkts_201_plus;
  521. };
  522. /* Rx ring descriptors reaped per interrupt */
  523. struct cdp_hist_rx_ind {
  524. uint32_t pkts_1;
  525. uint32_t pkts_2_20;
  526. uint32_t pkts_21_40;
  527. uint32_t pkts_41_60;
  528. uint32_t pkts_61_80;
  529. uint32_t pkts_81_100;
  530. uint32_t pkts_101_200;
  531. uint32_t pkts_201_plus;
  532. };
  533. struct cdp_htt_tlv_hdr {
  534. /* BIT [11 : 0] :- tag
  535. * BIT [23 : 12] :- length
  536. * BIT [31 : 24] :- reserved
  537. */
  538. uint32_t tag__length;
  539. };
  540. #define HTT_STATS_SUBTYPE_MAX 16
  541. struct cdp_htt_rx_pdev_fw_stats_tlv {
  542. struct cdp_htt_tlv_hdr tlv_hdr;
  543. /* BIT [ 7 : 0] :- mac_id
  544. * BIT [31 : 8] :- reserved
  545. */
  546. uint32_t mac_id__word;
  547. /* Num PPDU status processed from HW */
  548. uint32_t ppdu_recvd;
  549. /* Num MPDU across PPDUs with FCS ok */
  550. uint32_t mpdu_cnt_fcs_ok;
  551. /* Num MPDU across PPDUs with FCS err */
  552. uint32_t mpdu_cnt_fcs_err;
  553. /* Num MSDU across PPDUs */
  554. uint32_t tcp_msdu_cnt;
  555. /* Num MSDU across PPDUs */
  556. uint32_t tcp_ack_msdu_cnt;
  557. /* Num MSDU across PPDUs */
  558. uint32_t udp_msdu_cnt;
  559. /* Num MSDU across PPDUs */
  560. uint32_t other_msdu_cnt;
  561. /* Num MPDU on FW ring indicated */
  562. uint32_t fw_ring_mpdu_ind;
  563. /* Num MGMT MPDU given to protocol */
  564. uint32_t fw_ring_mgmt_subtype[HTT_STATS_SUBTYPE_MAX];
  565. /* Num ctrl MPDU given to protocol */
  566. uint32_t fw_ring_ctrl_subtype[HTT_STATS_SUBTYPE_MAX];
  567. /* Num mcast data packet received */
  568. uint32_t fw_ring_mcast_data_msdu;
  569. /* Num broadcast data packet received */
  570. uint32_t fw_ring_bcast_data_msdu;
  571. /* Num unicat data packet received */
  572. uint32_t fw_ring_ucast_data_msdu;
  573. /* Num null data packet received */
  574. uint32_t fw_ring_null_data_msdu;
  575. /* Num MPDU on FW ring dropped */
  576. uint32_t fw_ring_mpdu_drop;
  577. /* Num buf indication to offload */
  578. uint32_t ofld_local_data_ind_cnt;
  579. /* Num buf recycle from offload */
  580. uint32_t ofld_local_data_buf_recycle_cnt;
  581. /* Num buf indication to data_rx */
  582. uint32_t drx_local_data_ind_cnt;
  583. /* Num buf recycle from data_rx */
  584. uint32_t drx_local_data_buf_recycle_cnt;
  585. /* Num buf indication to protocol */
  586. uint32_t local_nondata_ind_cnt;
  587. /* Num buf recycle from protocol */
  588. uint32_t local_nondata_buf_recycle_cnt;
  589. /* Num buf fed */
  590. uint32_t fw_status_buf_ring_refill_cnt;
  591. /* Num ring empty encountered */
  592. uint32_t fw_status_buf_ring_empty_cnt;
  593. /* Num buf fed */
  594. uint32_t fw_pkt_buf_ring_refill_cnt;
  595. /* Num ring empty encountered */
  596. uint32_t fw_pkt_buf_ring_empty_cnt;
  597. /* Num buf fed */
  598. uint32_t fw_link_buf_ring_refill_cnt;
  599. /* Num ring empty encountered */
  600. uint32_t fw_link_buf_ring_empty_cnt;
  601. /* Num buf fed */
  602. uint32_t host_pkt_buf_ring_refill_cnt;
  603. /* Num ring empty encountered */
  604. uint32_t host_pkt_buf_ring_empty_cnt;
  605. /* Num buf fed */
  606. uint32_t mon_pkt_buf_ring_refill_cnt;
  607. /* Num ring empty encountered */
  608. uint32_t mon_pkt_buf_ring_empty_cnt;
  609. /* Num buf fed */
  610. uint32_t mon_status_buf_ring_refill_cnt;
  611. /* Num ring empty encountered */
  612. uint32_t mon_status_buf_ring_empty_cnt;
  613. /* Num buf fed */
  614. uint32_t mon_desc_buf_ring_refill_cnt;
  615. /* Num ring empty encountered */
  616. uint32_t mon_desc_buf_ring_empty_cnt;
  617. /* Num buf fed */
  618. uint32_t mon_dest_ring_update_cnt;
  619. /* Num ring full encountered */
  620. uint32_t mon_dest_ring_full_cnt;
  621. /* Num rx suspend is attempted */
  622. uint32_t rx_suspend_cnt;
  623. /* Num rx suspend failed */
  624. uint32_t rx_suspend_fail_cnt;
  625. /* Num rx resume attempted */
  626. uint32_t rx_resume_cnt;
  627. /* Num rx resume failed */
  628. uint32_t rx_resume_fail_cnt;
  629. /* Num rx ring switch */
  630. uint32_t rx_ring_switch_cnt;
  631. /* Num rx ring restore */
  632. uint32_t rx_ring_restore_cnt;
  633. /* Num rx flush issued */
  634. uint32_t rx_flush_cnt;
  635. };
  636. /* == TX PDEV STATS == */
  637. struct cdp_htt_tx_pdev_stats_cmn_tlv {
  638. struct cdp_htt_tlv_hdr tlv_hdr;
  639. /* BIT [ 7 : 0] :- mac_id
  640. * BIT [31 : 8] :- reserved
  641. */
  642. uint32_t mac_id__word;
  643. /* Num queued to HW */
  644. uint32_t hw_queued;
  645. /* Num PPDU reaped from HW */
  646. uint32_t hw_reaped;
  647. /* Num underruns */
  648. uint32_t underrun;
  649. /* Num HW Paused counter. */
  650. uint32_t hw_paused;
  651. /* Num HW flush counter. */
  652. uint32_t hw_flush;
  653. /* Num HW filtered counter. */
  654. uint32_t hw_filt;
  655. /* Num PPDUs cleaned up in TX abort */
  656. uint32_t tx_abort;
  657. /* Num MPDUs requed by SW */
  658. uint32_t mpdu_requed;
  659. /* excessive retries */
  660. uint32_t tx_xretry;
  661. /* Last used data hw rate code */
  662. uint32_t data_rc;
  663. /* frames dropped due to excessive sw retries */
  664. uint32_t mpdu_dropped_xretry;
  665. /* illegal rate phy errors */
  666. uint32_t illgl_rate_phy_err;
  667. /* wal pdev continuous xretry */
  668. uint32_t cont_xretry;
  669. /* wal pdev continuous xretry */
  670. uint32_t tx_timeout;
  671. /* wal pdev resets */
  672. uint32_t pdev_resets;
  673. /* PhY/BB underrun */
  674. uint32_t phy_underrun;
  675. /* MPDU is more than txop limit */
  676. uint32_t txop_ovf;
  677. /* Number of Sequences posted */
  678. uint32_t seq_posted;
  679. /* Number of Sequences failed queueing */
  680. uint32_t seq_failed_queueing;
  681. /* Number of Sequences completed */
  682. uint32_t seq_completed;
  683. /* Number of Sequences restarted */
  684. uint32_t seq_restarted;
  685. /* Number of MU Sequences posted */
  686. uint32_t mu_seq_posted;
  687. /* Number of time HW ring is paused between seq switch within ISR */
  688. uint32_t seq_switch_hw_paused;
  689. /* Number of times seq continuation in DSR */
  690. uint32_t next_seq_posted_dsr;
  691. /* Number of times seq continuation in ISR */
  692. uint32_t seq_posted_isr;
  693. /* Number of seq_ctrl cached. */
  694. uint32_t seq_ctrl_cached;
  695. /* Number of MPDUs successfully transmitted */
  696. uint32_t mpdu_count_tqm;
  697. /* Number of MSDUs successfully transmitted */
  698. uint32_t msdu_count_tqm;
  699. /* Number of MPDUs dropped */
  700. uint32_t mpdu_removed_tqm;
  701. /* Number of MSDUs dropped */
  702. uint32_t msdu_removed_tqm;
  703. /* Num MPDUs flushed by SW, HWPAUSED, SW TXABORT (Reset,channel change) */
  704. uint32_t mpdus_sw_flush;
  705. /* Num MPDUs filtered by HW, all filter condition (TTL expired) */
  706. uint32_t mpdus_hw_filter;
  707. /* Num MPDUs truncated by PDG (TXOP, TBTT, PPDU_duration based on rate, dyn_bw) */
  708. uint32_t mpdus_truncated;
  709. /* Num MPDUs that was tried but didn't receive ACK or BA */
  710. uint32_t mpdus_ack_failed;
  711. /* Num MPDUs that was dropped due to expiry (MSDU TTL). */
  712. uint32_t mpdus_expired;
  713. /* Num MPDUs that was retried within seq_ctrl (MGMT/LEGACY) */
  714. uint32_t mpdus_seq_hw_retry;
  715. /* Num of TQM acked cmds processed */
  716. uint32_t ack_tlv_proc;
  717. /* coex_abort_mpdu_cnt valid. */
  718. uint32_t coex_abort_mpdu_cnt_valid;
  719. /* coex_abort_mpdu_cnt from TX FES stats. */
  720. uint32_t coex_abort_mpdu_cnt;
  721. /* Number of total PPDUs(DATA, MGMT, excludes selfgen) tried over the air (OTA) */
  722. uint32_t num_total_ppdus_tried_ota;
  723. /* Number of data PPDUs tried over the air (OTA) */
  724. uint32_t num_data_ppdus_tried_ota;
  725. /* Num Local control/mgmt frames (MSDUs) queued */
  726. uint32_t local_ctrl_mgmt_enqued;
  727. /* local_ctrl_mgmt_freed:
  728. * Num Local control/mgmt frames (MSDUs) done
  729. * It includes all local ctrl/mgmt completions
  730. * (acked, no ack, flush, TTL, etc)
  731. */
  732. uint32_t local_ctrl_mgmt_freed;
  733. /* Num Local data frames (MSDUs) queued */
  734. uint32_t local_data_enqued;
  735. /* local_data_freed:
  736. * Num Local data frames (MSDUs) done
  737. * It includes all local data completions
  738. * (acked, no ack, flush, TTL, etc)
  739. */
  740. uint32_t local_data_freed;
  741. };
  742. struct cdp_htt_tx_pdev_stats_urrn_tlv_v {
  743. struct cdp_htt_tlv_hdr tlv_hdr;
  744. uint32_t urrn_stats[1]; /* HTT_TX_PDEV_MAX_URRN_STATS */
  745. };
  746. /* NOTE: Variable length TLV, use length spec to infer array size */
  747. struct cdp_htt_tx_pdev_stats_flush_tlv_v {
  748. struct cdp_htt_tlv_hdr tlv_hdr;
  749. uint32_t flush_errs[1]; /* HTT_TX_PDEV_MAX_FLUSH_REASON_STATS */
  750. };
  751. /* NOTE: Variable length TLV, use length spec to infer array size */
  752. struct cdp_htt_tx_pdev_stats_sifs_tlv_v {
  753. struct cdp_htt_tlv_hdr tlv_hdr;
  754. uint32_t sifs_status[1]; /* HTT_TX_PDEV_MAX_SIFS_BURST_STATS */
  755. };
  756. /* NOTE: Variable length TLV, use length spec to infer array size */
  757. struct cdp_htt_tx_pdev_stats_phy_err_tlv_v {
  758. struct cdp_htt_tlv_hdr tlv_hdr;
  759. uint32_t phy_errs[1]; /* HTT_TX_PDEV_MAX_PHY_ERR_STATS */
  760. };
  761. /* == RX PDEV/SOC STATS == */
  762. /* HTT_STATS_RX_SOC_FW_STATS_TAG */
  763. struct cdp_htt_rx_soc_fw_stats_tlv {
  764. struct cdp_htt_tlv_hdr tlv_hdr;
  765. /* Num Packets received on REO FW ring */
  766. uint32_t fw_reo_ring_data_msdu;
  767. /* Num bc/mc packets indicated from fw to host */
  768. uint32_t fw_to_host_data_msdu_bcmc;
  769. /* Num unicast packets indicated from fw to host */
  770. uint32_t fw_to_host_data_msdu_uc;
  771. /* Num remote buf recycle from offload */
  772. uint32_t ofld_remote_data_buf_recycle_cnt;
  773. /* Num remote free buf given to offload */
  774. uint32_t ofld_remote_free_buf_indication_cnt;
  775. };
  776. struct cdp_htt_rx_soc_fw_refill_ring_num_refill_tlv_v {
  777. struct cdp_htt_tlv_hdr tlv_hdr;
  778. /* Num total buf refilled from refill ring */
  779. uint32_t refill_ring_num_refill[1]; /* HTT_RX_STATS_REFILL_MAX_RING */
  780. };
  781. struct cdp_htt_rx_pdev_fw_ring_mpdu_err_tlv_v {
  782. struct cdp_htt_tlv_hdr tlv_hdr;
  783. /* Num error MPDU for each RxDMA error type */
  784. uint32_t fw_ring_mpdu_err[1]; /* HTT_RX_STATS_RXDMA_MAX_ERR */
  785. };
  786. struct cdp_htt_rx_pdev_fw_mpdu_drop_tlv_v {
  787. struct cdp_htt_tlv_hdr tlv_hdr;
  788. /* Num MPDU dropped */
  789. uint32_t fw_mpdu_drop[1]; /* HTT_RX_STATS_FW_DROP_REASON_MAX */
  790. };
  791. #define HTT_STATS_PHY_ERR_MAX 43
  792. struct cdp_htt_rx_pdev_fw_stats_phy_err_tlv {
  793. struct cdp_htt_tlv_hdr tlv_hdr;
  794. /* BIT [ 7 : 0] :- mac_id
  795. * BIT [31 : 8] :- reserved
  796. */
  797. uint32_t mac_id__word;
  798. /* Num of phy err */
  799. uint32_t total_phy_err_cnt;
  800. /* Counts of different types of phy errs
  801. * The mapping of PHY error types to phy_err array elements is HW dependent.
  802. * The only currently-supported mapping is shown below:
  803. *
  804. * 0 phyrx_err_phy_off Reception aborted due to receiving a PHY_OFF TLV
  805. * 1 phyrx_err_synth_off
  806. * 2 phyrx_err_ofdma_timing
  807. * 3 phyrx_err_ofdma_signal_parity
  808. * 4 phyrx_err_ofdma_rate_illegal
  809. * 5 phyrx_err_ofdma_length_illegal
  810. * 6 phyrx_err_ofdma_restart
  811. * 7 phyrx_err_ofdma_service
  812. * 8 phyrx_err_ppdu_ofdma_power_drop
  813. * 9 phyrx_err_cck_blokker
  814. * 10 phyrx_err_cck_timing
  815. * 11 phyrx_err_cck_header_crc
  816. * 12 phyrx_err_cck_rate_illegal
  817. * 13 phyrx_err_cck_length_illegal
  818. * 14 phyrx_err_cck_restart
  819. * 15 phyrx_err_cck_service
  820. * 16 phyrx_err_cck_power_drop
  821. * 17 phyrx_err_ht_crc_err
  822. * 18 phyrx_err_ht_length_illegal
  823. * 19 phyrx_err_ht_rate_illegal
  824. * 20 phyrx_err_ht_zlf
  825. * 21 phyrx_err_false_radar_ext
  826. * 22 phyrx_err_green_field
  827. * 23 phyrx_err_bw_gt_dyn_bw
  828. * 24 phyrx_err_leg_ht_mismatch
  829. * 25 phyrx_err_vht_crc_error
  830. * 26 phyrx_err_vht_siga_unsupported
  831. * 27 phyrx_err_vht_lsig_len_invalid
  832. * 28 phyrx_err_vht_ndp_or_zlf
  833. * 29 phyrx_err_vht_nsym_lt_zero
  834. * 30 phyrx_err_vht_rx_extra_symbol_mismatch
  835. * 31 phyrx_err_vht_rx_skip_group_id0
  836. * 32 phyrx_err_vht_rx_skip_group_id1to62
  837. * 33 phyrx_err_vht_rx_skip_group_id63
  838. * 34 phyrx_err_ofdm_ldpc_decoder_disabled
  839. * 35 phyrx_err_defer_nap
  840. * 36 phyrx_err_fdomain_timeout
  841. * 37 phyrx_err_lsig_rel_check
  842. * 38 phyrx_err_bt_collision
  843. * 39 phyrx_err_unsupported_mu_feedback
  844. * 40 phyrx_err_ppdu_tx_interrupt_rx
  845. * 41 phyrx_err_unsupported_cbf
  846. * 42 phyrx_err_other
  847. */
  848. uint32_t phy_err[HTT_STATS_PHY_ERR_MAX];
  849. };
  850. struct cdp_htt_rx_soc_fw_refill_ring_empty_tlv_v {
  851. struct cdp_htt_tlv_hdr tlv_hdr;
  852. /* Num ring empty encountered */
  853. uint32_t refill_ring_empty_cnt[1]; /* HTT_RX_STATS_REFILL_MAX_RING */
  854. };
  855. struct cdp_htt_tx_pdev_stats {
  856. struct cdp_htt_tx_pdev_stats_cmn_tlv cmn_tlv;
  857. struct cdp_htt_tx_pdev_stats_urrn_tlv_v underrun_tlv;
  858. struct cdp_htt_tx_pdev_stats_sifs_tlv_v sifs_tlv;
  859. struct cdp_htt_tx_pdev_stats_flush_tlv_v flush_tlv;
  860. struct cdp_htt_tx_pdev_stats_phy_err_tlv_v phy_err_tlv;
  861. };
  862. struct cdp_htt_rx_soc_stats_t {
  863. struct cdp_htt_rx_soc_fw_stats_tlv fw_tlv;
  864. struct cdp_htt_rx_soc_fw_refill_ring_empty_tlv_v fw_refill_ring_empty_tlv;
  865. struct cdp_htt_rx_soc_fw_refill_ring_num_refill_tlv_v fw_refill_ring_num_refill_tlv;
  866. };
  867. struct cdp_htt_rx_pdev_stats {
  868. struct cdp_htt_rx_soc_stats_t soc_stats;
  869. struct cdp_htt_rx_pdev_fw_stats_tlv fw_stats_tlv;
  870. struct cdp_htt_rx_pdev_fw_ring_mpdu_err_tlv_v fw_ring_mpdu_err_tlv;
  871. struct cdp_htt_rx_pdev_fw_mpdu_drop_tlv_v fw_ring_mpdu_drop;
  872. struct cdp_htt_rx_pdev_fw_stats_phy_err_tlv fw_stats_phy_err_tlv;
  873. };
  874. /* struct cdp_pdev_stats - pdev stats
  875. * @msdu_not_done: packets dropped because msdu done bit not set
  876. * @mec:Multicast Echo check
  877. * @mesh_filter: Mesh Filtered packets
  878. * @mon_rx_drop: packets dropped on monitor vap
  879. * @pkts: total packets replenished
  880. * @rxdma_err: rxdma errors for replenished
  881. * @nbuf_alloc_fail: nbuf alloc failed
  882. * @map_err: Mapping failure
  883. * @x86_fail: x86 failures
  884. * @low_thresh_intrs: low threshold interrupts
  885. * @rx_raw_pkts: Rx Raw Packets
  886. * @mesh_mem_alloc: Mesh Rx Stats Alloc fail
  887. * @desc_alloc_fail: desc alloc failed errors
  888. * @ip_csum_err: ip checksum errors
  889. * @tcp_udp_csum_err: tcp/udp checksum errors
  890. * @buf_freelist: buffers added back in freelist
  891. * @tx_i: Tx Ingress stats
  892. * @tx:CDP Tx Stats
  893. * @rx: CDP Rx Stats
  894. * @tx_comp_histogram: Number of Tx completions per interrupt
  895. * @rx_ind_histogram: Number of Rx ring descriptors reaped per interrupt
  896. * @ppdu_stats_counter: ppdu stats counter
  897. * @htt_tx_pdev_stats: htt pdev stats for tx
  898. * @htt_rx_pdev_stats: htt pdev stats for rx
  899. */
  900. struct cdp_pdev_stats {
  901. struct {
  902. uint32_t msdu_not_done;
  903. uint32_t mec;
  904. uint32_t mesh_filter;
  905. uint32_t mon_rx_drop;
  906. } dropped;
  907. struct {
  908. struct cdp_pkt_info pkts;
  909. uint32_t rxdma_err;
  910. uint32_t nbuf_alloc_fail;
  911. uint32_t map_err;
  912. uint32_t x86_fail;
  913. uint32_t low_thresh_intrs;
  914. } replenish;
  915. uint32_t rx_raw_pkts;
  916. uint32_t mesh_mem_alloc;
  917. /* Rx errors */
  918. struct {
  919. uint32_t desc_alloc_fail;
  920. uint32_t ip_csum_err;
  921. uint32_t tcp_udp_csum_err;
  922. } err;
  923. uint32_t buf_freelist;
  924. struct cdp_tx_ingress_stats tx_i;
  925. struct cdp_tx_stats tx;
  926. struct cdp_rx_stats rx;
  927. struct cdp_hist_tx_comp tx_comp_histogram;
  928. struct cdp_hist_rx_ind rx_ind_histogram;
  929. uint64_t ppdu_stats_counter[CDP_PPDU_STATS_MAX_TAG];
  930. struct cdp_htt_tx_pdev_stats htt_tx_pdev_stats;
  931. struct cdp_htt_rx_pdev_stats htt_rx_pdev_stats;
  932. };
  933. #ifndef BIG_ENDIAN_HOST
  934. typedef struct {
  935. uint64_t pkts;
  936. uint64_t bytes;
  937. } ol_txrx_stats_elem;
  938. #else
  939. struct ol_txrx_elem_t {
  940. uint64_t pkts;
  941. uint64_t bytes;
  942. };
  943. typedef struct ol_txrx_elem_t ol_txrx_stats_elem;
  944. #endif
  945. #ifndef CONFIG_MCL
  946. /**
  947. * @brief data stats published by the host txrx layer
  948. */
  949. struct ol_txrx_stats {
  950. struct {
  951. /* MSDUs received from the stack */
  952. ol_txrx_stats_elem from_stack;
  953. /* MSDUs successfully sent across the WLAN */
  954. ol_txrx_stats_elem delivered;
  955. struct {
  956. /* MSDUs that the host did not accept */
  957. ol_txrx_stats_elem host_reject;
  958. /* MSDUs which could not be downloaded to the target */
  959. ol_txrx_stats_elem download_fail;
  960. /*
  961. * MSDUs which the target discarded
  962. * (lack of mem or old age)
  963. */
  964. ol_txrx_stats_elem target_discard;
  965. /*
  966. * MSDUs which the target sent but couldn't get
  967. * an ack for
  968. */
  969. ol_txrx_stats_elem no_ack;
  970. /* MSDUs dropped in NSS-FW */
  971. ol_txrx_stats_elem nss_ol_dropped;
  972. } dropped;
  973. u_int32_t desc_in_use;
  974. u_int32_t desc_alloc_fails;
  975. u_int32_t ce_ring_full;
  976. u_int32_t dma_map_error;
  977. /* MSDUs given to the txrx layer by the management stack */
  978. ol_txrx_stats_elem mgmt;
  979. struct {
  980. /* TSO applied jumbo packets received from NW Stack */
  981. ol_txrx_stats_elem tso_pkts;
  982. /* Non - TSO packets */
  983. ol_txrx_stats_elem non_tso_pkts;
  984. /* TSO packets : Dropped during TCP segmentation*/
  985. ol_txrx_stats_elem tso_dropped;
  986. /* TSO Descriptors */
  987. u_int32_t tso_desc_cnt;
  988. } tso;
  989. struct {
  990. /* TSO applied jumbo packets received from NW Stack */
  991. ol_txrx_stats_elem sg_pkts;
  992. /* Non - TSO packets */
  993. ol_txrx_stats_elem non_sg_pkts;
  994. /* TSO packets : Dropped during TCP segmentation*/
  995. ol_txrx_stats_elem sg_dropped;
  996. /* TSO Descriptors */
  997. u_int32_t sg_desc_cnt;
  998. } sg;
  999. struct {
  1000. /* packets enqueued for flow control */
  1001. u_int32_t fl_ctrl_enqueue;
  1002. /* packets discarded for flow control is full */
  1003. u_int32_t fl_ctrl_discard;
  1004. /* packets sent to CE without flow control */
  1005. u_int32_t fl_ctrl_avoid;
  1006. } fl_ctrl;
  1007. } tx;
  1008. struct {
  1009. /* MSDUs given to the OS shim */
  1010. ol_txrx_stats_elem delivered;
  1011. /* MSDUs forwarded from the rx path to the tx path */
  1012. ol_txrx_stats_elem forwarded;
  1013. /* MSDUs in which ipv4 chksum error detected by HW */
  1014. ol_txrx_stats_elem ipv4_cksum_err;
  1015. /* MSDUs in which tcp chksum error detected by HW */
  1016. ol_txrx_stats_elem tcp_ipv4_cksum_err;
  1017. /* MSDUs in which udp chksum error detected by HW */
  1018. ol_txrx_stats_elem udp_ipv4_cksum_err;
  1019. /* MSDUs in which tcp V6 chksum error detected by HW */
  1020. ol_txrx_stats_elem tcp_ipv6_cksum_err;
  1021. /* MSDUs in which UDP V6 chksum error detected by HW */
  1022. ol_txrx_stats_elem udp_ipv6_cksum_err;
  1023. } rx;
  1024. struct {
  1025. /* Number of mcast received for conversion */
  1026. u_int32_t num_me_rcvd;
  1027. /* Number of unicast sent as part of mcast conversion */
  1028. u_int32_t num_me_ucast;
  1029. /* Number of multicast frames dropped due to dma_map failure */
  1030. u_int32_t num_me_dropped_m;
  1031. /*
  1032. * Number of multicast frames dropped due to allocation
  1033. * failure
  1034. */
  1035. u_int32_t num_me_dropped_a;
  1036. /* Number of multicast frames dropped due to internal failure */
  1037. u_int32_t num_me_dropped_i;
  1038. /* Number of me buf currently in use */
  1039. u_int32_t num_me_buf;
  1040. /* Number of me buf frames to self mac address */
  1041. u_int32_t num_me_dropped_s;
  1042. /* Number of me buf in use in non pool based allocation*/
  1043. u_int32_t num_me_nonpool;
  1044. /* Number of me buf allocated using non pool based allocation*/
  1045. u_int32_t num_me_nonpool_count;
  1046. } mcast_enhance;
  1047. };
  1048. struct ol_ath_dbg_rx_rssi {
  1049. uint8_t rx_rssi_pri20;
  1050. uint8_t rx_rssi_sec20;
  1051. uint8_t rx_rssi_sec40;
  1052. uint8_t rx_rssi_sec80;
  1053. };
  1054. struct ol_ath_radiostats {
  1055. uint64_t tx_beacon;
  1056. uint32_t tx_buf_count;
  1057. int32_t tx_mgmt;
  1058. int32_t rx_mgmt;
  1059. uint32_t rx_num_mgmt;
  1060. uint32_t rx_num_ctl;
  1061. uint32_t tx_rssi;
  1062. uint32_t rx_rssi_comb;
  1063. struct ol_ath_dbg_rx_rssi rx_rssi_chain0;
  1064. struct ol_ath_dbg_rx_rssi rx_rssi_chain1;
  1065. struct ol_ath_dbg_rx_rssi rx_rssi_chain2;
  1066. struct ol_ath_dbg_rx_rssi rx_rssi_chain3;
  1067. uint32_t rx_overrun;
  1068. uint32_t rx_phyerr;
  1069. uint32_t ackRcvBad;
  1070. uint32_t rtsBad;
  1071. uint32_t rtsGood;
  1072. uint32_t fcsBad;
  1073. uint32_t noBeacons;
  1074. uint32_t mib_int_count;
  1075. uint32_t rx_looplimit_start;
  1076. uint32_t rx_looplimit_end;
  1077. uint8_t ap_stats_tx_cal_enable;
  1078. uint8_t self_bss_util;
  1079. uint8_t obss_util;
  1080. uint8_t ap_rx_util;
  1081. uint8_t free_medium;
  1082. uint8_t ap_tx_util;
  1083. uint8_t obss_rx_util;
  1084. uint8_t non_wifi_util;
  1085. uint32_t tgt_asserts;
  1086. int16_t chan_nf;
  1087. int16_t chan_nf_sec80;
  1088. uint64_t wmi_tx_mgmt;
  1089. uint64_t wmi_tx_mgmt_completions;
  1090. uint32_t wmi_tx_mgmt_completion_err;
  1091. uint32_t peer_delete_req;
  1092. uint32_t peer_delete_resp;
  1093. uint32_t rx_mgmt_rssi_drop;
  1094. uint32_t tx_frame_count;
  1095. uint32_t rx_frame_count;
  1096. uint32_t rx_clear_count;
  1097. uint32_t cycle_count;
  1098. uint32_t phy_err_count;
  1099. uint32_t chan_tx_pwr;
  1100. uint32_t be_nobuf;
  1101. uint32_t tx_packets;
  1102. uint32_t rx_packets;
  1103. uint32_t tx_num_data;
  1104. uint32_t rx_num_data;
  1105. uint32_t tx_mcs[10];
  1106. uint32_t rx_mcs[10];
  1107. uint64_t rx_bytes;
  1108. uint64_t tx_bytes;
  1109. uint32_t tx_compaggr;
  1110. uint32_t rx_aggr;
  1111. uint32_t tx_bawadv;
  1112. uint32_t tx_compunaggr;
  1113. uint32_t rx_badcrypt;
  1114. uint32_t rx_badmic;
  1115. uint32_t rx_crcerr;
  1116. uint32_t rx_last_msdu_unset_cnt;
  1117. uint32_t rx_data_bytes;
  1118. uint32_t tx_retries;
  1119. };
  1120. /*
  1121. * Enumeration of PDEV Configuration parameter
  1122. */
  1123. enum _ol_ath_param_t {
  1124. OL_ATH_PARAM_TXCHAINMASK = 1,
  1125. OL_ATH_PARAM_RXCHAINMASK = 2,
  1126. OL_ATH_PARAM_AMPDU = 6,
  1127. OL_ATH_PARAM_AMPDU_LIMIT = 7,
  1128. OL_ATH_PARAM_AMPDU_SUBFRAMES = 8,
  1129. OL_ATH_PARAM_TXPOWER_LIMIT2G = 12,
  1130. OL_ATH_PARAM_TXPOWER_LIMIT5G = 13,
  1131. OL_ATH_PARAM_LDPC = 32,
  1132. OL_ATH_PARAM_VOW_EXT_STATS = 45,
  1133. OL_ATH_PARAM_DYN_TX_CHAINMASK = 73,
  1134. OL_ATH_PARAM_BURST_ENABLE = 77,
  1135. OL_ATH_PARAM_BURST_DUR = 78,
  1136. OL_ATH_PARAM_BCN_BURST = 80,
  1137. OL_ATH_PARAM_DCS = 82,
  1138. #if UMAC_SUPPORT_PERIODIC_PERFSTATS
  1139. OL_ATH_PARAM_PRDPERFSTAT_THRPUT_ENAB = 83,
  1140. OL_ATH_PARAM_PRDPERFSTAT_THRPUT_WIN = 84,
  1141. OL_ATH_PARAM_PRDPERFSTAT_THRPUT = 85,
  1142. OL_ATH_PARAM_PRDPERFSTAT_PER_ENAB = 86,
  1143. OL_ATH_PARAM_PRDPERFSTAT_PER_WIN = 87,
  1144. OL_ATH_PARAM_PRDPERFSTAT_PER = 88,
  1145. #endif
  1146. /* UMAC_SUPPORT_PERIODIC_PERFSTATS */
  1147. OL_ATH_PARAM_TOTAL_PER = 89,
  1148. /* set manual rate for rts frame */
  1149. OL_ATH_PARAM_RTS_CTS_RATE = 92,
  1150. /* co channel interference threshold level */
  1151. OL_ATH_PARAM_DCS_COCH_THR = 93,
  1152. /* transmit error threshold */
  1153. OL_ATH_PARAM_DCS_TXERR_THR = 94,
  1154. /* phy error threshold */
  1155. OL_ATH_PARAM_DCS_PHYERR_THR = 95,
  1156. /*
  1157. * The IOCTL number is 114, it is made 114, inorder to make the IOCTL
  1158. * number same as Direct-attach IOCTL.
  1159. * Please, don't change number. This IOCTL gets the Interface code path
  1160. * it should be either DIRECT-ATTACH or OFF-LOAD.
  1161. */
  1162. OL_ATH_PARAM_GET_IF_ID = 114,
  1163. /* Enable Acs back Ground Channel selection Scan timer in AP mode*/
  1164. OL_ATH_PARAM_ACS_ENABLE_BK_SCANTIMEREN = 118,
  1165. /* ACS scan timer value in Seconds */
  1166. OL_ATH_PARAM_ACS_SCANTIME = 119,
  1167. /* Negligence Delta RSSI between two channel */
  1168. OL_ATH_PARAM_ACS_RSSIVAR = 120,
  1169. /* Negligence Delta Channel load between two channel*/
  1170. OL_ATH_PARAM_ACS_CHLOADVAR = 121,
  1171. /* Enable Limited OBSS check */
  1172. OL_ATH_PARAM_ACS_LIMITEDOBSS = 122,
  1173. /* Acs control flag for Scan timer */
  1174. OL_ATH_PARAM_ACS_CTRLFLAG = 123,
  1175. /* Acs Run time Debug level*/
  1176. OL_ATH_PARAM_ACS_DEBUGTRACE = 124,
  1177. OL_ATH_PARAM_SET_FW_HANG_ID = 137,
  1178. /* Radio type 1:11ac 0:11abgn */
  1179. OL_ATH_PARAM_RADIO_TYPE = 138,
  1180. OL_ATH_PARAM_IGMPMLD_OVERRIDE, /* IGMP/MLD packet override */
  1181. OL_ATH_PARAM_IGMPMLD_TID, /* IGMP/MLD packet TID no */
  1182. OL_ATH_PARAM_ARPDHCP_AC_OVERRIDE,
  1183. OL_ATH_PARAM_NON_AGG_SW_RETRY_TH,
  1184. OL_ATH_PARAM_AGG_SW_RETRY_TH,
  1185. /* Dont change this number it as per sync with DA
  1186. Blocking certian channel from ic channel list */
  1187. OL_ATH_PARAM_DISABLE_DFS = 144,
  1188. OL_ATH_PARAM_ENABLE_AMSDU = 145,
  1189. OL_ATH_PARAM_ENABLE_AMPDU = 146,
  1190. OL_ATH_PARAM_STA_KICKOUT_TH,
  1191. OL_ATH_PARAM_WLAN_PROF_ENABLE,
  1192. OL_ATH_PARAM_LTR_ENABLE,
  1193. OL_ATH_PARAM_LTR_AC_LATENCY_BE = 150,
  1194. OL_ATH_PARAM_LTR_AC_LATENCY_BK,
  1195. OL_ATH_PARAM_LTR_AC_LATENCY_VI,
  1196. OL_ATH_PARAM_LTR_AC_LATENCY_VO,
  1197. OL_ATH_PARAM_LTR_AC_LATENCY_TIMEOUT,
  1198. OL_ATH_PARAM_LTR_TX_ACTIVITY_TIMEOUT = 155,
  1199. OL_ATH_PARAM_LTR_SLEEP_OVERRIDE,
  1200. OL_ATH_PARAM_LTR_RX_OVERRIDE,
  1201. OL_ATH_PARAM_L1SS_ENABLE,
  1202. OL_ATH_PARAM_DSLEEP_ENABLE,
  1203. /* radar error threshold */
  1204. OL_ATH_PARAM_DCS_RADAR_ERR_THR = 160,
  1205. /* Tx channel utilization due to AP's tx and rx */
  1206. OL_ATH_PARAM_DCS_USERMAX_CU_THR,
  1207. /* interference detection threshold */
  1208. OL_ATH_PARAM_DCS_INTR_DETECT_THR,
  1209. /* sampling window, default 10secs */
  1210. OL_ATH_PARAM_DCS_SAMPLE_WINDOW,
  1211. /* debug logs enable/disable */
  1212. OL_ATH_PARAM_DCS_DEBUG,
  1213. OL_ATH_PARAM_ANI_ENABLE = 165,
  1214. OL_ATH_PARAM_ANI_POLL_PERIOD,
  1215. OL_ATH_PARAM_ANI_LISTEN_PERIOD,
  1216. OL_ATH_PARAM_ANI_OFDM_LEVEL,
  1217. OL_ATH_PARAM_ANI_CCK_LEVEL,
  1218. OL_ATH_PARAM_DSCP_TID_MAP = 170,
  1219. OL_ATH_PARAM_TXPOWER_SCALE,
  1220. /* Phy error penalty */
  1221. OL_ATH_PARAM_DCS_PHYERR_PENALTY,
  1222. #if ATH_SUPPORT_DSCP_OVERRIDE
  1223. /* set/get TID for sending HMMC packets */
  1224. OL_ATH_PARAM_HMMC_DSCP_TID_MAP,
  1225. /* set/get DSCP mapping override */
  1226. OL_ATH_PARAM_DSCP_OVERRIDE,
  1227. /* set/get HMMC-DSCP mapping override */
  1228. OL_ATH_PARAM_HMMC_DSCP_OVERRIDE = 175,
  1229. #endif
  1230. #if ATH_RX_LOOPLIMIT_TIMER
  1231. OL_ATH_PARAM_LOOPLIMIT_NUM,
  1232. #endif
  1233. OL_ATH_PARAM_ANTENNA_GAIN_2G,
  1234. OL_ATH_PARAM_ANTENNA_GAIN_5G,
  1235. OL_ATH_PARAM_RX_FILTER,
  1236. #if ATH_SUPPORT_HYFI_ENHANCEMENTS
  1237. OL_ATH_PARAM_BUFF_THRESH = 180,
  1238. OL_ATH_PARAM_BLK_REPORT_FLOOD,
  1239. OL_ATH_PARAM_DROP_STA_QUERY,
  1240. #endif
  1241. OL_ATH_PARAM_QBOOST,
  1242. OL_ATH_PARAM_SIFS_FRMTYPE,
  1243. OL_ATH_PARAM_SIFS_UAPSD = 185,
  1244. OL_ATH_PARAM_FW_RECOVERY_ID,
  1245. OL_ATH_PARAM_RESET_OL_STATS,
  1246. OL_ATH_PARAM_AGGR_BURST,
  1247. /* Number of deauth sent in consecutive rx_peer_invalid */
  1248. OL_ATH_PARAM_DEAUTH_COUNT,
  1249. OL_ATH_PARAM_BLOCK_INTERBSS = 190,
  1250. /* Firmware reset control for Bmiss / timeout / reset */
  1251. OL_ATH_PARAM_FW_DISABLE_RESET,
  1252. OL_ATH_PARAM_MSDU_TTL,
  1253. OL_ATH_PARAM_PPDU_DURATION,
  1254. OL_ATH_PARAM_SET_TXBF_SND_PERIOD,
  1255. OL_ATH_PARAM_ALLOW_PROMISC = 195,
  1256. OL_ATH_PARAM_BURST_MODE,
  1257. OL_ATH_PARAM_DYN_GROUPING,
  1258. OL_ATH_PARAM_DPD_ENABLE,
  1259. OL_ATH_PARAM_DBGLOG_RATELIM,
  1260. /* firmware should intimate us about ps state change for node */
  1261. OL_ATH_PARAM_PS_STATE_CHANGE = 200,
  1262. OL_ATH_PARAM_MCAST_BCAST_ECHO,
  1263. /* OBSS RSSI threshold for 20/40 coexistence */
  1264. OL_ATH_PARAM_OBSS_RSSI_THRESHOLD,
  1265. /* Link/node RX RSSI threshold for 20/40 coexistence */
  1266. OL_ATH_PARAM_OBSS_RX_RSSI_THRESHOLD,
  1267. #if ATH_CHANNEL_BLOCKING
  1268. OL_ATH_PARAM_ACS_BLOCK_MODE = 205,
  1269. #endif
  1270. OL_ATH_PARAM_ACS_TX_POWER_OPTION,
  1271. /*
  1272. * Default Antenna Polarization MSB 8 bits (24:31) specifying
  1273. * enable/disable ; LSB 24 bits (0:23) antenna mask value
  1274. */
  1275. OL_ATH_PARAM_ANT_POLARIZATION,
  1276. /* rate limit mute type error prints */
  1277. OL_ATH_PARAM_PRINT_RATE_LIMIT,
  1278. OL_ATH_PARAM_PDEV_RESET, /* Reset FW PDEV*/
  1279. /* Do not crash host when target assert happened*/
  1280. OL_ATH_PARAM_FW_DUMP_NO_HOST_CRASH = 210,
  1281. /* Consider OBSS non-erp to change to long slot*/
  1282. OL_ATH_PARAM_CONSIDER_OBSS_NON_ERP_LONG_SLOT = 211,
  1283. OL_ATH_PARAM_STATS_FC,
  1284. OL_ATH_PARAM_QFLUSHINTERVAL,
  1285. OL_ATH_PARAM_TOTAL_Q_SIZE,
  1286. OL_ATH_PARAM_TOTAL_Q_SIZE_RANGE0,
  1287. OL_ATH_PARAM_TOTAL_Q_SIZE_RANGE1,
  1288. OL_ATH_PARAM_TOTAL_Q_SIZE_RANGE2,
  1289. OL_ATH_PARAM_TOTAL_Q_SIZE_RANGE3,
  1290. OL_ATH_PARAM_MIN_THRESHOLD,
  1291. OL_ATH_PARAM_MAX_Q_LIMIT,
  1292. OL_ATH_PARAM_MIN_Q_LIMIT,
  1293. OL_ATH_PARAM_CONG_CTRL_TIMER_INTV,
  1294. OL_ATH_PARAM_STATS_TIMER_INTV,
  1295. OL_ATH_PARAM_ROTTING_TIMER_INTV,
  1296. OL_ATH_PARAM_LATENCY_PROFILE,
  1297. OL_ATH_PARAM_HOSTQ_DUMP,
  1298. OL_ATH_PARAM_TIDQ_MAP,
  1299. OL_ATH_PARAM_DBG_ARP_SRC_ADDR, /* ARP DEBUG source address*/
  1300. OL_ATH_PARAM_DBG_ARP_DST_ADDR, /* ARP DEBUG destination address*/
  1301. OL_ATH_PARAM_ARP_DBG_CONF, /* ARP debug configuration */
  1302. OL_ATH_PARAM_DISABLE_STA_VAP_AMSDU, /* Disable AMSDU for station vap */
  1303. #if ATH_SUPPORT_DFS && ATH_SUPPORT_STA_DFS
  1304. OL_ATH_PARAM_STADFS_ENABLE = 300, /* STA DFS is enabled or not */
  1305. #endif
  1306. #if QCA_AIRTIME_FAIRNESS
  1307. OL_ATH_PARAM_ATF_STRICT_SCHED = 301,
  1308. OL_ATH_PARAM_ATF_GROUP_POLICY = 302,
  1309. #endif
  1310. #if DBDC_REPEATER_SUPPORT
  1311. OL_ATH_PARAM_PRIMARY_RADIO,
  1312. OL_ATH_PARAM_DBDC_ENABLE,
  1313. #endif
  1314. OL_ATH_PARAM_TXPOWER_DBSCALE,
  1315. OL_ATH_PARAM_CTL_POWER_SCALE,
  1316. #if QCA_AIRTIME_FAIRNESS
  1317. OL_ATH_PARAM_ATF_OBSS_SCHED = 307,
  1318. OL_ATH_PARAM_ATF_OBSS_SCALE = 308,
  1319. #endif
  1320. OL_ATH_PARAM_PHY_OFDM_ERR = 309,
  1321. OL_ATH_PARAM_PHY_CCK_ERR = 310,
  1322. OL_ATH_PARAM_FCS_ERR = 311,
  1323. OL_ATH_PARAM_CHAN_UTIL = 312,
  1324. #if DBDC_REPEATER_SUPPORT
  1325. OL_ATH_PARAM_CLIENT_MCAST,
  1326. #endif
  1327. OL_ATH_PARAM_EMIWAR_80P80 = 314,
  1328. OL_ATH_PARAM_BATCHMODE = 315,
  1329. OL_ATH_PARAM_PACK_AGGR_DELAY = 316,
  1330. #if UMAC_SUPPORT_ACFG
  1331. OL_ATH_PARAM_DIAG_ENABLE = 317,
  1332. #endif
  1333. #if ATH_SUPPORT_VAP_QOS
  1334. OL_ATH_PARAM_VAP_QOS = 318,
  1335. #endif
  1336. OL_ATH_PARAM_CHAN_STATS_TH = 319,
  1337. /* Passive scan is enabled or disabled */
  1338. OL_ATH_PARAM_PASSIVE_SCAN_ENABLE = 320,
  1339. OL_ATH_MIN_RSSI_ENABLE = 321,
  1340. OL_ATH_MIN_RSSI = 322,
  1341. OL_ATH_PARAM_ACS_2G_ALLCHAN = 323,
  1342. #if DBDC_REPEATER_SUPPORT
  1343. OL_ATH_PARAM_DELAY_STAVAP_UP = 324,
  1344. #endif
  1345. /* It is used to set the channel switch options */
  1346. OL_ATH_PARAM_CHANSWITCH_OPTIONS = 327,
  1347. OL_ATH_BTCOEX_ENABLE = 328,
  1348. OL_ATH_BTCOEX_WL_PRIORITY = 329,
  1349. OL_ATH_PARAM_TID_OVERRIDE_QUEUE_MAPPING = 330,
  1350. OL_ATH_PARAM_CAL_VER_CHECK = 331,
  1351. OL_ATH_PARAM_NO_VLAN = 332,
  1352. OL_ATH_PARAM_CCA_THRESHOLD = 333,
  1353. OL_ATH_PARAM_ATF_LOGGING = 334,
  1354. OL_ATH_PARAM_STRICT_DOTH = 335,
  1355. OL_ATH_PARAM_DISCONNECTION_TIMEOUT = 336,
  1356. OL_ATH_PARAM_RECONFIGURATION_TIMEOUT = 337,
  1357. OL_ATH_PARAM_CHANNEL_SWITCH_COUNT = 338,
  1358. OL_ATH_PARAM_ALWAYS_PRIMARY = 339,
  1359. OL_ATH_PARAM_FAST_LANE = 340,
  1360. OL_ATH_GET_BTCOEX_DUTY_CYCLE = 341,
  1361. OL_ATH_PARAM_SECONDARY_OFFSET_IE = 342,
  1362. OL_ATH_PARAM_WIDE_BAND_SUB_ELEMENT = 343,
  1363. OL_ATH_PARAM_PREFERRED_UPLINK = 344,
  1364. OL_ATH_PARAM_PRECAC_ENABLE = 345,
  1365. OL_ATH_PARAM_PRECAC_TIMEOUT = 346,
  1366. OL_ATH_COEX_VER_CFG = 347,
  1367. OL_ATH_PARAM_DUMP_TARGET = 348,
  1368. OL_ATH_PARAM_PDEV_TO_REO_DEST = 349,
  1369. OL_ATH_PARAM_DUMP_CHAINMASK_TABLES = 350,
  1370. OL_ATH_PARAM_DUMP_OBJECTS = 351,
  1371. OL_ATH_PARAM_ACS_SRLOADVAR = 352,
  1372. OL_ATH_PARAM_MGMT_RSSI_THRESHOLD = 353,
  1373. OL_ATH_PARAM_EXT_NSS_CAPABLE = 354,
  1374. OL_ATH_PARAM_MGMT_PDEV_STATS_TIMER = 355,
  1375. OL_ATH_PARAM_TXACKTIMEOUT = 356,
  1376. OL_ATH_PARAM_ICM_ACTIVE = 357,
  1377. OL_ATH_PARAM_NOMINAL_NOISEFLOOR = 358,
  1378. OL_ATH_PARAM_CHAN_INFO = 359,
  1379. OL_ATH_PARAM_ACS_RANK = 360,
  1380. OL_ATH_PARAM_TXCHAINSOFT = 361,
  1381. OL_ATH_PARAM_WIDE_BAND_SCAN = 362,
  1382. OL_ATH_PARAM_CCK_TX_ENABLE = 363,
  1383. OL_ATH_PARAM_PAPI_ENABLE = 364,
  1384. OL_ATH_PARAM_ISOLATION = 365,
  1385. OL_ATH_PARAM_MAX_CLIENTS_PER_RADIO = 366,
  1386. #if defined(WLAN_DFS_PARTIAL_OFFLOAD) && defined(HOST_DFS_SPOOF_TEST)
  1387. OL_ATH_PARAM_DFS_HOST_WAIT_TIMEOUT = 367,
  1388. #endif
  1389. OL_ATH_PARAM_NF_THRESH = 368,
  1390. #ifdef OL_ATH_SMART_LOGGING
  1391. OL_ATH_PARAM_SMARTLOG_ENABLE = 369,
  1392. OL_ATH_PARAM_SMARTLOG_FATAL_EVENT = 370,
  1393. OL_ATH_PARAM_SMARTLOG_SKB_SZ = 371,
  1394. OL_ATH_PARAM_SMARTLOG_P1PINGFAIL = 372,
  1395. #endif /* OL_ATH_SMART_LOGGING */
  1396. #ifdef WLAN_DFS_PRECAC_AUTO_CHAN_SUPPORT
  1397. OL_ATH_PARAM_PRECAC_INTER_CHANNEL = 373,
  1398. OL_ATH_PARAM_PRECAC_CHAN_STATE = 374,
  1399. #endif
  1400. OL_ATH_PARAM_DBR_RING_STATUS = 375,
  1401. #ifdef QCN_ESP_IE
  1402. OL_ATH_PARAM_ESP_PERIODICITY = 376,
  1403. OL_ATH_PARAM_ESP_AIRTIME = 377,
  1404. OL_ATH_PARAM_ESP_PPDU_DURATION = 378,
  1405. OL_ATH_PARAM_ESP_BA_WINDOW = 379,
  1406. #endif /* QCN_ESP_IE */
  1407. OL_ATH_PARAM_CBS = 380,
  1408. OL_ATH_PARAM_DCS_SIM = 381,
  1409. OL_ATH_PARAM_CBS_DWELL_SPLIT_TIME = 382,
  1410. OL_ATH_PARAM_CBS_DWELL_REST_TIME = 383,
  1411. OL_ATH_PARAM_CBS_WAIT_TIME = 384,
  1412. OL_ATH_PARAM_CBS_REST_TIME = 385,
  1413. OL_ATH_PARAM_CBS_CSA = 386,
  1414. OL_ATH_PARAM_TWICE_ANTENNA_GAIN = 387,
  1415. OL_ATH_PARAM_ACTIVITY_FACTOR = 388,
  1416. OL_ATH_PARAM_CHAN_AP_RX_UTIL = 389,
  1417. OL_ATH_PARAM_CHAN_FREE = 390,
  1418. OL_ATH_PARAM_CHAN_AP_TX_UTIL = 391,
  1419. OL_ATH_PARAM_CHAN_OBSS_RX_UTIL = 392,
  1420. OL_ATH_PARAM_CHAN_NON_WIFI = 393,
  1421. #if PEER_FLOW_CONTROL
  1422. OL_ATH_PARAM_VIDEO_STATS_FC = 394,
  1423. #endif
  1424. };
  1425. /* Enumeration of PDEV Configuration parameter */
  1426. enum _ol_hal_param_t {
  1427. OL_HAL_CONFIG_DMA_BEACON_RESPONSE_TIME = 0
  1428. };
  1429. #endif
  1430. /* Bitmasks for stats that can block */
  1431. #define EXT_TXRX_FW_STATS 0x0001
  1432. #endif