ENUM IWL_STA_KEY_FLAG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum iwl_sta_key_flag ✨

okay bestie, welcome to the enum iwl_sta_key_flag page from the Kernel API Manual β€” yes that's the whole title, she's a mouthful, but she's iconic. This is all about the key flags for the ADD_STA host command, and honestly? it's giving "small enum, big responsibilities" πŸ’…


🌸 NAME 🌸

enum iwl_sta_key_flag β€” the key flags for the ADD_STA host command, periodt.


πŸŽ€ SYNOPSIS πŸŽ€

literally the whole enum, look at her:

enum iwl_sta_key_flag {
    STA_KEY_FLG_NO_ENC ,
    STA_KEY_FLG_WEP ,
    STA_KEY_FLG_CCM ,
    STA_KEY_FLG_TKIP ,
    STA_KEY_FLG_EXT ,
    STA_KEY_FLG_GCMP ,
    STA_KEY_FLG_CMAC ,
    STA_KEY_FLG_ENC_UNKNOWN ,
    STA_KEY_FLG_EN_MSK ,
    STA_KEY_FLG_WEP_KEY_MAP ,
    STA_KEY_FLG_AMSDU_SPP ,
    STA_KEY_FLG_KEYID_POS ,
    STA_KEY_FLG_KEYID_MSK ,
    STA_KEY_NOT_VALID ,
    STA_KEY_FLG_WEP_13BYTES ,
    STA_KEY_FLG_KEY_32BYTES ,
    STA_KEY_MULTICAST ,
    STA_KEY_MFP

};

πŸ¦‹ CONSTANTS πŸ¦‹

okay so here's the whole cast, one by one, no skips, no cuts 🌈

  • STA_KEY_FLG_NO_ENC β€” no encryption. that's it, that's the vibe, absolutely nothing is scrambled here πŸ™ˆ
  • STA_KEY_FLG_WEP β€” WEP encryption algorithm.
  • STA_KEY_FLG_CCM β€” CCMP encryption algorithm.
  • STA_KEY_FLG_TKIP β€” TKIP encryption algorithm.
  • STA_KEY_FLG_EXT β€” extended cipher algorithm, and lowkey this one depends on the FW support, so don't come for her if the firmware's not feeling it 😭
  • STA_KEY_FLG_GCMP β€” GCMP encryption algorithm.
  • STA_KEY_FLG_CMAC β€” CMAC encryption algorithm.
  • STA_KEY_FLG_ENC_UNKNOWN β€” unknown encryption algorithm. mystery era πŸ•΅οΈ
  • STA_KEY_FLG_EN_MSK β€” the mask for the encryption algorithmi value (not my typo, she came like that, we respect her πŸ’€)
  • STA_KEY_FLG_WEP_KEY_MAP β€” wep is either a group key (0 β€” legacy WEP) or from the station info array (1 β€” n 1X mode). pick a lane bestie 🫢
  • STA_KEY_FLG_AMSDU_SPP β€” SPP (signaling and payload protected) A-MSDU. protected and signaling, she does both πŸ’…
  • STA_KEY_FLG_KEYID_POS β€” the key index bit position.
  • STA_KEY_FLG_KEYID_MSK β€” the index of the key.
  • STA_KEY_NOT_VALID β€” key is invalid. 🚩 not me trusting an invalid key, couldn't be me
  • STA_KEY_FLG_WEP_13BYTES β€” set for a 13 byte WEP key.
  • STA_KEY_FLG_KEY_32BYTES β€” for a non-wep key, set for a 32 byte key.
  • STA_KEY_MULTICAST β€” set for a multical key (again, her spelling, I'm just the messenger πŸ“) β€” you know, multicast group key energy, main character of the group chat πŸ‘‘
  • STA_KEY_MFP β€” key is used for Management Frame Protection. protection?! we love to see it ✨

πŸ’œ SEE ALSO πŸ’œ

okay the friend group is huge, brace yourself: the Kernel file ./drivers/net/wireless/intel/iwlwifi/fw/api/sta.h and the enum iwl_sta_flags(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_mgmt_mcast_key_cmd(9), and last but never least, struct iwl_mvm_eosp_notification(9). go read them, iykyk πŸ’–


ngl bestie, that's the whole page. every flag, every mask, every byte count, nothing dropped 🧚

and that's a wrap! this lil page lives over at ./drivers/net/wireless/intel/i... and it's dated October 2026 β€” so yeah, she's from the future, we stan a forward-thinking queen ⭐ mwah, go forth and encrypt responsibly πŸ”₯

πŸ“¦ where this page comes from