STRUCT IWL_HE_STA_CONTEXT_CMD_V1(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… struct iwl_he_sta_context_cmd_v1(9) ๐Ÿ’…

okay bestie so this is a page from the Kernel API Manual, and honestly? it's giving "configure FW to work with HE AP" energy and i'm obsessed. this little struct is how you tell the firmware to play nice with an HE access point. no cap. ๐Ÿฆ‹


โœจ NAME โœจ

struct iwl_he_sta_context_cmd_v1 โ€” configure FW to work with HE AP ๐Ÿ’–


๐ŸŒธ SYNOPSIS ๐ŸŒธ

struct iwl_he_sta_context_cmd_v1 {
    u8 sta_id;
    u8 tid_limit;
    u8 reserved1;
    u8 reserved2;
    __le32 flags;
    u8 ref_bssid_addr[6];
    __le16 reserved0;
    __le32 htc_flags;
    u8 frag_flags;
    u8 frag_level;
    u8 frag_max_num;
    u8 frag_min_size;
    struct iwl_he_pkt_ext_v1 pkt_ext;
    u8 bss_color;
    u8 htc_trig_based_pkt_ext;
    __le16 frame_time_rts_th;
    u8 rand_alloc_ecwmin;
    u8 rand_alloc_ecwmax;
    __le16 reserved3;
    struct iwl_he_backoff_conf trig_based_txf[AC_NUM];
};

like, that's the whole glow-up right there โœจ


๐ŸŽ€ MEMBERS ๐ŸŽ€

  • sta_id โ€” the STA id, bestie. that's literally her identity ๐Ÿ’…
  • tid_limit โ€” max num of TIDs in TX HE-SU multi-TID agg. and listen: 0 is a bad value (not it ๐Ÿ™ˆ), 1 means multi-tid not supported, and 2..8 gives you the tid limit. iykyk.
  • reserved1 โ€” reserved byte for future use ๐Ÿซถ (they're saving a seat for later, iconic)
  • reserved2 โ€” reserved byte for future use, same vibe, love that for them ๐Ÿ’œ
  • flags โ€” see iwl_11ax_sta_ctxt_flags โญ
  • ref_bssid_addr โ€” reference BSSID used by the AP, main character identifier fr ๐Ÿ”ฅ
  • reserved0 โ€” reserved 2 bytes for aligning the ref_bssid_addr field to 8 bytes. the way it's just there for alignment... a supporting role but crucial ๐Ÿ˜ญ
  • htc_flags โ€” which features are supported in HTC ๐Ÿฆ‹
  • frag_flags โ€” frag support in A-MSDU ๐Ÿ’€
  • frag_level โ€” frag support level, leveling up like a video game ๐ŸŽฎ
  • frag_max_num โ€” max num of "open" MSDUs in the receiver (in power of 2) โœจ math slay
  • frag_min_size โ€” min frag size (except last frag). not the last frag specifically, don't come for her ๐Ÿ™ˆ
  • pkt_ext โ€” optional, exists according to PPE-present bit in the HE-PHY capa. so like, sometimes she's there, sometimes she's not. mysterious ๐Ÿงš
  • bss_color โ€” 11ax AP ID that is used in the HE SIG-A to mark inter BSS frame. her little signature color, aesthetic ๐Ÿ’…
  • htc_trig_based_pkt_ext โ€” default PE in 4us units โฑ๏ธ
  • frame_time_rts_th โ€” HE duration RTS threshold, in units of 32us โฑ๏ธโœจ
  • rand_alloc_ecwmin โ€” random CWmin = 2**ECWmin-1 ๐Ÿ”ข
  • rand_alloc_ecwmax โ€” random CWmax = 2**ECWmax-1 ๐Ÿ”ข
  • reserved3 โ€” reserved byte for future use, the third reserved bestie of the group ๐Ÿซถ
  • trig_based_txf โ€” MU EDCA Parameter set for the trigger based traffic queues ๐Ÿ‘‘

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

Kernel file ./drivers/net/wireless/intel/iwlwifi/fw/api/mac.h and all these icons:

enum iwl_mac_protection_flags(9), enum iwl_mac_types(9), enum iwl_tsf_id(9), struct iwl_mac_data_ap(9), struct iwl_mac_data_ibss(9), enum iwl_mac_data_policy(9), struct iwl_mac_data_sta(9), struct iwl_mac_data_go(9), struct iwl_mac_data_p2p_sta(9), struct iwl_mac_data_pibss(9), enum iwl_mac_filter_flags(9), enum iwl_mac_qos_flags(9), struct iwl_ac_qos(9), struct iwl_mac_ctx_cmd(9), struct iwl_missed_beacons_notif_ver_3(9), struct iwl_missed_beacons_notif_v4(9), struct iwl_he_backoff_conf(9), enum iwl_he_pkt_ext_constellations(9), struct iwl_he_pkt_ext_v1(9), struct iwl_he_pkt_ext_v2(9), enum iwl_he_sta_ctxt_flags(9), enum iwl_he_htc_flags(9), struct iwl_he_sta_context_cmd_v2(9), struct iwl_he_sta_context_cmd_v3(9), struct iwl_he_monitor_cmd(9)

like go read all of them, they're all part of the friend group ๐Ÿ’–


ngl this struct is lowkey a whole mood board of HE AP config. take care of her and she'll take care of your firmware. periodt. ๐Ÿ‘‘

and that's the page bestie!! ๐ŸŽ€ brought to you by the source at ./drivers/net/wireless/intel/i..., dated October 2026, and it goes out being struct iwl_h...ntext_cmd_v1(9) โ€” slay, she ate, no crumbs. ๐Ÿ’…๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from