From e78d1c471a8dbefd3a6e926a9ee5bd3f2376f88b Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 22 Sep 2017 09:29:24 -0700 Subject: [PATCH] qcacld-3.0: Remove obsolete sme_roam_tkip_counter_measures() Change "qcacld-3.0: Remove obsolete wlansap_set_counter_measure()" removed the last caller of sme_roam_tkip_counter_measures. Since this function is unused and obsolete, remove it. Change-Id: Id7d48fc6946a15ddf1157417d00833a7976b5793 CRs-Fixed: 2115343 --- core/sme/inc/sme_api.h | 2 -- core/sme/src/common/sme_api.c | 34 ---------------------------------- 2 files changed, 36 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 4741b4ee12..e1220ac4a4 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -333,8 +333,6 @@ QDF_STATUS sme_roam_disconnect_sta(tHalHandle hHal, uint8_t sessionId, struct tagCsrDelStaParams *p_del_sta_params); QDF_STATUS sme_roam_deauth_sta(tHalHandle hHal, uint8_t sessionId, struct tagCsrDelStaParams *pDelStaParams); -QDF_STATUS sme_roam_tkip_counter_measures(tHalHandle hHal, uint8_t sessionId, - bool bEnable); QDF_STATUS sme_roam_get_wps_session_overlap(tHalHandle hHal, uint8_t sessionId, void *pUsrContext, void *pfnSapEventCallback, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 6835618239..974a194649 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -3689,40 +3689,6 @@ QDF_STATUS sme_roam_deauth_sta(tHalHandle hHal, uint8_t sessionId, return status; } -/* - * sme_roam_tkip_counter_measures() - - * To start or stop TKIP counter measures. This is an asynchronous API. - * - * sessionId - sessionId of SoftAP - * pPeerMacAddr - Caller allocated memory filled with peer MAC address (6 bytes) - * Return QDF_STATUS - */ -QDF_STATUS sme_roam_tkip_counter_measures(tHalHandle hHal, uint8_t sessionId, - bool bEnable) -{ - QDF_STATUS status = QDF_STATUS_E_FAILURE; - tpAniSirGlobal pMac = PMAC_STRUCT(hHal); - - if (NULL == pMac) { - QDF_ASSERT(0); - return status; - } - - status = sme_acquire_global_lock(&pMac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - if (CSR_IS_SESSION_VALID(pMac, sessionId)) - status = - csr_roam_issue_tkip_counter_measures(pMac, - sessionId, - bEnable); - else - status = QDF_STATUS_E_INVAL; - sme_release_global_lock(&pMac->sme); - } - - return status; -} - /* * sme_roam_get_associated_stas() - * To probe the list of associated stations from various modules