staging:vt6655:key: Whitespace cleanups
Neatening only. git diff -w shows no differences. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6da16f9655
commit
d82adcabc6
2 changed files with 608 additions and 608 deletions
File diff suppressed because it is too large
Load diff
|
@ -57,39 +57,39 @@
|
||||||
|
|
||||||
typedef struct tagSKeyItem
|
typedef struct tagSKeyItem
|
||||||
{
|
{
|
||||||
bool bKeyValid;
|
bool bKeyValid;
|
||||||
unsigned long uKeyLength;
|
unsigned long uKeyLength;
|
||||||
unsigned char abyKey[MAX_KEY_LEN];
|
unsigned char abyKey[MAX_KEY_LEN];
|
||||||
QWORD KeyRSC;
|
QWORD KeyRSC;
|
||||||
unsigned long dwTSC47_16;
|
unsigned long dwTSC47_16;
|
||||||
unsigned short wTSC15_0;
|
unsigned short wTSC15_0;
|
||||||
unsigned char byCipherSuite;
|
unsigned char byCipherSuite;
|
||||||
unsigned char byReserved0;
|
unsigned char byReserved0;
|
||||||
unsigned long dwKeyIndex;
|
unsigned long dwKeyIndex;
|
||||||
void *pvKeyTable;
|
void *pvKeyTable;
|
||||||
} SKeyItem, *PSKeyItem; //64
|
} SKeyItem, *PSKeyItem; //64
|
||||||
|
|
||||||
typedef struct tagSKeyTable
|
typedef struct tagSKeyTable
|
||||||
{
|
{
|
||||||
unsigned char abyBSSID[ETH_ALEN]; //6
|
unsigned char abyBSSID[ETH_ALEN]; //6
|
||||||
unsigned char byReserved0[2]; //8
|
unsigned char byReserved0[2]; //8
|
||||||
SKeyItem PairwiseKey;
|
SKeyItem PairwiseKey;
|
||||||
SKeyItem GroupKey[MAX_GROUP_KEY]; //64*5 = 320, 320+8=328
|
SKeyItem GroupKey[MAX_GROUP_KEY]; //64*5 = 320, 320+8=328
|
||||||
unsigned long dwGTKeyIndex; // GroupTransmitKey Index
|
unsigned long dwGTKeyIndex; // GroupTransmitKey Index
|
||||||
bool bInUse;
|
bool bInUse;
|
||||||
//2006-1116-01,<Modify> by NomadZhao
|
//2006-1116-01,<Modify> by NomadZhao
|
||||||
//unsigned short wKeyCtl;
|
//unsigned short wKeyCtl;
|
||||||
//bool bSoftWEP;
|
//bool bSoftWEP;
|
||||||
bool bSoftWEP;
|
bool bSoftWEP;
|
||||||
unsigned short wKeyCtl; // for address of wKeyCtl at align 4
|
unsigned short wKeyCtl; // for address of wKeyCtl at align 4
|
||||||
|
|
||||||
unsigned char byReserved1[6];
|
unsigned char byReserved1[6];
|
||||||
} SKeyTable, *PSKeyTable; //348
|
} SKeyTable, *PSKeyTable; //348
|
||||||
|
|
||||||
typedef struct tagSKeyManagement
|
typedef struct tagSKeyManagement
|
||||||
{
|
{
|
||||||
SKeyTable KeyTable[MAX_KEY_TABLE];
|
SKeyTable KeyTable[MAX_KEY_TABLE];
|
||||||
} SKeyManagement, * PSKeyManagement;
|
} SKeyManagement, *PSKeyManagement;
|
||||||
|
|
||||||
/*--------------------- Export Types ------------------------------*/
|
/*--------------------- Export Types ------------------------------*/
|
||||||
|
|
||||||
|
@ -104,81 +104,81 @@ typedef struct tagSKeyManagement
|
||||||
void KeyvInitTable(PSKeyManagement pTable, unsigned long dwIoBase);
|
void KeyvInitTable(PSKeyManagement pTable, unsigned long dwIoBase);
|
||||||
|
|
||||||
bool KeybGetKey(
|
bool KeybGetKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned char *pbyBSSID,
|
unsigned char *pbyBSSID,
|
||||||
unsigned long dwKeyIndex,
|
unsigned long dwKeyIndex,
|
||||||
PSKeyItem *pKey
|
PSKeyItem *pKey
|
||||||
);
|
);
|
||||||
|
|
||||||
bool KeybSetKey(
|
bool KeybSetKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned char *pbyBSSID,
|
unsigned char *pbyBSSID,
|
||||||
unsigned long dwKeyIndex,
|
unsigned long dwKeyIndex,
|
||||||
unsigned long uKeyLength,
|
unsigned long uKeyLength,
|
||||||
PQWORD pKeyRSC,
|
PQWORD pKeyRSC,
|
||||||
unsigned char *pbyKey,
|
unsigned char *pbyKey,
|
||||||
unsigned char byKeyDecMode,
|
unsigned char byKeyDecMode,
|
||||||
unsigned long dwIoBase,
|
unsigned long dwIoBase,
|
||||||
unsigned char byLocalID
|
unsigned char byLocalID
|
||||||
);
|
);
|
||||||
|
|
||||||
bool KeybSetDefaultKey(
|
bool KeybSetDefaultKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned long dwKeyIndex,
|
unsigned long dwKeyIndex,
|
||||||
unsigned long uKeyLength,
|
unsigned long uKeyLength,
|
||||||
PQWORD pKeyRSC,
|
PQWORD pKeyRSC,
|
||||||
unsigned char *pbyKey,
|
unsigned char *pbyKey,
|
||||||
unsigned char byKeyDecMode,
|
unsigned char byKeyDecMode,
|
||||||
unsigned long dwIoBase,
|
unsigned long dwIoBase,
|
||||||
unsigned char byLocalID
|
unsigned char byLocalID
|
||||||
);
|
);
|
||||||
|
|
||||||
bool KeybRemoveKey(
|
bool KeybRemoveKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned char *pbyBSSID,
|
unsigned char *pbyBSSID,
|
||||||
unsigned long dwKeyIndex,
|
unsigned long dwKeyIndex,
|
||||||
unsigned long dwIoBase
|
unsigned long dwIoBase
|
||||||
);
|
);
|
||||||
|
|
||||||
bool KeybGetTransmitKey(
|
bool KeybGetTransmitKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned char *pbyBSSID,
|
unsigned char *pbyBSSID,
|
||||||
unsigned long dwKeyType,
|
unsigned long dwKeyType,
|
||||||
PSKeyItem *pKey
|
PSKeyItem *pKey
|
||||||
);
|
);
|
||||||
|
|
||||||
bool KeybCheckPairewiseKey(
|
bool KeybCheckPairewiseKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
PSKeyItem *pKey
|
PSKeyItem *pKey
|
||||||
);
|
);
|
||||||
|
|
||||||
bool KeybRemoveAllKey(
|
bool KeybRemoveAllKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned char *pbyBSSID,
|
unsigned char *pbyBSSID,
|
||||||
unsigned long dwIoBase
|
unsigned long dwIoBase
|
||||||
);
|
);
|
||||||
|
|
||||||
void KeyvRemoveWEPKey(
|
void KeyvRemoveWEPKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned long dwKeyIndex,
|
unsigned long dwKeyIndex,
|
||||||
unsigned long dwIoBase
|
unsigned long dwIoBase
|
||||||
);
|
);
|
||||||
|
|
||||||
void KeyvRemoveAllWEPKey(
|
void KeyvRemoveAllWEPKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned long dwIoBase
|
unsigned long dwIoBase
|
||||||
);
|
);
|
||||||
|
|
||||||
bool KeybSetAllGroupKey (
|
bool KeybSetAllGroupKey(
|
||||||
PSKeyManagement pTable,
|
PSKeyManagement pTable,
|
||||||
unsigned long dwKeyIndex,
|
unsigned long dwKeyIndex,
|
||||||
unsigned long uKeyLength,
|
unsigned long uKeyLength,
|
||||||
PQWORD pKeyRSC,
|
PQWORD pKeyRSC,
|
||||||
unsigned char *pbyKey,
|
unsigned char *pbyKey,
|
||||||
unsigned char byKeyDecMode,
|
unsigned char byKeyDecMode,
|
||||||
unsigned long dwIoBase,
|
unsigned long dwIoBase,
|
||||||
unsigned char byLocalID
|
unsigned char byLocalID
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // __KEY_H__
|
#endif // __KEY_H__
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue