aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/key.c
diff options
context:
space:
mode:
authorJim Lieb <lieb@canonical.com>2009-08-12 14:54:10 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:08 -0700
commit51b6d9c299f10780b3093d3748257ecc4ae7340d (patch)
tree9dee0d32ff56c2bd89ae63a9e187b9e0fb0a1fc5 /drivers/staging/vt6655/key.c
parentStaging: vt665x: Clean up include files, Part 2 (diff)
downloadlinux-dev-51b6d9c299f10780b3093d3748257ecc4ae7340d.tar.xz
linux-dev-51b6d9c299f10780b3093d3748257ecc4ae7340d.zip
Staging: vt665x: Remove umem.h Part 1
Remove references to umem.h macros and refer directly to memcpy functions. Delete the include file. Signed-off-by: Jim Lieb <lieb@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6655/key.c')
-rw-r--r--drivers/staging/vt6655/key.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/drivers/staging/vt6655/key.c b/drivers/staging/vt6655/key.c
index e63126f0c60a..781a371e79a9 100644
--- a/drivers/staging/vt6655/key.c
+++ b/drivers/staging/vt6655/key.c
@@ -39,7 +39,6 @@
#include "tmacro.h"
#include "tbit.h"
#include "key.h"
-#include "umem.h"
#include "mac.h"
/*--------------------- Static Definitions -------------------------*/
@@ -247,7 +246,7 @@ BOOL KeybSetKey (
pKey->uKeyLength = uKeyLength;
pKey->dwKeyIndex = dwKeyIndex;
pKey->byCipherSuite = byKeyDecMode;
- MEMvCopy(pKey->abyKey, pbyKey, uKeyLength);
+ memcpy(pKey->abyKey, pbyKey, uKeyLength);
if (byKeyDecMode == KEY_CTL_WEP) {
if (uKeyLength == WLAN_WEP40_KEYLEN)
pKey->abyKey[15] &= 0x7F;
@@ -258,10 +257,10 @@ BOOL KeybSetKey (
if ((dwKeyIndex & USE_KEYRSC) == 0) {
// RSC set by NIC
- ZERO_MEMORY(&(pKey->KeyRSC), sizeof(QWORD));
+ memset(&(pKey->KeyRSC), 0, sizeof(QWORD));
}
else {
- MEMvCopy(&(pKey->KeyRSC), pKeyRSC, sizeof(QWORD));
+ memcpy(&(pKey->KeyRSC), pKeyRSC, sizeof(QWORD));
}
pKey->dwTSC47_16 = 0;
pKey->wTSC15_0 = 0;
@@ -283,7 +282,7 @@ BOOL KeybSetKey (
}
}
if (j < (MAX_KEY_TABLE-1)) {
- MEMvCopy(pTable->KeyTable[j].abyBSSID,pbyBSSID,U_ETHER_ADDR_LEN);
+ memcpy(pTable->KeyTable[j].abyBSSID,pbyBSSID,U_ETHER_ADDR_LEN);
pTable->KeyTable[j].bInUse = TRUE;
if ((dwKeyIndex & PAIRWISE_KEY) != 0) {
// Pairwise key
@@ -312,7 +311,7 @@ BOOL KeybSetKey (
pKey->uKeyLength = uKeyLength;
pKey->dwKeyIndex = dwKeyIndex;
pKey->byCipherSuite = byKeyDecMode;
- MEMvCopy(pKey->abyKey, pbyKey, uKeyLength);
+ memcpy(pKey->abyKey, pbyKey, uKeyLength);
if (byKeyDecMode == KEY_CTL_WEP) {
if (uKeyLength == WLAN_WEP40_KEYLEN)
pKey->abyKey[15] &= 0x7F;
@@ -323,10 +322,10 @@ BOOL KeybSetKey (
if ((dwKeyIndex & USE_KEYRSC) == 0) {
// RSC set by NIC
- ZERO_MEMORY(&(pKey->KeyRSC), sizeof(QWORD));
+ memset(&(pKey->KeyRSC), 0, sizeof(QWORD));
}
else {
- MEMvCopy(&(pKey->KeyRSC), pKeyRSC, sizeof(QWORD));
+ memcpy(&(pKey->KeyRSC), pKeyRSC, sizeof(QWORD));
}
pKey->dwTSC47_16 = 0;
pKey->wTSC15_0 = 0;
@@ -688,7 +687,7 @@ BOOL KeybSetDefaultKey (
pKey->uKeyLength = uKeyLength;
pKey->dwKeyIndex = dwKeyIndex;
pKey->byCipherSuite = byKeyDecMode;
- MEMvCopy(pKey->abyKey, pbyKey, uKeyLength);
+ memcpy(pKey->abyKey, pbyKey, uKeyLength);
if (byKeyDecMode == KEY_CTL_WEP) {
if (uKeyLength == WLAN_WEP40_KEYLEN)
pKey->abyKey[15] &= 0x7F;
@@ -699,9 +698,9 @@ BOOL KeybSetDefaultKey (
if ((dwKeyIndex & USE_KEYRSC) == 0) {
// RSC set by NIC
- ZERO_MEMORY(&(pKey->KeyRSC), sizeof(QWORD));
+ memset(&(pKey->KeyRSC), 0, sizeof(QWORD));
} else {
- MEMvCopy(&(pKey->KeyRSC), pKeyRSC, sizeof(QWORD));
+ memcpy(&(pKey->KeyRSC), pKeyRSC, sizeof(QWORD));
}
pKey->dwTSC47_16 = 0;
pKey->wTSC15_0 = 0;
@@ -787,7 +786,7 @@ BOOL KeybSetAllGroupKey (
pKey->uKeyLength = uKeyLength;
pKey->dwKeyIndex = dwKeyIndex;
pKey->byCipherSuite = byKeyDecMode;
- MEMvCopy(pKey->abyKey, pbyKey, uKeyLength);
+ memcpy(pKey->abyKey, pbyKey, uKeyLength);
if (byKeyDecMode == KEY_CTL_WEP) {
if (uKeyLength == WLAN_WEP40_KEYLEN)
pKey->abyKey[15] &= 0x7F;
@@ -798,10 +797,10 @@ BOOL KeybSetAllGroupKey (
if ((dwKeyIndex & USE_KEYRSC) == 0) {
// RSC set by NIC
- ZERO_MEMORY(&(pKey->KeyRSC), sizeof(QWORD));
+ memset(&(pKey->KeyRSC), 0, sizeof(QWORD));
}
else {
- MEMvCopy(&(pKey->KeyRSC), pKeyRSC, sizeof(QWORD));
+ memcpy(&(pKey->KeyRSC), pKeyRSC, sizeof(QWORD));
}
pKey->dwTSC47_16 = 0;
pKey->wTSC15_0 = 0;