qcacld-3.0: Remove sme_get_channel_bonding_mode*_g()
Change I7c5fc06c66c004aa5c1a208376d1ab4b88956a6f ("qcacld-3.0: Fix channel selection failure after radar is detected") removed the only client of functions sme_get_channel_bonding_mode24_g() and sme_get_channel_bonding_mode5_g(). Snce these are now unused, remove them. Change-Id: I21e6b5a927e27063f6393930a3933ee7b53b7e1e CRs-Fixed: 2370883
This commit is contained in:
parent
ccb2408244
commit
7fea5c5bff
@ -1013,10 +1013,6 @@ const char *sme_bss_type_to_string(const uint8_t bss_type);
|
||||
QDF_STATUS sme_ap_disable_intra_bss_fwd(mac_handle_t mac_handle,
|
||||
uint8_t sessionId,
|
||||
bool disablefwd);
|
||||
QDF_STATUS sme_get_channel_bonding_mode5_g(mac_handle_t mac_handle,
|
||||
uint32_t *mode);
|
||||
QDF_STATUS sme_get_channel_bonding_mode24_g(mac_handle_t mac_handle,
|
||||
uint32_t *mode);
|
||||
|
||||
/**
|
||||
* sme_send_unit_test_cmd() - send unit test command to lower layer
|
||||
|
@ -2950,79 +2950,6 @@ eCsrPhyMode sme_get_phy_mode(mac_handle_t mac_handle)
|
||||
return mac->roam.configParam.phyMode;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_channel_bonding_mode5_g() - get the channel bonding mode for 5G band
|
||||
*
|
||||
* mac_handle: Opaque handle to the global MAC context
|
||||
* mode - channel bonding mode
|
||||
*
|
||||
* Return QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS sme_get_channel_bonding_mode5_g(mac_handle_t mac_handle,
|
||||
uint32_t *mode)
|
||||
{
|
||||
tSmeConfigParams *smeConfig;
|
||||
|
||||
if (!mode) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: invalid mode", __func__);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
smeConfig = qdf_mem_malloc(sizeof(*smeConfig));
|
||||
if (!smeConfig)
|
||||
return QDF_STATUS_E_NOMEM;
|
||||
|
||||
if (sme_get_config_param(mac_handle, smeConfig) != QDF_STATUS_SUCCESS) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: sme_get_config_param failed", __func__);
|
||||
qdf_mem_free(smeConfig);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
*mode = smeConfig->csrConfig.channelBondingMode5GHz;
|
||||
qdf_mem_free(smeConfig);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_channel_bonding_mode24_g() - get the channel bonding mode for 2.4G
|
||||
* band
|
||||
*
|
||||
* mac_handle: Opaque handle to the global MAC context
|
||||
* mode - channel bonding mode
|
||||
*
|
||||
* Return QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS sme_get_channel_bonding_mode24_g(mac_handle_t mac_handle,
|
||||
uint32_t *mode)
|
||||
{
|
||||
tSmeConfigParams *smeConfig;
|
||||
|
||||
if (!mode) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: invalid mode", __func__);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
smeConfig = qdf_mem_malloc(sizeof(*smeConfig));
|
||||
if (!smeConfig)
|
||||
return QDF_STATUS_E_NOMEM;
|
||||
|
||||
if (sme_get_config_param(mac_handle, smeConfig) != QDF_STATUS_SUCCESS) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: sme_get_config_param failed", __func__);
|
||||
qdf_mem_free(smeConfig);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
*mode = smeConfig->csrConfig.channelBondingMode24GHz;
|
||||
qdf_mem_free(smeConfig);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_roam_connect() -
|
||||
* A wrapper function to request CSR to inititiate an association
|
||||
|
Loading…
Reference in New Issue
Block a user