diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2008-06-21 10:02:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-27 09:09:17 -0400 |
commit | ffd7891dc909b3648e87f7cf8f84a6dc12fc1cc6 (patch) | |
tree | 563c41b3bce49effd3544081cb54ba5ab6fdfb15 /include | |
parent | 61243d8e79de67d703b192fae2c4ab80fc0fac34 (diff) |
mac80211: Let drivers have access to TKIP key offets for TX and RX MIC
Some drivers may want to to use the TKIP key offsets for TX and RX
MIC so lets move this out. Lets also clear up a bit how this is used
internally in mac80211.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nl80211.h | 5 | ||||
-rw-r--r-- | include/net/mac80211.h | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index aa8411e2a160..2be7c63bc0f2 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -241,7 +241,10 @@ enum nl80211_attrs { | |||
241 | NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 | 241 | NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 |
242 | }; | 242 | }; |
243 | 243 | ||
244 | #define NL80211_MAX_SUPP_RATES 32 | 244 | #define NL80211_MAX_SUPP_RATES 32 |
245 | #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 | ||
246 | #define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16 | ||
247 | #define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24 | ||
245 | 248 | ||
246 | /** | 249 | /** |
247 | * enum nl80211_iftype - (virtual) interface types | 250 | * enum nl80211_iftype - (virtual) interface types |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 7ab4ff6159a2..19f1e412a0f0 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -595,7 +595,12 @@ enum ieee80211_key_flags { | |||
595 | * @flags: key flags, see &enum ieee80211_key_flags. | 595 | * @flags: key flags, see &enum ieee80211_key_flags. |
596 | * @keyidx: the key index (0-3) | 596 | * @keyidx: the key index (0-3) |
597 | * @keylen: key material length | 597 | * @keylen: key material length |
598 | * @key: key material | 598 | * @key: key material. For ALG_TKIP the key is encoded as a 256-bit (32 byte) |
599 | * data block: | ||
600 | * - Temporal Encryption Key (128 bits) | ||
601 | * - Temporal Authenticator Tx MIC Key (64 bits) | ||
602 | * - Temporal Authenticator Rx MIC Key (64 bits) | ||
603 | * | ||
599 | */ | 604 | */ |
600 | struct ieee80211_key_conf { | 605 | struct ieee80211_key_conf { |
601 | enum ieee80211_key_alg alg; | 606 | enum ieee80211_key_alg alg; |