diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-04-20 12:12:41 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-05-06 07:29:59 -0400 |
commit | 9352c19f639354f093cb5457315c01bcb94aa82a (patch) | |
tree | 6265793a17841220f692b0becf86bee0d2bd9f6f /net/mac80211/driver-ops.h | |
parent | f603f1f342547b597450b9d1e1e00b3e07c6e41b (diff) |
mac80211: extend get_tkip_seq to all keys
Extend the function to read the TKIP IV32/IV16 to read the IV/PN for
all ciphers in order to allow drivers with full hardware crypto to
properly support this.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 26e1ca8a474a..c01e681b90fb 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -417,12 +417,13 @@ static inline int drv_get_stats(struct ieee80211_local *local, | |||
417 | return ret; | 417 | return ret; |
418 | } | 418 | } |
419 | 419 | ||
420 | static inline void drv_get_tkip_seq(struct ieee80211_local *local, | 420 | static inline void drv_get_key_seq(struct ieee80211_local *local, |
421 | u8 hw_key_idx, u32 *iv32, u16 *iv16) | 421 | struct ieee80211_key *key, |
422 | struct ieee80211_key_seq *seq) | ||
422 | { | 423 | { |
423 | if (local->ops->get_tkip_seq) | 424 | if (local->ops->get_key_seq) |
424 | local->ops->get_tkip_seq(&local->hw, hw_key_idx, iv32, iv16); | 425 | local->ops->get_key_seq(&local->hw, &key->conf, seq); |
425 | trace_drv_get_tkip_seq(local, hw_key_idx, iv32, iv16); | 426 | trace_drv_get_key_seq(local, &key->conf); |
426 | } | 427 | } |
427 | 428 | ||
428 | static inline int drv_set_frag_threshold(struct ieee80211_local *local, | 429 | static inline int drv_set_frag_threshold(struct ieee80211_local *local, |