STRUCT HWSIM_TX_RATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay bestie, welcome to the Kernel API Manual β€” this one is literally all about struct hwsim_tx_rate and it's giving rate-selection realness ✨


🌸 NAME 🌸

struct hwsim_tx_rate β€” rate selection/status, periodt πŸ’…


✨ SYNOPSIS ✨

the whole struct is right here, no cap:

       struct hwsim_tx_rate {
           s8 idx;
           u8 count;
        };

πŸŽ€ Members πŸŽ€

  • idx β€” the rate index you're gonna attempt to send with πŸ‘‘
  • count β€” how many tries happen in this rate before moving on to the next rate πŸ”

πŸ’– Description πŸ’–

so like, a value of -1 for idx means invalid rate 🚨 and if that shows up in an array of retry rates, it means no more rates should be tried β€” full stop, bestie.

when this is used for transmit status reporting, the driver should always report the rate and the number of retries used. always always. no skipping πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, iykyk:

  • 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)
  • enum hwsim_tx_rate_flags(9)
  • struct hwsim_tx_rate_flag(9)
  • Frame transmission support over virtio(9)
  • enum hwsim_vqs(9)
  • enum hwsim_rate_info_attributes(9)

mwah πŸ’‹ bestie, this page's source/version corner is ./drivers/net/wireless/virtual, the manual is Kernel API Manual, and the date is October 2026 β€” byeee, slay responsibly 🫢✨

πŸ“¦ where this page comes from