STRUCT IWL_MVM_ADD_STA_KEY_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay bestie, so this is a page from the Kernel API Manual and it's literally all about adding and modifying a station key πŸ’… yes, that kind of key, the crypto kind, not your house key, not your car key, none of that.


✨ NAME ✨

struct iwl_mvm_add_sta_key_cmd β€” add/modify sta key πŸ”‘

like it's giving "one struct to rule them all" and honestly? it ate.


🌸 SYNOPSIS 🌸

here's the whole vibe, character for character, no cap:

struct iwl_mvm_add_sta_key_cmd {
    struct iwl_mvm_add_sta_key_common common;
    __le64 rx_mic_key;
    __le64 tx_mic_key;
    __le64 transmit_seq_cnt;
 };

look at her. four fields. main character energy fr fr 🫢


πŸŽ€ Members πŸŽ€

okay so let's meet the cast πŸ’–

  • common β€” peep struct iwl_mvm_add_sta_key_common for the deets on this one, she's the shared queen of the group πŸ‘‘
  • rx_mic_key β€” the TKIP RX unicast or multicast key 🧚 like, receive-side MIC, ifykyk
  • tx_mic_key β€” the TKIP TX key πŸ’« transmit side, doing her thing
  • transmit_seq_cnt β€” TSC, aka the transmit packet number πŸ”’ the little counter that keeps track, obsessed

⭐ Note ⭐

ngl this is the important bit, so listen up bestie πŸ™ˆ

This struct is used for both v2 and v3 β€” the difference being in the way the common.rx_secur_seq_cnt is used: in v2 that's the strange hole format, in v3 it's just a u64. literally that's the whole plot twist πŸ’€


🌈 SEE ALSO 🌈

the whole friend group, all of them, no one left out πŸ«ΆπŸ’œ

Kernel file ./drivers/net/wireless/intel/iwlwifi/fw/api/sta.h also: 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), 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_mgmt_mcast_key_cmd(9), struct iwl_mvm_eosp_notification(9)


and that's the whole page, bestie πŸŽ€ sourced from ./drivers/net/wireless/intel/i..., dated October 2026, filed under struct iwl_m..._sta_key_cmd(9) β€” slay, go read your kernel headers, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from