diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-07-13 13:50:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-15 13:38:32 -0400 |
commit | 8bca5d815311f53ada13b62f5e590df40fef317e (patch) | |
tree | 7cd6d9d7804c0aa86e1bf4226c4a8196acc3a5c7 /include/net | |
parent | 66760eac005d569393bac34136bcbb8af55d8a5a (diff) |
mac80211: allow driver access to TKIP RX P1K
When the driver wants to pre-program the TKIP
RX phase 1 key, it needs to be able to obtain
it for the peer's TA. Add API to allow it to
generate it.
The generation uses a dummy on-stack context
since it doesn't know the RX queue.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/mac80211.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index ea2c8c36477c..9e91b4f47843 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -2613,6 +2613,20 @@ static inline void ieee80211_get_tkip_p1k(struct ieee80211_key_conf *keyconf, | |||
2613 | } | 2613 | } |
2614 | 2614 | ||
2615 | /** | 2615 | /** |
2616 | * ieee80211_get_tkip_rx_p1k - get a TKIP phase 1 key for RX | ||
2617 | * | ||
2618 | * This function returns the TKIP phase 1 key for the given IV32 | ||
2619 | * and transmitter address. | ||
2620 | * | ||
2621 | * @keyconf: the parameter passed with the set key | ||
2622 | * @ta: TA that will be used with the key | ||
2623 | * @iv32: IV32 to get the P1K for | ||
2624 | * @p1k: a buffer to which the key will be written, as 5 u16 values | ||
2625 | */ | ||
2626 | void ieee80211_get_tkip_rx_p1k(struct ieee80211_key_conf *keyconf, | ||
2627 | const u8 *ta, u32 iv32, u16 *p1k); | ||
2628 | |||
2629 | /** | ||
2616 | * ieee80211_get_tkip_p2k - get a TKIP phase 2 key | 2630 | * ieee80211_get_tkip_p2k - get a TKIP phase 2 key |
2617 | * | 2631 | * |
2618 | * This function computes the TKIP RC4 key for the IV values | 2632 | * This function computes the TKIP RC4 key for the IV values |