TARGET -> HOST EXTENDED STATISTICS UPLOAD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… TARGET -> HOST EXTENDED STATISTICS UPLOAD(9) πŸ’…

okay so this is a page straight outta the Kernel API Manual, and we're about to get into the nitty-gritty of the HTT target β†’ host extended statistics upload confirmation message πŸŽ€


🌸 the actual name of this thing 🌸

target -> host extended statistics upload β€” yeah that's a mouthful bestie, but we move ✨


✨ DESCRIPTION ✨

so. the following field definitions describe the format of the HTT target to host stats upload confirmation message. literally what it says on the tin πŸ’…

this message contains a cookie echoed from the HTT hostβ†’target stats upload request, which identifies which request the confirmation is for πŸ‘‘ and heads up: a single stats can span over multiple HTT stats indication due to the HTT message size limitation πŸ“ so every HTT ext stats indication will have tag-length-value stats information elements πŸ¦‹

the tag-length header for each HTT stats IND message also includes a status field, to indicate whether the request for the stat type in question was fully met, partially met, unable to be met, or invalid (if the stat type in question is disabled in the target) πŸ™ˆ

and a Done bit 1's indicate the end of the of stats info elements 🏁 β€” that's right, the D bit at 1 means we're wrapping up, periodt.

|31                         16|15    12|11|10 8|7   5|4       0|
|--------------------------------------------------------------| |
reserved                   |    msg type   |
|--------------------------------------------------------------| |
cookie LSBs                          |
|--------------------------------------------------------------| |
cookie MSBs                          |
|--------------------------------------------------------------| |
stats entry length     | rsvd   | D|  S |   stat type   |
|--------------------------------------------------------------| |
type-specific stats info                   | |                      (see
debugfs_htt_stats.h)               |
|--------------------------------------------------------------| Header
fields:

🧚 HEADER FIELDS 🧚

  • MSG_TYPE β€” Bits 7:0. Purpose: identifies this is a extended statistics upload confirmation message. Value: 0x1c ⭐
  • COOKIE_LSBS β€” Bits 31:0. Purpose: provide a mechanism to match a targetβ†’host stats confirmation message with its preceding hostβ†’target stats request message. Value: MSBs of the opaque cookie specified by the host-side requestor πŸ“
  • COOKIE_MSBS β€” Bits 31:0. Purpose: provide a mechanism to match a targetβ†’host stats confirmation message with its preceding hostβ†’target stats request message. Value: MSBs of the opaque cookie specified by the host-side requestor πŸ“
ngl bestie, the LSBs one says "Value: MSBs" in the original and I'm not about to gaslight you by "fixing" it β€” that's literally what it says 😭

πŸŽ€ STATS INFORMATION ELEMENT TAG-LENGTH HEADER FIELDS πŸŽ€

  • STAT_TYPE β€” Bits 7:0. Purpose: identifies the type of statistics info held in the following information element. Value: ath12k_dbg_htt_ext_stats_type πŸ‘‘
  • STATUS β€” Bits 10:8. Purpose: indicate whether the requested stats are present. Value:
    • 0 β†’ the requested stats have been delivered in full βœ…
    • 1 β†’ the requested stats have been delivered in part πŸŒ—
    • 2 β†’ the requested stats could not be delivered (error case) πŸ’€
    • 3 β†’ the requested stat type is either not recognized (invalid) 🚫
  • DONE β€” Bits 11. Purpose: indicates the completion of the stats entry, this will be the last stats conf HTT segment for the requested stats type. Value:
    • 0 β†’ the stats retrieval is ongoing πŸ”„
    • 1 β†’ the stats retrieval is complete πŸŽ‰
  • LENGTH β€” Bits 31:16. Purpose: indicate the stats information size. Value: this field specifies the number of bytes of stats information that follows the element tag-length header. It is expected but not required that this length is a multiple of 4 bytes πŸ”’

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/net/wireless/ath/ath12k/debugfs_htt_stats.h πŸ‘€

and that's the whole vibe check, bestie 🫢 this page came from ./drivers/net/wireless/ath/ath12k, dated October 2026 β€” so like, future energy but make it kernel πŸ’œβœ¨πŸ’…

πŸ“¦ where this page comes from