summaryrefslogtreecommitdiff
path: root/net/mac80211/michael.h
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-05-14 16:26:17 -0700
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:47:48 -0400
commit1b19ca396621dcba573b20d4625526f5a460c886 (patch)
tree4317d92f79874dfdb4b971654d55425623be688b /net/mac80211/michael.h
parent1bd3dff549537d3d9b92d0b284f4cc2be264a56d (diff)
downloadkernel-common-1b19ca396621dcba573b20d4625526f5a460c886.tar.gz
kernel-common-1b19ca396621dcba573b20d4625526f5a460c886.tar.bz2
kernel-common-1b19ca396621dcba573b20d4625526f5a460c886.zip
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.h4
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 @@
#define MICHAEL_MIC_LEN 8
+struct michael_mic_ctx {
+ u32 l, r;
+};
+
void michael_mic(u8 *key, u8 *da, u8 *sa, u8 priority,
u8 *data, size_t data_len, u8 *mic);