'\" t .\" Title: struct ieee80211_key_conf .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Advanced driver interface .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "STRUCT IEEE80211_KEY" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Advanced driver interface" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_ieee80211_key_conf \- key information .SH "SYNOPSIS" .sp .nf struct ieee80211_key_conf { u32 cipher; u8 icv_len; u8 iv_len; u8 hw_key_idx; u8 flags; s8 keyidx; u8 keylen; u8 key[0]; }; .fi .SH "MEMBERS" .PP cipher .RS 4 The key\*(Aqs cipher suite selector\&. .RE .PP icv_len .RS 4 The ICV length for this key type .RE .PP iv_len .RS 4 The IV length for this key type .RE .PP hw_key_idx .RS 4 To be set by the driver, this is the key index the driver wants to be given when a frame is transmitted and needs to be encrypted in hardware\&. .RE .PP flags .RS 4 key flags, see enum ieee80211_key_flags\&. .RE .PP keyidx .RS 4 the key index (0\-3) .RE .PP keylen .RS 4 key material length .RE .PP key[0] .RS 4 key material\&. For ALG_TKIP the key is encoded as a 256\-bit (32 byte) .RE .SH "DESCRIPTION" .PP .PP This key information is given by mac80211 to the driver by the \fBset_key\fR callback in struct ieee80211_ops\&. .SH "DATA BLOCK" .PP \- Temporal Encryption Key (128 bits) \- Temporal Authenticator Tx MIC Key (64 bits) \- Temporal Authenticator Rx MIC Key (64 bits) .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br