mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Pekka Enberg](/assets/img/avatar_default.png)
This patch moves #includes from sysdef.h and common.h to the files which actually need them. This makes the dependencies less complex and allows us to move code around much easily. Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
37 lines
714 B
C
37 lines
714 B
C
#ifndef __WINBOND_DS_TKIP_H
|
|
#define __WINBOND_DS_TKIP_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
// Rotation functions on 32 bit values
|
|
#define ROL32( A, n ) \
|
|
( ((A) << (n)) | ( ((A)>>(32-(n))) & ( (1UL << (n)) - 1 ) ) )
|
|
|
|
#define ROR32( A, n ) ROL32( (A), 32-(n) )
|
|
|
|
|
|
typedef struct tkip
|
|
{
|
|
u32 K0, K1; // Key
|
|
union
|
|
{
|
|
struct // Current state
|
|
{
|
|
u32 L;
|
|
u32 R;
|
|
};
|
|
u8 LR[8];
|
|
};
|
|
union
|
|
{
|
|
u32 M; // Message accumulator (single word)
|
|
u8 Mb[4];
|
|
};
|
|
s32 bytes_in_M; // # bytes in M
|
|
} tkip_t;
|
|
|
|
//void _append_data( u8 *pData, u16 size, tkip_t *p );
|
|
void Mds_MicGet( void* adapter, void* pRxLayer1, u8 *pKey, u8 *pMic );
|
|
void Mds_MicFill( void* adapter, void* pDes, u8 *XmitBufAddress );
|
|
|
|
#endif
|