diff options
| author | wadesong <wadesong@codeaurora.org> | 2017-06-08 16:03:49 +0800 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-06-12 01:19:06 -0700 |
| commit | e0e0584f83d1c3bd8f33d86e053a952a5e464418 (patch) | |
| tree | 56948dfc41e50df6659e2fbcc4a6be4d4b5cb699 | |
| parent | e9ca64397b5cb2e1b9ce7de112de7850bf93075b (diff) | |
qcacld-2.0: Fix build errors generated by gcc 6
Gcc 6 introduces some stricter checking for indentation,
causing warnings of misleading-indentation, which are
treated as build errors when CLD2.0 drivers are compiled.
Fix all the identation warnings under qcacld-2.0.
Change-Id: Ib25d8e71f4104b66fb2760ad2c4ace4e3d587e7f
CRs-Fixed: 2056446
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg.c | 13 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_main.c | 2 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_tx_rx.c | 10 | ||||
| -rw-r--r-- | CORE/MAC/src/include/utilsApi.h | 4 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limAssocUtils.c | 4 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limIbssPeerMgmt.c | 4 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c | 92 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessMessageQueue.c | 4 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c | 16 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c | 4 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessProbeReqFrame.c | 4 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limSendManagementFrames.c | 20 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limUtils.c | 106 | ||||
| -rw-r--r-- | CORE/SERVICES/DFS/src/dfs_process_phyerr.c | 5 | ||||
| -rw-r--r-- | CORE/UTILS/FWLOG/dbglog_host.c | 6 |
15 files changed, 151 insertions, 143 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg.c b/CORE/HDD/src/wlan_hdd_cfg.c index 6ddeee490ff2..e153289028c8 100644 --- a/CORE/HDD/src/wlan_hdd_cfg.c +++ b/CORE/HDD/src/wlan_hdd_cfg.c @@ -5113,8 +5113,8 @@ static char *i_trim(char *str) /* Find the first non white-space*/ for (ptr = str; i_isspace(*ptr); ptr++); - if (*ptr == '\0') - return str; + if (*ptr == '\0') + return str; /* This is the new start of the string*/ str = ptr; @@ -5122,8 +5122,8 @@ static char *i_trim(char *str) /* Find the last non white-space */ ptr += strlen(ptr) - 1; for (; ptr != str && i_isspace(*ptr); ptr--); - /* Null terminate the following character */ - ptr[1] = '\0'; + /* Null terminate the following character */ + ptr[1] = '\0'; return str; } @@ -7124,6 +7124,11 @@ v_BOOL_t hdd_update_config_dat( hdd_context_t *pHddCtx ) #if defined WLAN_FEATURE_VOWIFI if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MCAST_BCAST_FILTER_SETTING, pConfig->mcastBcastFilterSetting, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE) + { + fStatus = FALSE; + hddLog(LOGE, + "Could not pass on WNI_CFG_MCAST_BCAST_FILTER_SETTING to CCM"); + } #endif if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SINGLE_TID_RC, pConfig->bSingleTidRc, diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index fde4f5f791fa..6bca349f9685 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -14955,7 +14955,7 @@ static void hdd_state_info_dump(char **buf_ptr, uint16_t *size) if (adapter->dev) len += scnprintf(buf + len, *size - len, "\n device name: %s", adapter->dev->name); - len += scnprintf(buf + len, *size - len, + len += scnprintf(buf + len, *size - len, "\n device_mode: %d", adapter->device_mode); switch (adapter->device_mode) { case WLAN_HDD_INFRA_STATION: diff --git a/CORE/HDD/src/wlan_hdd_tx_rx.c b/CORE/HDD/src/wlan_hdd_tx_rx.c index 9b6ecfbff666..033d86c4f630 100644 --- a/CORE/HDD/src/wlan_hdd_tx_rx.c +++ b/CORE/HDD/src/wlan_hdd_tx_rx.c @@ -1456,11 +1456,11 @@ VOS_STATUS hdd_rx_packet_cbk(v_VOID_t *vosContext, vos_wake_lock_timeout_acquire(&pHddCtx->rx_wake_lock, pHddCtx->cfg_ini->rx_wakelock_timeout, WIFI_POWER_EVENT_WAKELOCK_HOLD_RX); - /* - * This is the last packet on the chain - * Scheduling rx sirq - */ - rxstat = netif_rx_ni(skb); + /* + * This is the last packet on the chain + * Scheduling rx sirq + */ + rxstat = netif_rx_ni(skb); } if (NET_RX_SUCCESS == rxstat) diff --git a/CORE/MAC/src/include/utilsApi.h b/CORE/MAC/src/include/utilsApi.h index 6b81aae9f840..e2c4bd34e788 100644 --- a/CORE/MAC/src/include/utilsApi.h +++ b/CORE/MAC/src/include/utilsApi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2014, 2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2014, 2016-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -706,7 +706,7 @@ halRoundS32(tANI_S32 p) else k = p; - return(k); + return(k); } /* New functions for endianness conversion */ diff --git a/CORE/MAC/src/pe/lim/limAssocUtils.c b/CORE/MAC/src/pe/lim/limAssocUtils.c index 9a40d616c192..17f4942f3d00 100644 --- a/CORE/MAC/src/pe/lim/limAssocUtils.c +++ b/CORE/MAC/src/pe/lim/limAssocUtils.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -4361,7 +4361,7 @@ tSirRetStatus limStaSendAddBssPreAssoc( tpAniSirGlobal pMac, tANI_U8 updateEntry if(pMac->lim.gLimProtectionControl != WNI_CFG_FORCE_POLICY_PROTECTION_DISABLE) limDecideStaProtectionOnAssoc(pMac, pBeaconStruct, psessionEntry); - vos_mem_copy(pAddBssParams->bssId, bssDescription->bssId, + vos_mem_copy(pAddBssParams->bssId, bssDescription->bssId, sizeof(tSirMacAddr)); // Fill in tAddBssParams selfMacAddr diff --git a/CORE/MAC/src/pe/lim/limIbssPeerMgmt.c b/CORE/MAC/src/pe/lim/limIbssPeerMgmt.c index 5c2f29b84af1..6427a5073caf 100644 --- a/CORE/MAC/src/pe/lim/limIbssPeerMgmt.c +++ b/CORE/MAC/src/pe/lim/limIbssPeerMgmt.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -1108,7 +1108,7 @@ __limIbssSearchAndDeletePeer(tpAniSirGlobal pMac, limDelSta(pMac, pStaDs, false /*asynchronous*/, psessionEntry); - limDeleteDphHashEntry(pMac, + limDeleteDphHashEntry(pMac, pStaDs->staAddr, peerIdx, psessionEntry); limReleasePeerIdx(pMac, peerIdx, psessionEntry); diff --git a/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c b/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c index 6baa5184f5b1..9a743b89052b 100644 --- a/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c +++ b/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -114,53 +114,61 @@ void limUpdateAssocStaDatas(tpAniSirGlobal pMac, tpDphHashNode pStaDs, tpSirAsso else pStaDs->htSupportedChannelWidthSet = eHT_CHANNEL_WIDTH_20MHZ; - pStaDs->htLsigTXOPProtection = ( tANI_U8 ) pAssocRsp->HTCaps.lsigTXOPProtection; - pStaDs->htMIMOPSState = (tSirMacHTMIMOPowerSaveState)pAssocRsp->HTCaps.mimoPowerSave; - pStaDs->htMaxAmsduLength = ( tANI_U8 ) pAssocRsp->HTCaps.maximalAMSDUsize; - pStaDs->htAMpduDensity = pAssocRsp->HTCaps.mpduDensity; - pStaDs->htDsssCckRate40MHzSupport = (tANI_U8)pAssocRsp->HTCaps.dsssCckMode40MHz; - pStaDs->htMaxRxAMpduFactor = pAssocRsp->HTCaps.maxRxAMPDUFactor; - limFillRxHighestSupportedRate(pMac, &rxHighestRate, pAssocRsp->HTCaps.supportedMCSSet); - pStaDs->supportedRates.rxHighestDataRate = rxHighestRate; - /* This is for AP as peer STA and we are INFRA STA. We will put APs offset in dph node which is peer STA */ - pStaDs->htSecondaryChannelOffset = (tANI_U8)pAssocRsp->HTInfo.secondaryChannelOffset; - - //FIXME_AMPDU - // In the future, may need to check for "assoc.HTCaps.delayedBA" - // For now, it is IMMEDIATE BA only on ALL TID's - pStaDs->baPolicyFlag = 0xFF; - - /* - * Check if we have support for gShortGI20Mhz and - * gShortGI40Mhz from ini file. - */ - if (HAL_STATUS_SUCCESS(ccmCfgGetInt(pMac, + pStaDs->htLsigTXOPProtection = + ( tANI_U8 ) pAssocRsp->HTCaps.lsigTXOPProtection; + pStaDs->htMIMOPSState = + (tSirMacHTMIMOPowerSaveState)pAssocRsp->HTCaps.mimoPowerSave; + pStaDs->htMaxAmsduLength = + ( tANI_U8 ) pAssocRsp->HTCaps.maximalAMSDUsize; + pStaDs->htAMpduDensity = pAssocRsp->HTCaps.mpduDensity; + pStaDs->htDsssCckRate40MHzSupport = + (tANI_U8)pAssocRsp->HTCaps.dsssCckMode40MHz; + pStaDs->htMaxRxAMpduFactor = pAssocRsp->HTCaps.maxRxAMPDUFactor; + limFillRxHighestSupportedRate(pMac, &rxHighestRate, + pAssocRsp->HTCaps.supportedMCSSet); + pStaDs->supportedRates.rxHighestDataRate = rxHighestRate; + /* This is for AP as peer STA and we are INFRA STA. + * We will put APs offset in dph node which is peer STA + */ + pStaDs->htSecondaryChannelOffset = + (tANI_U8)pAssocRsp->HTInfo.secondaryChannelOffset; + + //FIXME_AMPDU + // In the future, may need to check for "assoc.HTCaps.delayedBA" + // For now, it is IMMEDIATE BA only on ALL TID's + pStaDs->baPolicyFlag = 0xFF; + + /* + * Check if we have support for gShortGI20Mhz and + * gShortGI40Mhz from ini file. + */ + if (HAL_STATUS_SUCCESS(ccmCfgGetInt(pMac, WNI_CFG_SHORT_GI_20MHZ, &shortgi_20mhz_support))) { - if (VOS_TRUE == shortgi_20mhz_support) - pStaDs->htShortGI20Mhz = + if (VOS_TRUE == shortgi_20mhz_support) + pStaDs->htShortGI20Mhz = (tANI_U8)pAssocRsp->HTCaps.shortGI20MHz; - else - pStaDs->htShortGI20Mhz = VOS_FALSE; - } else { - limLog(pMac, LOGE, - FL("could not retrieve shortGI 20Mhz CFG, setting value to default")); - pStaDs->htShortGI20Mhz = WNI_CFG_SHORT_GI_20MHZ_STADEF; - } - - if (HAL_STATUS_SUCCESS(ccmCfgGetInt(pMac, + else + pStaDs->htShortGI20Mhz = VOS_FALSE; + } else { + limLog(pMac, LOGE, + FL("could not retrieve shortGI 20Mhz CFG, setting value to default")); + pStaDs->htShortGI20Mhz = WNI_CFG_SHORT_GI_20MHZ_STADEF; + } + + if (HAL_STATUS_SUCCESS(ccmCfgGetInt(pMac, WNI_CFG_SHORT_GI_40MHZ, &shortgi_40mhz_support))) { - if (VOS_TRUE == shortgi_40mhz_support) - pStaDs->htShortGI40Mhz = + if (VOS_TRUE == shortgi_40mhz_support) + pStaDs->htShortGI40Mhz = (tANI_U8)pAssocRsp->HTCaps.shortGI40MHz; - else - pStaDs->htShortGI40Mhz = VOS_FALSE; - } else { - limLog(pMac, LOGE, - FL("could not retrieve shortGI 40Mhz CFG,setting value to default")); - pStaDs->htShortGI40Mhz = WNI_CFG_SHORT_GI_40MHZ_STADEF; - } + else + pStaDs->htShortGI40Mhz = VOS_FALSE; + } else { + limLog(pMac, LOGE, + FL("could not retrieve shortGI 40Mhz CFG,setting value to default")); + pStaDs->htShortGI40Mhz = WNI_CFG_SHORT_GI_40MHZ_STADEF; + } } } diff --git a/CORE/MAC/src/pe/lim/limProcessMessageQueue.c b/CORE/MAC/src/pe/lim/limProcessMessageQueue.c index 880dfb1b9a3c..bf57acc737a6 100644 --- a/CORE/MAC/src/pe/lim/limProcessMessageQueue.c +++ b/CORE/MAC/src/pe/lim/limProcessMessageQueue.c @@ -373,10 +373,10 @@ __limHandleBeacon(tpAniSirGlobal pMac, tpSirMsgQ pMsg, tpPESession psessionEntry { schBeaconProcess(pMac, pRxPacketInfo, psessionEntry); } - else + else limProcessBeaconFrame(pMac, pRxPacketInfo, psessionEntry); - return; + return; } diff --git a/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c b/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c index 0b43fc173400..beb54683ecd9 100644 --- a/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c +++ b/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c @@ -3661,16 +3661,16 @@ tLimMlmRemoveKeyCnf mlmRemoveKeyCnf; goto end; } else - staIdx = pStaDs->staIndex; - + staIdx = pStaDs->staIndex; + psessionEntry->limMlmState = eLIM_MLM_WT_REMOVE_STA_KEY_STATE; + MTRACE( + macTrace(pMac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId, + psessionEntry->limMlmState)); - psessionEntry->limMlmState = eLIM_MLM_WT_REMOVE_STA_KEY_STATE; - MTRACE(macTrace(pMac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId, psessionEntry->limMlmState)); - - // Package WDA_REMOVE_STAKEY_REQ message parameters - limSendRemoveStaKeyReq( pMac,pMlmRemoveKeyReq,staIdx,psessionEntry); - return; + // Package WDA_REMOVE_STAKEY_REQ message parameters + limSendRemoveStaKeyReq( pMac,pMlmRemoveKeyReq,staIdx,psessionEntry); + return; end: limPostSmeRemoveKeyCnf( pMac, diff --git a/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c b/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c index f59887d27cdb..c75be5ce6de0 100644 --- a/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c +++ b/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -4833,7 +4833,7 @@ limHandleDelBssInReAssocContext(tpAniSirGlobal pMac, tpDphHashNode pStaDs,tpPESe pBeaconStruct); if(pMac->lim.gLimProtectionControl != WNI_CFG_FORCE_POLICY_PROTECTION_DISABLE) limDecideStaProtectionOnAssoc(pMac, pBeaconStruct, psessionEntry); - if(pBeaconStruct->erpPresent) { + if(pBeaconStruct->erpPresent) { if (pBeaconStruct->erpIEInfo.barkerPreambleMode) psessionEntry->beaconParams.fShortPreamble = 0; else diff --git a/CORE/MAC/src/pe/lim/limProcessProbeReqFrame.c b/CORE/MAC/src/pe/lim/limProcessProbeReqFrame.c index 7c3002eee49b..bcd7a1022cdf 100644 --- a/CORE/MAC/src/pe/lim/limProcessProbeReqFrame.c +++ b/CORE/MAC/src/pe/lim/limProcessProbeReqFrame.c @@ -172,8 +172,8 @@ void limRemovePBCSessions(tpAniSirGlobal pMac, tSirMacAddr pRemoveMac,tpPESessio prev->next = pbc->next; if (pbc == psessionEntry->pAPWPSPBCSession) psessionEntry->pAPWPSPBCSession = pbc->next; - vos_mem_free(pbc); - return; + vos_mem_free(pbc); + return; } prev = pbc; pbc = pbc->next; diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c index f1ef76894b04..55ba710e5090 100644 --- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c +++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -5407,16 +5407,16 @@ tSirRetStatus limSendAddBARsp( tpAniSirGlobal pMac, else return eSIR_SUCCESS; - returnAfterError: +returnAfterError: - // Release buffer, if allocated - if( NULL != pAddBARspBuffer ) - palPktFree( pMac->hHdd, + // Release buffer, if allocated + if( NULL != pAddBARspBuffer ) + palPktFree( pMac->hHdd, HAL_TXRX_FRM_802_11_MGMT, (void *) pAddBARspBuffer, (void *) pPacket ); - return statusCode; + return statusCode; } /** @@ -5590,16 +5590,16 @@ tSirRetStatus limSendDelBAInd( tpAniSirGlobal pMac, else return eSIR_SUCCESS; - returnAfterError: +returnAfterError: - // Release buffer, if allocated - if( NULL != pDelBAIndBuffer ) + // Release buffer, if allocated + if( NULL != pDelBAIndBuffer ) palPktFree( pMac->hHdd, HAL_TXRX_FRM_802_11_MGMT, (void *) pDelBAIndBuffer, (void *) pPacket ); - return statusCode; + return statusCode; } #if defined WLAN_FEATURE_VOWIFI diff --git a/CORE/MAC/src/pe/lim/limUtils.c b/CORE/MAC/src/pe/lim/limUtils.c index 14373d90dd35..422e725c74d7 100644 --- a/CORE/MAC/src/pe/lim/limUtils.c +++ b/CORE/MAC/src/pe/lim/limUtils.c @@ -4099,23 +4099,23 @@ limEnableHT20Protection(tpAniSirGlobal pMac, tANI_U8 enable, if(!psessionEntry->htCapability) return eSIR_SUCCESS; // this protection is only for HT stations. - //overlapping protection configuration check. - if(overlap) { - } else { - //normal protection config check - if (LIM_IS_AP_ROLE(psessionEntry) && - !psessionEntry->cfgProtection.ht20) { + //overlapping protection configuration check. + if(overlap) { + } else { + //normal protection config check + if (LIM_IS_AP_ROLE(psessionEntry) && + !psessionEntry->cfgProtection.ht20) { + // protection disabled. + PELOG3(limLog(pMac, LOG3, FL("protection from HT20 is disabled"));) + return eSIR_SUCCESS; + } else if (!LIM_IS_AP_ROLE(psessionEntry)) { + if (!pMac->lim.cfgProtection.ht20) { // protection disabled. PELOG3(limLog(pMac, LOG3, FL("protection from HT20 is disabled"));) return eSIR_SUCCESS; - } else if (!LIM_IS_AP_ROLE(psessionEntry)) { - if (!pMac->lim.cfgProtection.ht20) { - // protection disabled. - PELOG3(limLog(pMac, LOG3, FL("protection from HT20 is disabled"));) - return eSIR_SUCCESS; - } } } + } if (enable) { //If we are AP and HT capable, we need to set the HT OP mode @@ -4303,24 +4303,24 @@ limEnableHTNonGfProtection(tpAniSirGlobal pMac, tANI_U8 enable, if(!psessionEntry->htCapability) return eSIR_SUCCESS; // this protection is only for HT stations. - //overlapping protection configuration check. - if(overlap) { - } else { + //overlapping protection configuration check. + if(overlap) { + } else { + //normal protection config check + if (LIM_IS_AP_ROLE(psessionEntry) && + !psessionEntry->cfgProtection.nonGf) { + // protection disabled. + PELOG3(limLog(pMac, LOG3, FL("protection from NonGf is disabled"));) + return eSIR_SUCCESS; + } else if(!LIM_IS_AP_ROLE(psessionEntry)) { //normal protection config check - if (LIM_IS_AP_ROLE(psessionEntry) && - !psessionEntry->cfgProtection.nonGf) { + if (!pMac->lim.cfgProtection.nonGf) { // protection disabled. PELOG3(limLog(pMac, LOG3, FL("protection from NonGf is disabled"));) return eSIR_SUCCESS; - } else if(!LIM_IS_AP_ROLE(psessionEntry)) { - //normal protection config check - if (!pMac->lim.cfgProtection.nonGf) { - // protection disabled. - PELOG3(limLog(pMac, LOG3, FL("protection from NonGf is disabled"));) - return eSIR_SUCCESS; - } } } + } if (LIM_IS_AP_ROLE(psessionEntry)) { if ((enable) && (false == psessionEntry->beaconParams.llnNonGFCoexist)) @@ -4368,24 +4368,24 @@ limEnableHTLsigTxopProtection(tpAniSirGlobal pMac, tANI_U8 enable, if(!psessionEntry->htCapability) return eSIR_SUCCESS; // this protection is only for HT stations. - //overlapping protection configuration check. - if(overlap) { - } else { + //overlapping protection configuration check. + if(overlap) { + } else { + //normal protection config check + if (LIM_IS_AP_ROLE(psessionEntry) && + !psessionEntry->cfgProtection.lsigTxop) { + // protection disabled. + PELOG3(limLog(pMac, LOG3, FL(" protection from LsigTxop not supported is disabled"));) + return eSIR_SUCCESS; + } else if(!LIM_IS_AP_ROLE(psessionEntry)) { //normal protection config check - if (LIM_IS_AP_ROLE(psessionEntry) && - !psessionEntry->cfgProtection.lsigTxop) { + if(!pMac->lim.cfgProtection.lsigTxop) { // protection disabled. PELOG3(limLog(pMac, LOG3, FL(" protection from LsigTxop not supported is disabled"));) return eSIR_SUCCESS; - } else if(!LIM_IS_AP_ROLE(psessionEntry)) { - //normal protection config check - if(!pMac->lim.cfgProtection.lsigTxop) { - // protection disabled. - PELOG3(limLog(pMac, LOG3, FL(" protection from LsigTxop not supported is disabled"));) - return eSIR_SUCCESS; - } } } + } if (LIM_IS_AP_ROLE(psessionEntry)) { if ((enable) && (false == psessionEntry->beaconParams.fLsigTXOPProtectionFullSupport)) @@ -4434,24 +4434,24 @@ limEnableHtRifsProtection(tpAniSirGlobal pMac, tANI_U8 enable, return eSIR_SUCCESS; // this protection is only for HT stations. - //overlapping protection configuration check. - if(overlap) { - } else { - //normal protection config check - if (LIM_IS_AP_ROLE(psessionEntry) && - !psessionEntry->cfgProtection.rifs) { - // protection disabled. - PELOG3(limLog(pMac, LOG3, FL(" protection from Rifs is disabled"));) - return eSIR_SUCCESS; - } else if (!LIM_IS_AP_ROLE(psessionEntry)) { - //normal protection config check - if(!pMac->lim.cfgProtection.rifs) { - // protection disabled. - PELOG3(limLog(pMac, LOG3, FL(" protection from Rifs is disabled"));) - return eSIR_SUCCESS; - } - } + //overlapping protection configuration check. + if(overlap) { + } else { + //normal protection config check + if (LIM_IS_AP_ROLE(psessionEntry) && + !psessionEntry->cfgProtection.rifs) { + // protection disabled. + PELOG3(limLog(pMac, LOG3, FL(" protection from Rifs is disabled"));) + return eSIR_SUCCESS; + } else if (!LIM_IS_AP_ROLE(psessionEntry)) { + //normal protection config check + if(!pMac->lim.cfgProtection.rifs) { + // protection disabled. + PELOG3(limLog(pMac, LOG3, FL(" protection from Rifs is disabled"));) + return eSIR_SUCCESS; + } } + } if (LIM_IS_AP_ROLE(psessionEntry)) { // Disabling the RIFS Protection means Enable the RIFS mode of operation in the BSS diff --git a/CORE/SERVICES/DFS/src/dfs_process_phyerr.c b/CORE/SERVICES/DFS/src/dfs_process_phyerr.c index f61d6628800e..3024c865ba2f 100644 --- a/CORE/SERVICES/DFS/src/dfs_process_phyerr.c +++ b/CORE/SERVICES/DFS/src/dfs_process_phyerr.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2014,2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2002-2014,2016-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -199,9 +199,10 @@ dfs_process_phyerr_owl(struct ath_dfs *dfs, void *buf, u_int16_t datalen, /* * This is a spurious event; toss. */ - if (rssi == 0 && dur == 0) + if (rssi == 0 && dur == 0) { dfs->ath_dfs_stats.datalen_discards++; return (0); + } /* * Fill out dfs_phy_err with the information we have diff --git a/CORE/UTILS/FWLOG/dbglog_host.c b/CORE/UTILS/FWLOG/dbglog_host.c index 5a2932f99238..c080c596c548 100644 --- a/CORE/UTILS/FWLOG/dbglog_host.c +++ b/CORE/UTILS/FWLOG/dbglog_host.c @@ -1774,12 +1774,6 @@ int dbglog_report_enable(wmi_unified_t wmi_handle, bool isenable) { int bitmap[2] = {0}; - if (isenable > TRUE) { - AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("dbglog_report_enable:Invalid value %d\n", - isenable)); - return -EINVAL; - } - if(isenable){ /* set the vap enable bitmap */ dbglog_set_vap_enable_bitmap(wmi_handle, 0xFFFF); |
