aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/michael.c
diff options
context:
space:
mode:
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 4e151e0caeb7..1fcdf38cf60c 100644
--- a/net/mac80211/michael.c
+++ b/net/mac80211/michael.c
@@ -6,7 +6,6 @@
6 * it under the terms of the GNU General Public License version 2 as 6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 */ 8 */
9
10#include <linux/types.h> 9#include <linux/types.h>
11#include <linux/bitops.h> 10#include <linux/bitops.h>
12#include <asm/unaligned.h> 11#include <asm/unaligned.h>
@@ -28,7 +27,7 @@ static void michael_block(struct michael_mic_ctx *mctx, u32 val)
28} 27}
29 28
30static void michael_mic_hdr(struct michael_mic_ctx *mctx, 29static void michael_mic_hdr(struct michael_mic_ctx *mctx,
31 u8 *key, u8 *da, u8 *sa, u8 priority) 30 const u8 *key, const u8 *da, const u8 *sa, u8 priority)
32{ 31{
33 mctx->l = get_unaligned_le32(key); 32 mctx->l = get_unaligned_le32(key);
34 mctx->r = get_unaligned_le32(key + 4); 33 mctx->r = get_unaligned_le32(key + 4);
@@ -44,8 +43,8 @@ static void michael_mic_hdr(struct michael_mic_ctx *mctx,
44 michael_block(mctx, priority); 43 michael_block(mctx, priority);
45} 44}
46 45
47void michael_mic(u8 *key, u8 *da, u8 *sa, u8 priority, 46void michael_mic(const u8 *key, const u8 *da, const u8 *sa, u8 priority,
48 u8 *data, size_t data_len, u8 *mic) 47 const u8 *data, size_t data_len, u8 *mic)
49{ 48{
50 u32 val; 49 u32 val;
51 size_t block, blocks, left; 50 size_t block, blocks, left;