diff options
author | Charles Clément <caratorn@gmail.com> | 2010-06-24 14:02:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-06-24 17:23:17 -0400 |
commit | 0f4c60d61e9c10a0733eacd650c101189bdf75cd (patch) | |
tree | 88cd18c474739648e45ec68e303c0f7351ee546c /drivers/staging/vt6655/hostap.c | |
parent | 17701d14b613b8495cdd8b803c22d3f33d1face8 (diff) |
Staging: vt6655: remove DWORD typedef
Replace all occurrences with unsigned long type, except for pointer fields that
should be u32 in packed structures and 8-byte-aligned 8 byte long structure
QWORD.
Thanks to Jiri Slaby for pointing out that simply replacing by unsigned long is
wrong on x86-64 arch.
Signed-off-by: Charles Clément <caratorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6655/hostap.c')
-rw-r--r-- | drivers/staging/vt6655/hostap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c index 8faeb6e8a2f..1c512cede3d 100644 --- a/drivers/staging/vt6655/hostap.c +++ b/drivers/staging/vt6655/hostap.c | |||
@@ -471,7 +471,7 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
471 | int param_len) | 471 | int param_len) |
472 | { | 472 | { |
473 | PSMgmtObject pMgmt = pDevice->pMgmt; | 473 | PSMgmtObject pMgmt = pDevice->pMgmt; |
474 | DWORD dwKeyIndex = 0; | 474 | unsigned long dwKeyIndex = 0; |
475 | BYTE abyKey[MAX_KEY_LEN]; | 475 | BYTE abyKey[MAX_KEY_LEN]; |
476 | BYTE abySeq[MAX_KEY_LEN]; | 476 | BYTE abySeq[MAX_KEY_LEN]; |
477 | NDIS_802_11_KEY_RSC KeyRSC; | 477 | NDIS_802_11_KEY_RSC KeyRSC; |
@@ -553,7 +553,7 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
553 | param->u.crypt.key_len | 553 | param->u.crypt.key_len |
554 | ); | 554 | ); |
555 | 555 | ||
556 | dwKeyIndex = (DWORD)(param->u.crypt.idx); | 556 | dwKeyIndex = (unsigned long)(param->u.crypt.idx); |
557 | if (param->u.crypt.flags & HOSTAP_CRYPT_FLAG_SET_TX_KEY) { | 557 | if (param->u.crypt.flags & HOSTAP_CRYPT_FLAG_SET_TX_KEY) { |
558 | pDevice->byKeyIndex = (BYTE)dwKeyIndex; | 558 | pDevice->byKeyIndex = (BYTE)dwKeyIndex; |
559 | pDevice->bTransmitKey = TRUE; | 559 | pDevice->bTransmitKey = TRUE; |