summaryrefslogtreecommitdiff
path: root/CORE/SAP/src/sapModule.c
diff options
context:
space:
mode:
authorPrakash Dhavali <pdhavali@qca.qualcomm.com>2013-12-29 02:34:07 -0800
committerPrakash Dhavali <pdhavali@qca.qualcomm.com>2013-12-29 02:34:07 -0800
commita01db2a257a206d251b080210a4b3e9dd4af2720 (patch)
tree0b1ff1f7c7287f9adadd4919a048134dc3f1c522 /CORE/SAP/src/sapModule.c
parent2eac8168615470118bcb7b4048af09c52841f1f3 (diff)
Release 4.0.0.62B
Add Release 4.0.0.62B next set of changes. These are additional changes on top of 4.0.0.62/62A that were changed between qcacld-2.0 and qcacld-new switch-over.
Diffstat (limited to 'CORE/SAP/src/sapModule.c')
-rw-r--r--CORE/SAP/src/sapModule.c65
1 files changed, 33 insertions, 32 deletions
diff --git a/CORE/SAP/src/sapModule.c b/CORE/SAP/src/sapModule.c
index 4f0f6b2ec742..4db9f9e57bca 100644
--- a/CORE/SAP/src/sapModule.c
+++ b/CORE/SAP/src/sapModule.c
@@ -625,7 +625,7 @@ WLANSAP_StartBss
//present or not doesn't maater as we have to follow whatever
//STA session does)
if ((0 == sme_GetConcurrentOperationChannel(hHal)) &&
- pConfig->ieee80211d)
+ pConfig->ieee80211d)
{
/* Setting the region/country information */
sme_setRegInfo(hHal, pConfig->countryCode);
@@ -661,7 +661,6 @@ WLANSAP_StartBss
return vosStatus;
}// WLANSAP_StartBss
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
/*==========================================================================
FUNCTION WLANSAP_SetMacACL
@@ -700,42 +699,44 @@ WLANSAP_SetMacACL
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH,
"WLANSAP_SetMacACL");
- if (VOS_STA_SAP_MODE != vos_get_conparam ())
- {
- VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_ERROR,
- "%s : SoftAp role has not been enabled", __func__);
- return VOS_STATUS_E_FAULT;
- }
-
- pSapCtx = VOS_GET_SAP_CB(pvosGCtx);
- if ( NULL == pSapCtx )
+ if (VOS_STA_SAP_MODE == vos_get_conparam ())
{
- VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH,
- "%s: Invalid SAP pointer from pvosGCtx", __func__);
- return VOS_STATUS_E_FAULT;
- }
+ pSapCtx = VOS_GET_SAP_CB(pvosGCtx);
+ if ( NULL == pSapCtx )
+ {
+ VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH,
+ "%s: Invalid SAP pointer from pvosGCtx", __func__);
+ return VOS_STATUS_E_FAULT;
+ }
- // Copy MAC filtering settings to sap context
- pSapCtx->eSapMacAddrAclMode = pConfig->SapMacaddr_acl;
+ // Copy MAC filtering settings to sap context
+ pSapCtx->eSapMacAddrAclMode = pConfig->SapMacaddr_acl;
- if (eSAP_DENY_UNLESS_ACCEPTED == pSapCtx->eSapMacAddrAclMode)
- {
- vos_mem_copy(pSapCtx->acceptMacList, pConfig->accept_mac,
- sizeof(pConfig->accept_mac));
- pSapCtx->nAcceptMac = pConfig->num_accept_mac;
- sapSortMacList(pSapCtx->acceptMacList, pSapCtx->nAcceptMac);
+ if (eSAP_DENY_UNLESS_ACCEPTED == pSapCtx->eSapMacAddrAclMode)
+ {
+ vos_mem_copy(pSapCtx->acceptMacList, pConfig->accept_mac,
+ sizeof(pConfig->accept_mac));
+ pSapCtx->nAcceptMac = pConfig->num_accept_mac;
+ sapSortMacList(pSapCtx->acceptMacList, pSapCtx->nAcceptMac);
+ }
+ else if (eSAP_ACCEPT_UNLESS_DENIED == pSapCtx->eSapMacAddrAclMode)
+ {
+ vos_mem_copy(pSapCtx->denyMacList, pConfig->deny_mac,
+ sizeof(pConfig->deny_mac));
+ pSapCtx->nDenyMac = pConfig->num_deny_mac;
+ sapSortMacList(pSapCtx->denyMacList, pSapCtx->nDenyMac);
+ }
}
- else if (eSAP_ACCEPT_UNLESS_DENIED == pSapCtx->eSapMacAddrAclMode)
+ else
{
- vos_mem_copy(pSapCtx->denyMacList, pConfig->deny_mac,
- sizeof(pConfig->deny_mac));
- pSapCtx->nDenyMac = pConfig->num_deny_mac;
- sapSortMacList(pSapCtx->denyMacList, pSapCtx->nDenyMac);
+ VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_ERROR,
+ "%s : SoftAp role has not been enabled", __func__);
+ return VOS_STATUS_E_FAULT;
}
return vosStatus;
}//WLANSAP_SetMacACL
-#endif
+
/*==========================================================================
FUNCTION WLANSAP_StopBss
@@ -1073,7 +1074,7 @@ WLANSAP_ModifyACL
{
//error check
// if list is already at max, return failure
- if (pSapCtx->nAcceptMac == MAX_MAC_ADDRESS_ACCEPTED)
+ 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",
@@ -1136,7 +1137,7 @@ WLANSAP_ModifyACL
{
//error check
// if list is already at max, return failure
- if (pSapCtx->nDenyMac == MAX_MAC_ADDRESS_ACCEPTED)
+ 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",
@@ -2162,7 +2163,7 @@ VOS_STATUS WLANSAP_RemainOnChannel( v_PVOID_t pvosGCtx,
}
halStatus = sme_RemainOnChannel( hHal, pSapCtx->sessionId,
- channel, duration, callback, pContext );
+ channel, duration, callback, pContext, TRUE );
if( eHAL_STATUS_SUCCESS == halStatus )
{