瀏覽代碼

qcacld-3.0: Remove obsolete wlansap_set_wparsn_ies()

Change "qcacld-3.0: Remove obsolete SAP support for SIOCSIWGENIE"
removed the only caller of function wlansap_set_wparsn_ies(). Since
this function is now unused and obsolete, remove it. As a result the
APWPARSNIEs field in the SAP context is also no longer used, so remove
it as well.

Change-Id: I02a1f0597688367650796b1334b6144a6afff6ee
CRs-Fixed: 2114956
Jeff Johnson 7 年之前
父節點
當前提交
67cbe1d49f
共有 3 個文件被更改,包括 0 次插入55 次删除
  1. 0 2
      core/sap/inc/sap_api.h
  2. 0 1
      core/sap/src/sap_internal.h
  3. 0 52
      core/sap/src/sap_module.c

+ 0 - 2
core/sap/inc/sap_api.h

@@ -868,8 +868,6 @@ QDF_STATUS wlansap_set_mode(void *p_cds_gctx, uint32_t mode);
 QDF_STATUS wlansap_get_acl_mode(void *p_cds_gctx, eSapMacAddrACL *mode);
 QDF_STATUS wlansap_modify_acl(void *p_cds_gctx,
 	 uint8_t *pPeerStaMac, eSapACLType listType, eSapACLCmdType cmd);
-QDF_STATUS wlansap_set_wparsn_ies
-	(void *p_cds_gctx, uint8_t *pWPARSNIEs, uint32_t WPARSNIEsLen);
 QDF_STATUS wlansap_send_action
 	(void *p_cds_gctx,
 	 const uint8_t *pBuf, uint32_t len, uint16_t wait, uint16_t channel_freq);

+ 0 - 1
core/sap/src/sap_internal.h

@@ -191,7 +191,6 @@ struct sap_context {
 
 	uint32_t nStaWPARSnReqIeLength;
 	uint8_t pStaWpaRsnReqIE[MAX_ASSOC_IND_IE_LEN];
-	tSirRSNie APWPARSNIEs;
 
 	uint8_t *channelList;
 	uint8_t num_of_channel;

+ 0 - 52
core/sap/src/sap_module.c

@@ -1806,58 +1806,6 @@ wlan_sap_getstation_ie_information
 	return qdf_status;
 }
 
-/**
- * wlansap_set_wparsn_ies() - set WPA  RSN IEs
- * @pCtx: Pointer to the global cds context; a handle to SAP's control block
- *        can be extracted from its context. When MBSSID feature is enabled,
- *        SAP context is directly passed to SAP APIs.
- * @pWPARSNIEs  : buffer to the WPA/RSN IEs
- * @WPARSNIEsLen: length of WPA/RSN IEs
- *
- * This api function provides for Ap App/HDD to set AP WPA and RSN IE in its
- * beacon and probe response.
- *
- * Return: The QDF_STATUS code associated with performing the operation
- *         QDF_STATUS_SUCCESS:  Success and error code otherwise
- */
-QDF_STATUS wlansap_set_wparsn_ies
-	(void *pCtx, uint8_t *pWPARSNIEs, uint32_t WPARSNIEsLen) {
-	struct sap_context *pSapCtx = NULL;
-	QDF_STATUS qdf_ret_status = QDF_STATUS_E_FAILURE;
-	void *hHal = NULL;
-
-	pSapCtx = CDS_GET_SAP_CB(pCtx);
-	if (NULL == pSapCtx) {
-		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
-			  "%s: Invalid SAP pointer from pCtx",
-			  __func__);
-		return QDF_STATUS_E_FAULT;
-	}
-
-	hHal = CDS_GET_HAL_CB();
-	if (NULL == hHal) {
-		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
-			  "%s: Invalid HAL pointer from p_cds_gctx",
-			  __func__);
-		return QDF_STATUS_E_FAULT;
-	}
-
-	pSapCtx->APWPARSNIEs.length = (uint16_t) WPARSNIEsLen;
-	qdf_mem_copy(pSapCtx->APWPARSNIEs.rsnIEdata, pWPARSNIEs,
-		     WPARSNIEsLen);
-
-	qdf_ret_status =
-		sme_roam_update_apwparsni_es(hHal, pSapCtx->sessionId,
-					     &pSapCtx->APWPARSNIEs);
-
-	if (qdf_ret_status == QDF_STATUS_SUCCESS)
-		return QDF_STATUS_SUCCESS;
-	else
-		return QDF_STATUS_E_FAULT;
-
-	return QDF_STATUS_E_FAULT;
-}
-
 /**
  * wlansap_send_action() - send action frame
  * @pCtx: Pointer to the global cds context; a handle to SAP's control block