STRUCT HWSIM_TX_RATE_FLAG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct hwsim_tx_rate_flag(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual β€” yes we're doing kernel docs today and yes it's gonna be cute πŸ’…


🌸 NAME 🌸

struct hwsim_tx_rate_flag β€” literally the whole vibe of rate selection/status ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct hwsim_tx_rate_flag {
    s8 idx;
    u16 flags;
 };

look at her. two fields. tiny. iconic. πŸ‘‘


🫢 Members 🫢

  • idx β€” the rate index you're attempting to send with, no cap πŸ’«
  • flags β€” the rate flags, and they follow enum hwsim_tx_rate_flags fr fr

✨ Description ✨

So here's the tea πŸ“: a value of -1 for idx means the rate is invalid β€” and if you're using it inside an array of retry rates, that also means no more rates should be tried. like, that's it, we're done, stop trying 😭

When it's used for transmit status reporting, the driver should always report the rate and the number of retries used. always. not sometimes. always πŸ’€


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/net/wireless/virtual/mac80211_hwsim.h
  • enum hwsim_tx_control_flags(9)
  • Frame transmission/registration support(9)
  • enum hwsim_commands(9)
  • enum hwsim_attrs(9)
  • struct hwsim_tx_rate(9)
  • enum hwsim_tx_rate_flags(9)
  • Frame transmission support over virtio(9)
  • enum hwsim_vqs(9)
  • enum hwsim_rate_info_attributes(9)

go read them all, i'll wait πŸ§šπŸ’œ


mwah πŸ’– that's the whole page! sourced straight from ./drivers/net/wireless/virtual, dated October 2026, and this was struct hwsim_tx_rate_flag(9) β€” slay, bye bestie! πŸŽ€πŸ”₯

πŸ“¦ where this page comes from