ENUM IWL_STA_KEY_FLAG(9)
β¨ 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 encryptionalgorithmivalue (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 1Xmode). 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 meSTA_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 amulticalkey (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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms