STRUCT IWL_MVM_LINK_STA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is a page straight out of the Kernel API Manual ✨ and it's literally all about struct iwl_mvm_link_sta β€” the link-specific deets of a station. yes, that station. we're getting into the per-link gossip today πŸŽ€


✨ NAME ✨

struct iwl_mvm_link_sta β€” link specific parameters of a station 🫢


🌸 SYNOPSIS 🌸

here's the shape of it, no cap, copied exactly:

struct iwl_mvm_link_sta {
    struct rcu_head rcu_head;
    u32 sta_id;
    union {
      struct iwl_lq_sta_rs_fw rs_fw;
      struct iwl_lq_sta rs_drv;
    } lq_sta;
    u16 orig_amsdu_len;
    u8 avg_energy;
 };

like, that's the whole vibe check of the struct πŸ’–


πŸ¦‹ Members πŸ¦‹

okay now the main characters, one by one πŸ‘‘

  • rcu_head β€” used for freeing the data. it's giving cleanup crew energy 🧹
  • sta_id β€” the index of the station in the fw. that's its little fw ID badge πŸŽ€
  • lq_sta β€” holds rate scaling data, either for the case when RS is done in the driver β€” rs_drv β€” or in the FW β€” rs_fw. two paths, one union, both iconic πŸ’…
  • orig_amsdu_len β€” used to save the original amsdu_len when it is changed via debugfs. and if it's set to 0, it means that it's not set via debugfs. lowkey important, don't forget it πŸ™ˆ
  • avg_energy β€” energy as reported by FW statistics notification. it's literally the station's aura reading ⚑

🌈 SEE ALSO 🌈

go read these next, bestie, they're all connected, iykyk:

  • Kernel file ./drivers/net/wireless/intel/iwlwifi/mvm/sta.h β€” that's the home base 🏠
  • DQA - Dynamic Queue Allocation -introduction(9)
  • station table - introduction(9)
  • station table - locking(9)
  • station table - internal stations(9)
  • station table - AP Station in STA mode(9)
  • station table - Drain vs. Flush(9)
  • station table - fw restart(9)
  • AP mode - PS(9)
  • enum iwl_mvm_agg_state(9)
  • struct iwl_mvm_tid_data(9)
  • enum iwl_mvm_rxq_notif_type(9)
  • struct iwl_mvm_internal_rxq_notif(9)
  • struct iwl_mvm_rxq_dup_data(9)
  • struct iwl_mvm_sta(9)
  • struct iwl_mvm_int_sta(9)
  • iwl_mvm_sta_send_to_fw(9)
  • struct iwl_mvm_sta_state_ops(9)

fr fr though β€” this whole thing lives in ./drivers/net/wireless/intel/i... and it's dated October 2026, so bestie... mark your calendar πŸ—“οΈπŸ’€

and that's the page!! mwah, slay, go read the kernel source πŸ«ΆπŸ’–βœ¨ periodt

πŸ“¦ where this page comes from