ieee80211_calc_rx_airtime(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ieee80211_calc_rx_airtime β€” the Kernel API Manual, section 9 ✨

okay so bestie, this is a page from the Kernel API Manual, section 9 (that's the kernel-functions girlies πŸ’…), and it's all about one lil function called ieee80211_calc_rx_airtime. she's not doing the most, but she's doing it correctly, and honestly? obsessed 🫢


🌸 NAME 🌸

ieee80211_calc_rx_airtime β€” calculate estimated transmission airtime for RX.

like, she does the math on how much airtime a received frame probably ate up ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 ieee80211_calc_rx_airtime (struct ieee80211_hw *hw , struct
ieee80211_rx_status *status , int len );

she takes three things and hands you back a u32, no cap πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” a pointer that you got from ieee80211_alloc_hw. yes, that one. don't be weird about it, just pass the pointer you already have 🧚
  • status β€” a struct ieee80211_rx_status that's carrying the transmission rate info. this is where the tea lives, literally, the rate deets are in there πŸ“
  • len β€” the frame length, in bytes. just the number, bestie, no units needed πŸ”₯

⭐ DESCRIPTION ⭐

so what does she actually do? she calculates the estimated airtime usage of a frame πŸ’« and she figures it out from two things:

  • the rate information sitting in the RX status struct
  • the frame length

that's it. that's the whole vibe. rate + length in, airtime estimate out. iconic behaviour, no notes πŸ‘‘


🌈 RETURN 🌈

the airtime estimate πŸ’– (yes, that's genuinely all it says, she's mysterious like that)


πŸ’€ SEE ALSO πŸ’€

okay this is the part where the page goes absolutely feral 😭 there are so many siblings. grab a snack, we're going through all of them, every single one, because I would never do you dirty like that:

like I said. feral. but we got through it together bestie πŸ«ΆπŸ’…


and that's the whole page!! this lil cutie lives over in ./include/net, and this particular glow-up is dated October 2026, for the manual entry ieee80211_calc_rx_airtime(9). mwah, go estimate some airtime, ily πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from