ieee80211_ct...elf_duration(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

ieee80211_ctstoself_duration β€” bestie, this is the one that gets you the duration field for a CTS-to-self frame πŸ’–

(oh and btw we're deep in the Kernel API Manual, section 9 β€” that's the vibe of this whole page, k? iykyk πŸŽ€)


🫢 SYNOPSIS 🫢

__le16 ieee80211_ctstoself_duration (struct ieee80211_hw *hw , struct ieee80211_vif *vif , size_t frame_len , const struct ieee80211_tx_info *frame_txctl );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • hw β€” a pointer you got from ieee80211_alloc_hw. your classic "where did this come from" moment, but make it mac80211 ✨
  • vif β€” the struct ieee80211_vif pointer, the one that shows up from the add_interface callback. she's the interface girlie πŸ’…
  • frame_len β€” the length of the frame that's getting protected by the CTS-to-self. yes, that frame. the protected one πŸ›‘οΈ
  • frame_txctl β€” the struct ieee80211_tx_info of the frame. her tx info. her whole personality fr fr 🌸

πŸ’œ DESCRIPTION πŸ’œ

okay so picture this: the CTS-to-self is being generated in firmware, but the host system is the one that has to provide the duration field. so the low-level driver calls this function to receive the duration field value β€” in little-endian byteorder, no cap πŸ’€

that's it. that's the whole plot. she hands you the duration, byteorder already sorted, and you move on with your life 🧚


πŸŽ€ RETURN πŸŽ€

the duration. periodt. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./include/net/mac80211.h, plus literally the entire extended universe of mac80211 docs. buckle up bestie, this list is giving "she brought her whole group chat" 😭

like, she really said "and also everyone I've ever met" 😭 anyway, go read ./include/net/mac80211.h if you want the source of truth, bestie.


ngl this page is short and sweet, no warnings, no bugs, no drama β€” just a duration in little-endian and a dream πŸ¦‹

okay that's the whole page, love u, go protect some frames πŸ’– this one's from ./include/net, dated October 2026, and honestly? she ate. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from