From 459dde4818fa7ae8f7edaf5e5e9b5d68d3e19c89 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 17 Dec 2018 22:41:28 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_store_joinreq_param() Change I6cb9fe12bee3702556c9b52e7ccb7c69c762d8de ("qcacld-3.0: Remove legacy code for policy manager restructuring") removed the last client of sme_store_joinreq_param(). Since it is no longer used, remove it. Change-Id: I92f79f595e881fccb6eb5e87fcfa29e8f26fa1a5 CRs-Fixed: 2370896 --- core/sme/inc/sme_api.h | 5 ----- core/sme/src/common/sme_api.c | 40 ----------------------------------- 2 files changed, 45 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index c4644c05e3d4..64ba35ff3b87 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -455,11 +455,6 @@ QDF_STATUS sme_get_ap_channel_from_scan_cache( QDF_STATUS sme_get_ap_channel_from_scan(void *profile, tScanResultHandle *scan_cache, uint8_t *ap_chnl_id); -bool sme_store_joinreq_param(mac_handle_t mac_handle, - struct csr_roam_profile *profile, - tScanResultHandle scan_cache, - uint32_t *roam_id, - uint32_t session_id); bool sme_clear_joinreq_param(mac_handle_t mac_handle, uint32_t session_id); QDF_STATUS sme_scan_flush_result(mac_handle_t mac_handle); diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 8902f8476a0c..4648673b9869 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -2709,46 +2709,6 @@ QDF_STATUS sme_get_ap_channel_from_scan_cache( return status; } -/** - * sme_store_joinreq_param() - This function will pass station's join - * request to store to csr. - * @mac_handle: Opaque handle to the global 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 pass station's join request further down to csr - * to store it. this stored parameter will be used later. - * - * Return: true or false based on function's overall success. - **/ -bool sme_store_joinreq_param(mac_handle_t mac_handle, - struct csr_roam_profile *profile, - tScanResultHandle scan_cache, - uint32_t *roam_id, - uint32_t session_id) -{ - struct mac_context *mac_ctx = MAC_CONTEXT(mac_handle); - QDF_STATUS status = QDF_STATUS_E_FAILURE; - bool ret_status = true; - - MTRACE(qdf_trace(QDF_MODULE_ID_SME, - TRACE_CODE_SME_RX_HDD_STORE_JOIN_REQ, - session_id, 0)); - status = sme_acquire_global_lock(&mac_ctx->sme); - if (QDF_STATUS_SUCCESS == status) { - if (false == csr_store_joinreq_param(mac_ctx, profile, - scan_cache, roam_id, session_id)) - ret_status = false; - sme_release_global_lock(&mac_ctx->sme); - } else { - ret_status = false; - } - - return ret_status; -} - /** * sme_clear_joinreq_param() - This function will pass station's clear * the join request to csr.