diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2014-01-12 05:59:01 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-01-12 05:59:01 -0800 |
| commit | ee26a888bf0a61e52469fc2b4fc68898d954d662 (patch) | |
| tree | 32f7ae59d048f37ed4879c5730890569d7f53f40 /CORE/SAP/src/sapModule.c | |
| parent | ab881cbfbab8a7b1baa5c9edfabd30a787073e22 (diff) | |
| parent | b4174298c60195acaf7fe20a172c72cf70105ba3 (diff) | |
Merge "Release 4.0.0.68C for MDM9x35 delivery from qcacld-2.0"
Diffstat (limited to 'CORE/SAP/src/sapModule.c')
| -rw-r--r-- | CORE/SAP/src/sapModule.c | 69 |
1 files changed, 33 insertions, 36 deletions
diff --git a/CORE/SAP/src/sapModule.c b/CORE/SAP/src/sapModule.c index 4f0f6b2ec742..b644747209af 100644 --- a/CORE/SAP/src/sapModule.c +++ b/CORE/SAP/src/sapModule.c @@ -24,7 +24,6 @@ * under proprietary terms before Copyright ownership was assigned * to the Linux Foundation. */ - /*=========================================================================== s a p M o d u l e . C @@ -39,9 +38,6 @@ Are listed for each API below. - Copyright (c) 2010 Qualcomm Technologies, Inc. - All Rights Reserved. - Qualcomm Technologies Confidential and Proprietary ===========================================================================*/ /*=========================================================================== @@ -625,7 +621,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 +657,6 @@ WLANSAP_StartBss return vosStatus; }// WLANSAP_StartBss -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)) /*========================================================================== FUNCTION WLANSAP_SetMacACL @@ -700,42 +695,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 +1070,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 +1133,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 +2159,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 ) { |
