mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: Remove sme_get_wcnss_*_version()
Change I0ded9473083418f6bb33cec4fa43a17c8c281177 ("qcacld-3.0: Remove
hdd_exchange_version_and_caps()") removed the only client of the
following functions:
- sme_get_wcnss_wlan_compiled_version()
- sme_get_wcnss_wlan_reported_version()
- sme_get_wcnss_software_version()
- sme_get_wcnss_hardware_version()
Since these are now obsolete, remove them along with the underlying
tSirVersionType data structure.
Change-Id: Ief51bcf611d5d5759fa04e05c0bb4d96e44c7a29
CRs-Fixed: 2370885
This commit is contained in:
parent
31e70c043b
commit
29cb098914
3 changed files with 0 additions and 137 deletions
|
|
@ -2508,16 +2508,6 @@ typedef struct sSirRcvFltMcAddrList {
|
|||
uint8_t action;
|
||||
} tSirRcvFltMcAddrList, *tpSirRcvFltMcAddrList;
|
||||
|
||||
/* */
|
||||
/* Generic version information */
|
||||
/* */
|
||||
typedef struct {
|
||||
uint8_t revision;
|
||||
uint8_t version;
|
||||
uint8_t minor;
|
||||
uint8_t major;
|
||||
} tSirVersionType;
|
||||
|
||||
/**
|
||||
* struct sir_wifi_start_log - Structure to store the params sent to start/
|
||||
* stop logging
|
||||
|
|
|
|||
|
|
@ -679,14 +679,6 @@ QDF_STATUS sme_neighbor_report_request(mac_handle_t mac_handle,
|
|||
uint8_t sessionId,
|
||||
tpRrmNeighborReq pRrmNeighborReq,
|
||||
tpRrmNeighborRspCallbackInfo callbackInfo);
|
||||
QDF_STATUS sme_get_wcnss_wlan_compiled_version(mac_handle_t mac_handle,
|
||||
tSirVersionType * pVersion);
|
||||
QDF_STATUS sme_get_wcnss_wlan_reported_version(mac_handle_t mac_handle,
|
||||
tSirVersionType *pVersion);
|
||||
QDF_STATUS sme_get_wcnss_software_version(mac_handle_t mac_handle,
|
||||
uint8_t *pVersion, uint32_t versionBufferSize);
|
||||
QDF_STATUS sme_get_wcnss_hardware_version(mac_handle_t mac_handle,
|
||||
uint8_t *pVersion, uint32_t versionBufferSize);
|
||||
#ifdef FEATURE_OEM_DATA_SUPPORT
|
||||
QDF_STATUS sme_oem_data_req(mac_handle_t mac_handle,
|
||||
struct oem_data_req *hdd_oem_req);
|
||||
|
|
|
|||
|
|
@ -4430,125 +4430,6 @@ QDF_STATUS sme_neighbor_report_request(
|
|||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_wcnss_wlan_compiled_version() -
|
||||
* This API returns the version of the WCNSS WLAN API with
|
||||
* which the HOST driver was built
|
||||
*
|
||||
* mac_handle - The handle returned by mac_open.
|
||||
* pVersion - Points to the Version structure to be filled
|
||||
* Return QDF_STATUS
|
||||
* QDF_STATUS_E_INVAL - failure
|
||||
* QDF_STATUS_SUCCESS success
|
||||
*/
|
||||
QDF_STATUS sme_get_wcnss_wlan_compiled_version(mac_handle_t mac_handle,
|
||||
tSirVersionType *pVersion)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
|
||||
if (QDF_STATUS_SUCCESS == sme_acquire_global_lock(&mac->sme)) {
|
||||
if (pVersion != NULL)
|
||||
status = QDF_STATUS_SUCCESS;
|
||||
else
|
||||
status = QDF_STATUS_E_INVAL;
|
||||
|
||||
sme_release_global_lock(&mac->sme);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_wcnss_wlan_reported_version() -
|
||||
* This API returns the version of the WCNSS WLAN API with
|
||||
* which the WCNSS driver reports it was built
|
||||
* mac_handle - The handle returned by mac_open.
|
||||
* pVersion - Points to the Version structure to be filled
|
||||
* Return QDF_STATUS
|
||||
* QDF_STATUS_E_INVAL - failure
|
||||
* QDF_STATUS_SUCCESS success
|
||||
*/
|
||||
QDF_STATUS sme_get_wcnss_wlan_reported_version(mac_handle_t mac_handle,
|
||||
tSirVersionType *pVersion)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
|
||||
if (QDF_STATUS_SUCCESS == sme_acquire_global_lock(&mac->sme)) {
|
||||
if (pVersion != NULL)
|
||||
status = QDF_STATUS_SUCCESS;
|
||||
else
|
||||
status = QDF_STATUS_E_INVAL;
|
||||
|
||||
sme_release_global_lock(&mac->sme);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_wcnss_software_version() -
|
||||
* This API returns the version string of the WCNSS driver
|
||||
*
|
||||
* mac_handle - The handle returned by mac_open.
|
||||
* pVersion - Points to the Version string buffer to be filled
|
||||
* versionBufferSize - THe size of the Version string buffer
|
||||
* Return QDF_STATUS
|
||||
* QDF_STATUS_E_INVAL - failure
|
||||
* QDF_STATUS_SUCCESS success
|
||||
*/
|
||||
QDF_STATUS sme_get_wcnss_software_version(mac_handle_t mac_handle,
|
||||
uint8_t *pVersion,
|
||||
uint32_t versionBufferSize)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
|
||||
if (QDF_STATUS_SUCCESS == sme_acquire_global_lock(&mac->sme)) {
|
||||
if (pVersion != NULL)
|
||||
status =
|
||||
wma_get_wcnss_software_version(
|
||||
pVersion,
|
||||
versionBufferSize);
|
||||
else
|
||||
status = QDF_STATUS_E_INVAL;
|
||||
sme_release_global_lock(&mac->sme);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_wcnss_hardware_version() -
|
||||
* This API returns the version string of the WCNSS hardware
|
||||
*
|
||||
* mac_handle - The handle returned by mac_open.
|
||||
* pVersion - Points to the Version string buffer to be filled
|
||||
* versionBufferSize - THe size of the Version string buffer
|
||||
* Return QDF_STATUS
|
||||
* QDF_STATUS_E_INVAL - failure
|
||||
* QDF_STATUS_SUCCESS success
|
||||
*/
|
||||
QDF_STATUS sme_get_wcnss_hardware_version(mac_handle_t mac_handle,
|
||||
uint8_t *pVersion,
|
||||
uint32_t versionBufferSize)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
|
||||
if (QDF_STATUS_SUCCESS == sme_acquire_global_lock(&mac->sme)) {
|
||||
if (pVersion != NULL)
|
||||
status = QDF_STATUS_SUCCESS;
|
||||
else
|
||||
status = QDF_STATUS_E_INVAL;
|
||||
|
||||
sme_release_global_lock(&mac->sme);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
#ifdef FEATURE_OEM_DATA_SUPPORT
|
||||
/**
|
||||
* sme_oem_data_req() - send oem data request to WMA
|
||||
|
|
|
|||
Loading…
Reference in a new issue