diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index 3f2e9f4cf670..cfd0781bcd4d 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -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 diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index b670de0c70e9..e55c1f8e093d 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -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); diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 7c515578efab..4e673dd31d97 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -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