1STRUCT IEEE80211_KEY(9) Advanced driver interface STRUCT IEEE80211_KEY(9)
2
3
4
6 struct_ieee80211_key_conf - key information
7
9 struct ieee80211_key_conf {
10 atomic64_t tx_pn;
11 u32 cipher;
12 u8 icv_len;
13 u8 iv_len;
14 u8 hw_key_idx;
15 u8 flags;
16 s8 keyidx;
17 u8 keylen;
18 u8 key[0];
19 };
20
22 tx_pn
23 PN used for TX keys, may be used by the driver as well if it needs
24 to do software PN assignment by itself (e.g. due to TSO)
25
26 cipher
27 The key's cipher suite selector.
28
29 icv_len
30 The ICV length for this key type
31
32 iv_len
33 The IV length for this key type
34
35 hw_key_idx
36 To be set by the driver, this is the key index the driver wants to
37 be given when a frame is transmitted and needs to be encrypted in
38 hardware.
39
40 flags
41 key flags, see enum ieee80211_key_flags.
42
43 keyidx
44 the key index (0-3)
45
46 keylen
47 key material length
48
49 key[0]
50 key material. For ALG_TKIP the key is encoded as a 256-bit (32
51 byte)
52
54 This key information is given by mac80211 to the driver by the set_key
55 callback in struct ieee80211_ops.
56
58 - Temporal Encryption Key (128 bits) - Temporal Authenticator Tx MIC
59 Key (64 bits) - Temporal Authenticator Rx MIC Key (64 bits)
60
62 Johannes Berg <johannes@sipsolutions.net>
63 Author.
64
66Kernel Hackers Manual 3.10 June 2019 STRUCT IEEE80211_KEY(9)