diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-05-14 19:26:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:47:48 -0400 |
commit | 1b19ca396621dcba573b20d4625526f5a460c886 (patch) | |
tree | 4317d92f79874dfdb4b971654d55425623be688b /net/mac80211/michael.h | |
parent | 1bd3dff549537d3d9b92d0b284f4cc2be264a56d (diff) |
mac80211: introduce struct michael_mic_ctx and static helpers
Replace the existing macro with a static function, significantly shrinks the
size of the produced object file.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/michael.h')
-rw-r--r-- | net/mac80211/michael.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/michael.h b/net/mac80211/michael.h index 2e6aebabeea1..7d5707bf8843 100644 --- a/net/mac80211/michael.h +++ b/net/mac80211/michael.h | |||
@@ -14,6 +14,10 @@ | |||
14 | 14 | ||
15 | #define MICHAEL_MIC_LEN 8 | 15 | #define MICHAEL_MIC_LEN 8 |
16 | 16 | ||
17 | struct michael_mic_ctx { | ||
18 | u32 l, r; | ||
19 | }; | ||
20 | |||
17 | void michael_mic(u8 *key, u8 *da, u8 *sa, u8 priority, | 21 | void michael_mic(u8 *key, u8 *da, u8 *sa, u8 priority, |
18 | u8 *data, size_t data_len, u8 *mic); | 22 | u8 *data, size_t data_len, u8 *mic); |
19 | 23 | ||