diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index cb1c5113e37c7..4b29e21213f5b 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -789,8 +789,6 @@ QDF_STATUS sme_set_neighbor_scan_period(mac_handle_t mac_handle, const uint16_t nNeighborScanPeriod); uint16_t sme_get_neighbor_scan_period(mac_handle_t mac_handle, uint8_t sessionId); -QDF_STATUS sme_set_neighbor_scan_min_period(mac_handle_t mac_handle, - uint8_t session_id, const uint16_t neighbor_scan_min_period); QDF_STATUS sme_set_roam_bmiss_first_bcnt(mac_handle_t mac_handle, uint8_t sessionId, const uint8_t nRoamBmissFirstBcnt); QDF_STATUS sme_set_roam_bmiss_final_bcnt(mac_handle_t mac_handle, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index de4eb3bb2fdcb..edc117ea89ee1 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -7127,53 +7127,6 @@ uint16_t sme_get_neighbor_scan_period(mac_handle_t mac_handle, neighborScanPeriod; } -/** - * sme_set_neighbor_scan_min_period() - Update neighbor_scan_min_period - * This function is called through dynamic setConfig callback function - * to configure neighbor_scan_min_period - * - * @mac_handle: Opaque handle to the global MAC context - * @session_id - Session Identifier - * @neighbor_scan_min_period - neighbor scan min period - * - * Return - QDF_STATUS - */ -QDF_STATUS sme_set_neighbor_scan_min_period(mac_handle_t mac_handle, - uint8_t session_id, - const uint16_t - neighbor_scan_min_period) -{ - struct mac_context *pmac = MAC_CONTEXT(mac_handle); - QDF_STATUS status = QDF_STATUS_SUCCESS; - tpCsrNeighborRoamControlInfo p_neighbor_roam_info = NULL; - - if (session_id >= CSR_ROAM_SESSION_MAX) { - sme_err("Invalid sme session id: %d", session_id); - return QDF_STATUS_E_INVAL; - } - - status = sme_acquire_global_lock(&pmac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - p_neighbor_roam_info = &pmac-> - roam.neighborRoamInfo[session_id]; - sme_debug("LFR:set neighbor scan min period, old:%d, " - "new: %d, state: %s", - pmac->mlme_cfg->lfr. - neighbor_scan_min_timer_period, - neighbor_scan_min_period, - mac_trace_get_neighbour_roam_state(pmac->roam. - neighborRoamInfo[session_id]. - neighborRoamState)); - pmac->mlme_cfg->lfr.neighbor_scan_min_timer_period = - neighbor_scan_min_period; - p_neighbor_roam_info->cfgParams.neighbor_scan_min_period = - neighbor_scan_min_period; - sme_release_global_lock(&pmac->sme); - } - - return status; -} - /* * sme_get_roam_rssi_diff() - get Roam rssi diff * This is a synchronous call