Преглед на файлове

qcacld-3.0: Remove SapQosCfg from struct sap_context

The SapQosCfg in struct sap_context is written, but is never read.
Since this information is unused, remove it.

Change-Id: Ic04980cd365524d458f6cb5d3e1ea411d1efd10f
CRs-Fixed: 2423726
Jeff Johnson преди 6 години
родител
ревизия
eb18030b81
променени са 2 файла, в които са добавени 0 реда и са изтрити 30 реда
  1. 0 3
      core/sap/src/sap_api_link_cntl.c
  2. 0 27
      core/sap/src/sap_internal.h

+ 0 - 3
core/sap/src/sap_api_link_cntl.c

@@ -687,7 +687,6 @@ wlansap_roam_process_infra_assoc_ind(struct sap_context *sap_ctx,
 	if (sap_ctx->nStaWPARSnReqIeLength)
 		qdf_mem_copy(sap_ctx->pStaWpaRsnReqIE, csr_roam_info->prsnIE,
 			     sap_ctx->nStaWPARSnReqIeLength);
-	sap_ctx->SapQosCfg.WmmIsEnabled = csr_roam_info->wmmEnabledSta;
 	/* MAC filtering */
 	qdf_status = sap_is_peer_mac_allowed(sap_ctx,
 				     (uint8_t *) csr_roam_info->peerMac.bytes);
@@ -1019,8 +1018,6 @@ wlansap_roam_callback(void *ctx, struct csr_roam_info *csr_roam_info,
 				     csr_roam_info->prsnIE,
 				     sap_ctx->nStaWPARSnReqIeLength);
 
-		sap_ctx->SapQosCfg.WmmIsEnabled =
-			csr_roam_info->wmmEnabledSta;
 		/* Fill in the event structure */
 		qdf_status = sap_signal_hdd_event(sap_ctx, csr_roam_info,
 					eSAP_STA_ASSOC_EVENT,

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

@@ -36,16 +36,6 @@
 #include <wlan_objmgr_pdev_obj.h>
 #include "wlan_vdev_mlme_api.h"
 
-/*----------------------------------------------------------------------------
- * Preprocessor Definitions and Constants
- * -------------------------------------------------------------------------*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*----------------------------------------------------------------------------
- *  Defines
- * -------------------------------------------------------------------------*/
 /* DFS Non Occupancy Period =30 minutes, in microseconds */
 #define SAP_DFS_NON_OCCUPANCY_PERIOD      (30 * 60 * 1000 * 1000)
 
@@ -88,17 +78,6 @@ enum sap_fsm_state {
 	SAP_STOPPING
 };
 
-/*----------------------------------------------------------------------------
- *  SAP context Data Type Declaration
- * -------------------------------------------------------------------------*/
-/*----------------------------------------------------------------------------
- *  Type Declarations - QOS related
- * -------------------------------------------------------------------------*/
-/* SAP QOS config */
-typedef struct sSapQosCfg {
-	uint8_t WmmIsEnabled;
-} tSapQosCfg;
-
 typedef struct sSapAcsChannelInfo {
 	uint32_t channelNum;
 	uint32_t weight;
@@ -163,9 +142,6 @@ struct sap_context {
 	struct qdf_mac_addr denyMacList[MAX_ACL_MAC_ADDRESS];
 	uint8_t nDenyMac;
 
-	/* QOS config */
-	tSapQosCfg SapQosCfg;
-
 	void *user_context;
 
 	uint32_t nStaWPARSnReqIeLength;
@@ -532,7 +508,4 @@ QDF_STATUS sap_acquire_vdev_ref(struct mac_context *mac,
  */
 void sap_release_vdev_ref(struct sap_context *sap_ctx);
 
-#ifdef __cplusplus
-}
-#endif
 #endif