qcacld-3.0: Remove sme_update_*_retry_limit_threshold()
Change Icb45c37358dcfacbea8e3b3f40b93189d62e1be4 ("qcacld-3.0: Pass short_retry_limit and long_retry_limit to FW") removed the last cleint of the following functions: - sme_update_short_retry_limit_threshold() - sme_update_long_retry_limit_threshold() Since these functions are now unused, remove them. Change-Id: I5dddf069e2a04826e44b7ef1761d326bd88d9408 CRs-Fixed: 2370897
This commit is contained in:
@@ -1820,10 +1820,7 @@ void sme_set_prefer_80MHz_over_160MHz(mac_handle_t mac_handle,
|
||||
bool sta_prefer_80MHz_over_160MHz);
|
||||
QDF_STATUS sme_update_tx_fail_cnt_threshold(mac_handle_t mac_handle,
|
||||
uint8_t session_id, uint32_t tx_fail_count);
|
||||
QDF_STATUS sme_update_short_retry_limit_threshold(mac_handle_t mac_handle,
|
||||
struct sme_short_retry_limit *short_retry_limit_th);
|
||||
QDF_STATUS sme_update_long_retry_limit_threshold(mac_handle_t mac_handle,
|
||||
struct sme_long_retry_limit *long_retry_limit_th);
|
||||
|
||||
/**
|
||||
* sme_roam_is_ese_assoc() - Check if association type is ESE
|
||||
* @roam_info: Pointer to roam info
|
||||
|
@@ -9311,99 +9311,6 @@ QDF_STATUS sme_update_access_policy_vendor_ie(mac_handle_t mac_handle,
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* sme_update_short_retry_limit_threshold() - update short frame retry limit TH
|
||||
* @mac_handle: Handle returned by mac_open
|
||||
* @session_id: Session ID on which short frame retry limit needs to be
|
||||
* updated to FW
|
||||
* @short_limit_count_th: Retry count TH to retry short frame.
|
||||
*
|
||||
* This function is used to configure count to retry short frame.
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS sme_update_short_retry_limit_threshold(mac_handle_t mac_handle,
|
||||
struct sme_short_retry_limit *short_retry_limit_th)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct sme_short_retry_limit *srl;
|
||||
struct scheduler_msg msg = {0};
|
||||
|
||||
srl = qdf_mem_malloc(sizeof(*srl));
|
||||
if (!srl)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
sme_debug("session_id %d short retry limit count: %d",
|
||||
short_retry_limit_th->session_id,
|
||||
short_retry_limit_th->short_retry_limit);
|
||||
|
||||
srl->session_id = short_retry_limit_th->session_id;
|
||||
srl->short_retry_limit = short_retry_limit_th->short_retry_limit;
|
||||
|
||||
qdf_mem_zero(&msg, sizeof(msg));
|
||||
msg.type = SIR_HAL_SHORT_RETRY_LIMIT_CNT;
|
||||
msg.reserved = 0;
|
||||
msg.bodyptr = srl;
|
||||
status = scheduler_post_message(QDF_MODULE_ID_SME,
|
||||
QDF_MODULE_ID_WMA,
|
||||
QDF_MODULE_ID_WMA, &msg);
|
||||
if (status != QDF_STATUS_SUCCESS) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||
FL("Not able to post short retry limit count to WDA"));
|
||||
qdf_mem_free(srl);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* sme_update_long_retry_limit_threshold() - update long retry limit TH
|
||||
* @mac_handle: Handle returned by mac_open
|
||||
* @session_id: Session ID on which long frames retry TH needs to be updated
|
||||
* to FW
|
||||
* @long_limit_count_th: Retry count to retry long frame.
|
||||
*
|
||||
* This function is used to configure TH to retry long frame.
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS sme_update_long_retry_limit_threshold(mac_handle_t mac_handle,
|
||||
struct sme_long_retry_limit *long_retry_limit_th)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct sme_long_retry_limit *lrl;
|
||||
struct scheduler_msg msg = {0};
|
||||
|
||||
lrl = qdf_mem_malloc(sizeof(*lrl));
|
||||
if (!lrl)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
sme_debug("session_id %d long retry limit count: %d",
|
||||
long_retry_limit_th->session_id,
|
||||
long_retry_limit_th->long_retry_limit);
|
||||
|
||||
lrl->session_id = long_retry_limit_th->session_id;
|
||||
lrl->long_retry_limit = long_retry_limit_th->long_retry_limit;
|
||||
|
||||
qdf_mem_zero(&msg, sizeof(msg));
|
||||
msg.type = SIR_HAL_LONG_RETRY_LIMIT_CNT;
|
||||
msg.reserved = 0;
|
||||
msg.bodyptr = lrl;
|
||||
status = scheduler_post_message(QDF_MODULE_ID_SME,
|
||||
QDF_MODULE_ID_WMA,
|
||||
QDF_MODULE_ID_WMA, &msg);
|
||||
|
||||
if (status != QDF_STATUS_SUCCESS) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||
FL("Not able to post long retry limit count to WDA"));
|
||||
qdf_mem_free(lrl);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* sme_update_sta_inactivity_timeout(): Update sta_inactivity_timeout to FW
|
||||
* @mac_handle: Handle returned by mac_open
|
||||
|
Reference in New Issue
Block a user