Kaynağa Gözat

qcacld-3.0: Remove is_nan_enabled flag from wma_handle_t

The is_nan_enabled flag in wma_handle_t is written but never read.
Since it is unused, remove it along with the logic that writes it.

Change-Id: I3e7d09ac1ab77427d37a8a45ca5f1612b05c5339
CRs-Fixed: 2370875
Jeff Johnson 6 yıl önce
ebeveyn
işleme
fe31a6d6d4
2 değiştirilmiş dosya ile 0 ekleme ve 25 silme
  1. 0 4
      core/wma/inc/wma.h
  2. 0 21
      core/wma/src/wma_main.c

+ 0 - 4
core/wma/inc/wma.h

@@ -1048,7 +1048,6 @@ struct wma_valid_channels {
  * @IsRArateLimitEnabled: RA rate limiti s enabled or not
  * @RArateLimitInterval: RA rate limit interval
  * @is_lpass_enabled: Flag to indicate if LPASS feature is enabled or not
- * @is_nan_enabled: Flag to indicate if NaN feature is enabled or not
  * @staMaxLIModDtim: station max listen interval
  * @staModDtim: station mode DTIM
  * @staDynamicDtim: station dynamic DTIM
@@ -1194,9 +1193,6 @@ typedef struct {
 #endif
 #ifdef WLAN_FEATURE_LPSS
 	bool is_lpass_enabled;
-#endif
-#ifdef WLAN_FEATURE_NAN
-	bool is_nan_enabled;
 #endif
 	uint8_t staMaxLIModDtim;
 	uint8_t staModDtim;

+ 0 - 21
core/wma/src/wma_main.c

@@ -1835,26 +1835,6 @@ int wma_process_fw_event_handler(void *ctx, void *htc_packet, uint8_t rx_ctx)
 	return err;
 }
 
-#ifdef WLAN_FEATURE_NAN
-/**
- * wma_set_nan_enable() - set nan enable flag in WMA handle
- * @wma_handle: Pointer to wma handle
- * @cds_cfg: Pointer to CDS Configuration
- *
- * Return: none
- */
-static void wma_set_nan_enable(tp_wma_handle wma_handle,
-				struct cds_config_info *cds_cfg)
-{
-	wma_handle->is_nan_enabled = cfg_nan_get_enable(wma_handle->psoc);
-}
-#else
-static void wma_set_nan_enable(tp_wma_handle wma_handle,
-				struct cds_config_info *cds_cfg)
-{
-}
-#endif
-
 /**
  * wma_init_max_no_of_peers - API to initialize wma configuration params
  * @wma_handle: WMA Handle
@@ -3337,7 +3317,6 @@ QDF_STATUS wma_open(struct wlan_objmgr_psoc *psoc,
 #ifdef WLAN_FEATURE_LPSS
 	wma_handle->is_lpass_enabled = cds_cfg->is_lpass_enabled;
 #endif
-	wma_set_nan_enable(wma_handle, cds_cfg);
 	wma_handle->interfaces = qdf_mem_malloc(sizeof(struct wma_txrx_node) *
 						wma_handle->max_bssid);
 	if (!wma_handle->interfaces) {