qcacld-3.0: Remove csr_clear_joinreq_param()
Change I795bfd1d19f81d703bd9d903ebc53e61b014c5c3 ("qcacld-3.0: Remove sme_clear_joinreq_param()") removed the last client of csr_clear_joinreq_param(). Since this function is now unused, remove it. Change-Id: I8482ddb4c2410c93fc7d982d6f1cd024b4d66d17 CRs-Fixed: 2371140
This commit is contained in:
parent
ac445965cc
commit
791bcf9ef3
@ -1142,8 +1142,6 @@ bool csr_store_joinreq_param(struct mac_context *mac_ctx,
|
||||
uint32_t *roam_id,
|
||||
uint32_t session_id);
|
||||
bool csr_find_session_by_bssid(struct mac_context *mac_ctx, uint8_t *bssid);
|
||||
bool csr_clear_joinreq_param(struct mac_context *mac_ctx,
|
||||
uint32_t session_id);
|
||||
QDF_STATUS csr_get_channels_and_power(struct mac_context *mac);
|
||||
|
||||
void csr_nonscan_pending_ll_unlock(struct mac_context *mac_ctx);
|
||||
|
@ -20256,50 +20256,6 @@ static bool csr_is_conn_allow_5g_band(struct mac_context *mac_ctx, uint32_t chnl
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* csr_clear_joinreq_param() - This function will clear station's params
|
||||
* for stored join request to csr.
|
||||
* @hal_handle: pointer to hal context.
|
||||
* @session_id: station's session id.
|
||||
*
|
||||
* This function will clear station's allocated memory for cached join
|
||||
* request.
|
||||
*
|
||||
* Return: true or false based on function's overall success.
|
||||
**/
|
||||
bool csr_clear_joinreq_param(struct mac_context *mac_ctx,
|
||||
uint32_t session_id)
|
||||
{
|
||||
struct csr_roam_session *sta_session;
|
||||
struct scan_result_list *bss_list;
|
||||
|
||||
if (NULL == mac_ctx)
|
||||
return false;
|
||||
|
||||
sta_session = CSR_GET_SESSION(mac_ctx, session_id);
|
||||
if (NULL == sta_session)
|
||||
return false;
|
||||
|
||||
/* Release the memory allocated by previous join request */
|
||||
bss_list =
|
||||
(struct scan_result_list *)&sta_session->stored_roam_profile.
|
||||
bsslist_handle;
|
||||
if (NULL != bss_list) {
|
||||
csr_scan_result_purge(mac_ctx,
|
||||
sta_session->stored_roam_profile.bsslist_handle);
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_DEBUG,
|
||||
FL("bss list is released for session %d"), session_id);
|
||||
sta_session->stored_roam_profile.bsslist_handle = NULL;
|
||||
}
|
||||
sta_session->stored_roam_profile.bsslist_handle = NULL;
|
||||
csr_release_profile(mac_ctx, &sta_session->stored_roam_profile.profile);
|
||||
sta_session->stored_roam_profile.reason = 0;
|
||||
sta_session->stored_roam_profile.roam_id = 0;
|
||||
sta_session->stored_roam_profile.imediate_flag = false;
|
||||
sta_session->stored_roam_profile.clear_flag = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* csr_store_joinreq_param() - This function will store station's join
|
||||
* request to that station's session.
|
||||
|
Loading…
Reference in New Issue
Block a user