summaryrefslogtreecommitdiff
path: root/CORE/SAP/src/sapModule.c
diff options
context:
space:
mode:
Diffstat (limited to 'CORE/SAP/src/sapModule.c')
-rw-r--r--CORE/SAP/src/sapModule.c35
1 files changed, 14 insertions, 21 deletions
diff --git a/CORE/SAP/src/sapModule.c b/CORE/SAP/src/sapModule.c
index 0c4289fcd792..ad5f16cb488a 100644
--- a/CORE/SAP/src/sapModule.c
+++ b/CORE/SAP/src/sapModule.c
@@ -1059,10 +1059,9 @@ WLANSAP_ModifyACL
if (staInWhiteList && staInBlackList)
{
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_ERROR,
- "Peer mac %02x:%02x:%02x:%02x:%02x:%02x found in white and black lists."
+ "Peer mac "MAC_ADDRESS_STR" found in white and black lists."
"Initial lists passed incorrect. Cannot execute this command.",
- pPeerStaMac[0], pPeerStaMac[1], pPeerStaMac[2], pPeerStaMac[3],
- pPeerStaMac[4], pPeerStaMac[5]);
+ MAC_ADDR_ARRAY(pPeerStaMac));
return VOS_STATUS_E_FAILURE;
}
@@ -1078,18 +1077,16 @@ WLANSAP_ModifyACL
if (pSapCtx->nAcceptMac == MAX_ACL_MAC_ADDRESS)
{
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_ERROR,
- "White list is already maxed out. Cannot accept %02x:%02x:%02x:%02x:%02x:%02x",
- pPeerStaMac[0], pPeerStaMac[1], pPeerStaMac[2], pPeerStaMac[3],
- pPeerStaMac[4], pPeerStaMac[5]);
+ "White list is already maxed out. Cannot accept "MAC_ADDRESS_STR,
+ MAC_ADDR_ARRAY(pPeerStaMac));
return VOS_STATUS_E_FAILURE;
}
if (staInWhiteList)
{
//Do nothing if already present in white list. Just print a warning
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_WARN,
- "MAC address already present in white list %02x:%02x:%02x:%02x:%02x:%02x",
- pPeerStaMac[0], pPeerStaMac[1], pPeerStaMac[2], pPeerStaMac[3],
- pPeerStaMac[4], pPeerStaMac[5]);
+ "MAC address already present in white list "MAC_ADDRESS_STR,
+ MAC_ADDR_ARRAY(pPeerStaMac));
} else
{
if (staInBlackList)
@@ -1118,9 +1115,8 @@ WLANSAP_ModifyACL
else
{
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_WARN,
- "MAC address to be deleted is not present in the white list %02x:%02x:%02x:%02x:%02x:%02x",
- pPeerStaMac[0], pPeerStaMac[1], pPeerStaMac[2], pPeerStaMac[3],
- pPeerStaMac[4], pPeerStaMac[5]);
+ "MAC address to be deleted is not present in the white list "MAC_ADDRESS_STR,
+ MAC_ADDR_ARRAY(pPeerStaMac));
return VOS_STATUS_E_FAILURE;
}
}
@@ -1141,18 +1137,16 @@ WLANSAP_ModifyACL
if (pSapCtx->nDenyMac == MAX_ACL_MAC_ADDRESS)
{
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_ERROR,
- "Black list is already maxed out. Cannot accept %02x:%02x:%02x:%02x:%02x:%02x",
- pPeerStaMac[0], pPeerStaMac[1], pPeerStaMac[2], pPeerStaMac[3],
- pPeerStaMac[4], pPeerStaMac[5]);
+ "Black list is already maxed out. Cannot accept "MAC_ADDRESS_STR,
+ MAC_ADDR_ARRAY(pPeerStaMac));
return VOS_STATUS_E_FAILURE;
}
if (staInBlackList)
{
//Do nothing if already present in white list
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_WARN,
- "MAC address already present in black list %02x:%02x:%02x:%02x:%02x:%02x",
- pPeerStaMac[0], pPeerStaMac[1], pPeerStaMac[2], pPeerStaMac[3],
- pPeerStaMac[4], pPeerStaMac[5]);
+ "MAC address already present in black list "MAC_ADDRESS_STR,
+ MAC_ADDR_ARRAY(pPeerStaMac));
} else
{
if (staInWhiteList)
@@ -1181,9 +1175,8 @@ WLANSAP_ModifyACL
else
{
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_WARN,
- "MAC address to be deleted is not present in the black list %02x:%02x:%02x:%02x:%02x:%02x",
- pPeerStaMac[0], pPeerStaMac[1], pPeerStaMac[2], pPeerStaMac[3],
- pPeerStaMac[4], pPeerStaMac[5]);
+ "MAC address to be deleted is not present in the black list "MAC_ADDRESS_STR,
+ MAC_ADDR_ARRAY(pPeerStaMac));
return VOS_STATUS_E_FAILURE;
}
}