STRUCT IWL_MVM_MGMT_MCAST_KEY_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct iwl_mvm_mgmt_mcast_key_cmd(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes that's the actual manual name, and yes we are absolutely reading struct docs for fun now, that's just the energy we're on ✨

This one lives in the wireless corner of the kernel and she's the IGTK command struct. Her whole personality is MGMT_MCAST_KEY = 0x1f and honestly? iconic. πŸŽ€


🌸 NAME 🌸

struct iwl_mvm_mgmt_mcast_key_cmd β€” the IGTK command, aka MGMT_MCAST_KEY = 0x1f πŸ’…

Like, that's it, that's the whole vibe. She's a command struct and she knows it.


✨ SYNOPSIS ✨

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

struct iwl_mvm_mgmt_mcast_key_cmd {
    __le32 ctrl_flags;
    u8 igtk[32];
    __le32 key_id;
    __le32 sta_id;
    __le64 receive_seq_cnt;
 };

five fields, zero notes, she said "keep it clean" 🫢


πŸ¦‹ Members πŸ¦‹

okay bestie let's go field by field, we're doing this properly:

  • ctrl_flags β€” these are the control flags, and they're typed as enum iwl_sta_key_flag. so, y'know, key flag enum energy 🌈
  • igtk β€” the IGTK master key. that's the actual key material, a whole u8 array of 32 of them, living her life πŸŽ€
  • key_id β€” the key ID. short king. literally just the ID of the key πŸ’œ
  • sta_id β€” the station ID that support IGTK. (yes, that's the original wording and we're respecting it β€” the station that supports IGTK 🫢)
  • receive_seq_cnt β€” the initial RSC/PN that you need for the replay check. important!! it's the anti-replay starting point, do not skip her ⭐

πŸ”₯ SEE ALSO πŸ”₯

so this struct does not exist alone, she has a whole friend group, and the kernel file she hangs out in is:

./drivers/net/wireless/intel/iwlwifi/fw/api/sta.h

and here's the full squad, fr fr, all of them:

  • enum iwl_sta_flags(9)
  • enum iwl_sta_key_flag(9)
  • enum iwl_sta_modify_flag(9)
  • enum iwl_sta_mode(9)
  • enum iwl_sta_sleep_flag(9)
  • struct iwl_mvm_add_sta_cmd_v7(9)
  • enum iwl_sta_type(9)
  • struct iwl_mvm_add_sta_cmd(9)
  • struct iwl_mvm_add_sta_key_common(9)
  • struct iwl_mvm_add_sta_key_cmd_v1(9)
  • struct iwl_mvm_add_sta_key_cmd(9)
  • enum iwl_mvm_add_sta_rsp_status(9)
  • struct iwl_mvm_rm_sta_cmd(9)
  • struct iwl_mvm_mgmt_mcast_key_cmd_v1(9)
  • struct iwl_mvm_eosp_notification(9)

like, genuinely a whole group chat 😭 go read them, iykyk πŸ’€


ok one tiny heads up bestie: nothing dangerous here, but do keep in mind receive_seq_cnt is the replay check starting point β€” that's the security-relevant bit, so treat her with respect okay? πŸ‘‘

and that's the page!! 🧚 source is ./drivers/net/wireless/intel/i..., dated October 2026, and the header/footer keep serving that struct iwl_...cast_key_cmd(9) look. mwah, love u, go slay some wifi frames πŸ’–πŸ’…πŸŒΈ

πŸ“¦ where this page comes from