aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211/michael.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-05-14 16:26:18 -0700
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:47:48 -0400
commita7b6f0c5558ad03281b8064d6a4ab2e124dea991 (patch)
tree2dcaade7792641a696597eb56197eb37a776a13c /net/mac80211/michael.c
parent1b19ca396621dcba573b20d4625526f5a460c886 (diff)
mac80211: add const, remove unused function, make one function static
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.c')
-rw-r--r--net/mac80211/michael.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/mac80211/michael.c b/net/mac80211/michael.c
index 4e151e0caeb..1fcdf38cf60 100644
--- a/net/mac80211/michael.c
+++ b/net/mac80211/michael.c
@@ -6,7 +6,6 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-
#include <linux/types.h>
#include <linux/bitops.h>
#include <asm/unaligned.h>
@@ -28,7 +27,7 @@ static void michael_block(struct michael_mic_ctx *mctx, u32 val)
}
static void michael_mic_hdr(struct michael_mic_ctx *mctx,
- u8 *key, u8 *da, u8 *sa, u8 priority)
+ const u8 *key, const u8 *da, const u8 *sa, u8 priority)
{
mctx->l = get_unaligned_le32(key);
mctx->r = get_unaligned_le32(key + 4);
@@ -44,8 +43,8 @@ static void michael_mic_hdr(struct michael_mic_ctx *mctx,
michael_block(mctx, priority);
}
-void michael_mic(u8 *key, u8 *da, u8 *sa, u8 priority,
- u8 *data, size_t data_len, u8 *mic)
+void michael_mic(const u8 *key, const u8 *da, const u8 *sa, u8 priority,
+ const u8 *data, size_t data_len, u8 *mic)
{
u32 val;
size_t block, blocks, left;