diff options
| author | Jeff Johnson <jjohnson@codeaurora.org> | 2016-10-14 12:43:39 -0700 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-11-16 12:26:18 -0800 |
| commit | 5b4b57e8186c4e985ca3ca637fe3d03b5b8a099a (patch) | |
| tree | 94e429a0cb196518be8b17b86712f48bbedc4e95 | |
| parent | 2e560850ce5208987a276044f1fd7bd1ab4dd14c (diff) | |
qcacld-3.0: Remove obsolete csr_api_roam functions
While trying to enable the -Wmissing-prototypes compiler switch the
following obsolete APIs were uncovered in csr_api_roam.c:
csr_roam_get_phy_mode_from_dot11_mode()
csr_get_htcb_state_from_vhtcb_state()
csr_is_command_waiting()
Since these are obsolete, remove them.
Change-Id: If9c5efb6043ccbe874d3f7f41c4ebc1c3dc9675f
CRs-Fixed: 1085761
| -rw-r--r-- | core/sme/src/csr/csr_api_roam.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 9f74eca9186d..37717ba8ccea 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -4639,36 +4639,6 @@ void csr_roam_ccm_cfg_set_callback(tpAniSirGlobal pMac, int32_t result) } } -/* This function is very dump. It is here because PE still need WNI_CFG_PHY_MODE */ -uint32_t csr_roam_get_phy_mode_from_dot11_mode(eCsrCfgDot11Mode dot11Mode, - eCsrBand band) -{ - if (eCSR_CFG_DOT11_MODE_11B == dot11Mode) { - return WNI_CFG_PHY_MODE_11B; - } else { - if (eCSR_BAND_24 == band) - return WNI_CFG_PHY_MODE_11G; - } - return WNI_CFG_PHY_MODE_11A; -} - -ePhyChanBondState csr_get_htcb_state_from_vhtcb_state(ePhyChanBondState aniCBMode) -{ - switch (aniCBMode) { - case PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW: - case PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED: - case PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH: - return PHY_DOUBLE_CHANNEL_HIGH_PRIMARY; - case PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW: - case PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED: - case PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH: - return PHY_DOUBLE_CHANNEL_LOW_PRIMARY; - case PHY_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED: - default: - return PHY_SINGLE_CHANNEL_CENTERED; - } -} - /* pIes may be NULL */ QDF_STATUS csr_roam_set_bss_config_cfg(tpAniSirGlobal pMac, uint32_t sessionId, tCsrRoamProfile *pProfile, @@ -8696,21 +8666,6 @@ bool csr_is_roam_command_waiting(tpAniSirGlobal pMac) return fRet; } -bool csr_is_command_waiting(tpAniSirGlobal pMac) -{ - bool fRet = false; - /* alwasy lock active list before locking pending list */ - csr_ll_lock(&pMac->sme.smeCmdActiveList); - fRet = csr_ll_is_list_empty(&pMac->sme.smeCmdActiveList, LL_ACCESS_NOLOCK); - if (false == fRet) { - fRet = - csr_ll_is_list_empty(&pMac->sme.smeCmdPendingList, - LL_ACCESS_LOCK); - } - csr_ll_unlock(&pMac->sme.smeCmdActiveList); - return fRet; -} - bool csr_is_scan_for_roam_command_active(tpAniSirGlobal pMac) { bool fRet = false; |
