|
@@ -247,7 +247,9 @@ int KeybSetKey(struct vnt_private *pDevice, PSKeyManagement pTable,
|
|
|
if (uKeyLength == WLAN_WEP104_KEYLEN)
|
|
|
pKey->abyKey[15] |= 0x80;
|
|
|
}
|
|
|
- MACvSetKeyEntry(pDevice, pTable->KeyTable[i].wKeyCtl, i, uKeyIdx, pbyBSSID, (u32 *)pKey->abyKey);
|
|
|
+
|
|
|
+ MACvSetKeyEntry(pDevice, pTable->KeyTable[i].wKeyCtl, i, uKeyIdx,
|
|
|
+ pbyBSSID, pKey->abyKey);
|
|
|
|
|
|
if ((dwKeyIndex & USE_KEYRSC) == 0)
|
|
|
pKey->KeyRSC = 0; /* RSC set by NIC */
|
|
@@ -315,7 +317,9 @@ int KeybSetKey(struct vnt_private *pDevice, PSKeyManagement pTable,
|
|
|
if (uKeyLength == WLAN_WEP104_KEYLEN)
|
|
|
pKey->abyKey[15] |= 0x80;
|
|
|
}
|
|
|
- MACvSetKeyEntry(pDevice, pTable->KeyTable[j].wKeyCtl, j, uKeyIdx, pbyBSSID, (u32 *)pKey->abyKey);
|
|
|
+
|
|
|
+ MACvSetKeyEntry(pDevice, pTable->KeyTable[j].wKeyCtl, j, uKeyIdx,
|
|
|
+ pbyBSSID, pKey->abyKey);
|
|
|
|
|
|
if ((dwKeyIndex & USE_KEYRSC) == 0)
|
|
|
pKey->KeyRSC = 0; /* RSC set by NIC */
|
|
@@ -610,7 +614,9 @@ int KeybSetDefaultKey(struct vnt_private *pDevice, PSKeyManagement pTable,
|
|
|
pKey->abyKey[15] |= 0x80;
|
|
|
}
|
|
|
|
|
|
- MACvSetKeyEntry(pDevice, pTable->KeyTable[MAX_KEY_TABLE-1].wKeyCtl, MAX_KEY_TABLE-1, uKeyIdx, pTable->KeyTable[MAX_KEY_TABLE-1].abyBSSID, (u32 *) pKey->abyKey);
|
|
|
+ MACvSetKeyEntry(pDevice, pTable->KeyTable[MAX_KEY_TABLE-1].wKeyCtl,
|
|
|
+ MAX_KEY_TABLE-1, uKeyIdx,
|
|
|
+ pTable->KeyTable[MAX_KEY_TABLE-1].abyBSSID, pKey->abyKey);
|
|
|
|
|
|
if ((dwKeyIndex & USE_KEYRSC) == 0)
|
|
|
pKey->KeyRSC = 0; /* RSC set by NIC */
|
|
@@ -704,7 +710,8 @@ int KeybSetAllGroupKey(struct vnt_private *pDevice, PSKeyManagement pTable,
|
|
|
pKey->abyKey[15] |= 0x80;
|
|
|
}
|
|
|
|
|
|
- MACvSetKeyEntry(pDevice, pTable->KeyTable[i].wKeyCtl, i, uKeyIdx, pTable->KeyTable[i].abyBSSID, (u32 *) pKey->abyKey);
|
|
|
+ MACvSetKeyEntry(pDevice, pTable->KeyTable[i].wKeyCtl, i, uKeyIdx,
|
|
|
+ pTable->KeyTable[i].abyBSSID, pKey->abyKey);
|
|
|
|
|
|
if ((dwKeyIndex & USE_KEYRSC) == 0)
|
|
|
pKey->KeyRSC = 0; /* RSC set by NIC */
|