|
@@ -174,7 +174,7 @@ BOOL KeybGetKey(PSKeyManagement pTable, PBYTE pbyBSSID, DWORD dwKeyIndex,
|
|
|
*pKey = NULL;
|
|
|
for (i=0;i<MAX_KEY_TABLE;i++) {
|
|
|
if ((pTable->KeyTable[i].bInUse == TRUE) &&
|
|
|
- IS_ETH_ADDRESS_EQUAL(pTable->KeyTable[i].abyBSSID,pbyBSSID)) {
|
|
|
+ !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) {
|
|
|
if (dwKeyIndex == 0xFFFFFFFF) {
|
|
|
if (pTable->KeyTable[i].PairwiseKey.bKeyValid == TRUE) {
|
|
|
*pKey = &(pTable->KeyTable[i].PairwiseKey);
|
|
@@ -245,7 +245,7 @@ BOOL KeybSetKey(
|
|
|
j = i;
|
|
|
}
|
|
|
if ((pTable->KeyTable[i].bInUse == TRUE) &&
|
|
|
- IS_ETH_ADDRESS_EQUAL(pTable->KeyTable[i].abyBSSID,pbyBSSID)) {
|
|
|
+ !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) {
|
|
|
// found table already exist
|
|
|
if ((dwKeyIndex & PAIRWISE_KEY) != 0) {
|
|
|
// Pairwise key
|
|
@@ -427,7 +427,7 @@ BOOL KeybRemoveKey(
|
|
|
} else {
|
|
|
for (i=0;i<MAX_KEY_TABLE;i++) {
|
|
|
if ( (pTable->KeyTable[i].bInUse == TRUE) &&
|
|
|
- IS_ETH_ADDRESS_EQUAL(pTable->KeyTable[i].abyBSSID,pbyBSSID)) {
|
|
|
+ !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) {
|
|
|
|
|
|
if ((dwKeyIndex & PAIRWISE_KEY) != 0) {
|
|
|
pTable->KeyTable[i].PairwiseKey.bKeyValid = FALSE;
|
|
@@ -483,7 +483,7 @@ BOOL KeybRemoveAllKey(
|
|
|
|
|
|
for (i=0;i<MAX_KEY_TABLE;i++) {
|
|
|
if ((pTable->KeyTable[i].bInUse == TRUE) &&
|
|
|
- IS_ETH_ADDRESS_EQUAL(pTable->KeyTable[i].abyBSSID,pbyBSSID)) {
|
|
|
+ !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) {
|
|
|
pTable->KeyTable[i].PairwiseKey.bKeyValid = FALSE;
|
|
|
for (u = 0; u < MAX_GROUP_KEY; u++)
|
|
|
pTable->KeyTable[i].GroupKey[u].bKeyValid = FALSE;
|
|
@@ -561,7 +561,7 @@ BOOL KeybGetTransmitKey(PSKeyManagement pTable, PBYTE pbyBSSID, DWORD dwKeyType,
|
|
|
*pKey = NULL;
|
|
|
for (i=0;i<MAX_KEY_TABLE;i++) {
|
|
|
if ((pTable->KeyTable[i].bInUse == TRUE) &&
|
|
|
- IS_ETH_ADDRESS_EQUAL(pTable->KeyTable[i].abyBSSID,pbyBSSID)) {
|
|
|
+ !compare_ether_addr(pTable->KeyTable[i].abyBSSID, pbyBSSID)) {
|
|
|
|
|
|
if (dwKeyType == PAIRWISE_KEY) {
|
|
|
|