Ver Fonte

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
Jeff Johnson há 7 anos atrás
pai
commit
e78d1c471a
2 ficheiros alterados com 0 adições e 36 exclusões
  1. 0 2
      core/sme/inc/sme_api.h
  2. 0 34
      core/sme/src/common/sme_api.c

+ 0 - 2
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,

+ 0 - 34
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