diff --git a/core/sme/inc/csr_internal.h b/core/sme/inc/csr_internal.h index 4947d78462d4..5ae786ff659b 100644 --- a/core/sme/inc/csr_internal.h +++ b/core/sme/inc/csr_internal.h @@ -1136,11 +1136,6 @@ static inline void csr_roaming_report_diag_event( {} #endif -bool csr_store_joinreq_param(struct mac_context *mac_ctx, - struct csr_roam_profile *profile, - tScanResultHandle scan_cache, - uint32_t *roam_id, - uint32_t session_id); bool csr_find_session_by_bssid(struct mac_context *mac_ctx, uint8_t *bssid); QDF_STATUS csr_get_channels_and_power(struct mac_context *mac); diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 5157d60e5652..47e2b47f5f23 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -20256,48 +20256,6 @@ static bool csr_is_conn_allow_5g_band(struct mac_context *mac_ctx, uint32_t chnl return true; } -/** - * csr_store_joinreq_param() - This function will store station's join - * request to that station's session. - * @mac_ctx: pointer to mac context. - * @profile: pointer to station's roam profile. - * @scan_cache: pointer to station's scan cache. - * @roam_id: reference to roam_id variable being passed. - * @session_id: station's session id. - * - * This function will store station's join request to one of the - * csr structure and add it to station's session. - * - * Return: true or false based on function's overall success. - **/ -bool csr_store_joinreq_param(struct mac_context *mac_ctx, - struct csr_roam_profile *profile, - tScanResultHandle scan_cache, - uint32_t *roam_id, - uint32_t session_id) -{ - struct csr_roam_session *sta_session; - - if (NULL == mac_ctx) - return false; - - sta_session = CSR_GET_SESSION(mac_ctx, session_id); - if (NULL == sta_session) - return false; - - sta_session->stored_roam_profile.session_id = session_id; - csr_roam_copy_profile(mac_ctx, - &sta_session->stored_roam_profile.profile, profile); - /* new bsslist_handle's memory will be relased later */ - sta_session->stored_roam_profile.bsslist_handle = scan_cache; - sta_session->stored_roam_profile.reason = eCsrHddIssued; - sta_session->stored_roam_profile.roam_id = *roam_id; - sta_session->stored_roam_profile.imediate_flag = false; - sta_session->stored_roam_profile.clear_flag = false; - - return true; -} - /** * csr_process_set_hw_mode() - Set HW mode command to PE * @mac: Globacl MAC pointer