Browse Source

qcacld-3.0: Remove obsolete wma_is_*_active()

The following functions are unused, so remove them:
- wma_is_sap_active()
- wma_is_p2p_go_active()
- wma_is_p2p_cli_active()
- wma_is_sta_active()

Change-Id: I801176fb2b4df9308744fcde27dc789e88e1e550
CRs-Fixed: 2361895
Jeff Johnson 6 years ago
parent
commit
fb1b1f9bd0
2 changed files with 0 additions and 92 deletions
  1. 0 8
      core/wma/inc/wma_internal.h
  2. 0 84
      core/wma/src/wma_utils.c

+ 0 - 8
core/wma/inc/wma_internal.h

@@ -976,14 +976,6 @@ QDF_STATUS wma_wni_cfg_dnld(tp_wma_handle wma_handle);
 int wma_unified_debug_print_event_handler(void *handle, uint8_t *datap,
 					  uint32_t len);
 
-bool wma_is_sap_active(tp_wma_handle wma_handle);
-
-bool wma_is_p2p_go_active(tp_wma_handle wma_handle);
-
-bool wma_is_p2p_cli_active(tp_wma_handle wma_handle);
-
-bool wma_is_sta_active(tp_wma_handle wma_handle);
-
 WLAN_PHY_MODE wma_peer_phymode(tSirNwType nw_type, uint8_t sta_type,
 			       uint8_t is_ht, uint8_t ch_width,
 			       uint8_t is_vht, bool is_he);

+ 0 - 84
core/wma/src/wma_utils.c

@@ -3567,90 +3567,6 @@ int wma_unified_debug_print_event_handler(void *handle, uint8_t *datap,
 #endif /* BIG_ENDIAN_HOST */
 }
 
-/**
- * wma_is_sap_active() - check sap is active or not
- * @handle: wma handle
- *
- * Return: true/false
- */
-bool wma_is_sap_active(tp_wma_handle wma_handle)
-{
-	int i;
-
-	for (i = 0; i < wma_handle->max_bssid; i++) {
-		if (!wma_is_vdev_up(i))
-			continue;
-		if (wma_handle->interfaces[i].type == WMI_VDEV_TYPE_AP &&
-		    wma_handle->interfaces[i].sub_type == 0)
-			return true;
-	}
-	return false;
-}
-
-/**
- * wma_is_p2p_go_active() - check p2p go is active or not
- * @handle: wma handle
- *
- * Return: true/false
- */
-bool wma_is_p2p_go_active(tp_wma_handle wma_handle)
-{
-	int i;
-
-	for (i = 0; i < wma_handle->max_bssid; i++) {
-		if (!wma_is_vdev_up(i))
-			continue;
-		if (wma_handle->interfaces[i].type == WMI_VDEV_TYPE_AP &&
-		    wma_handle->interfaces[i].sub_type ==
-		    WMI_UNIFIED_VDEV_SUBTYPE_P2P_GO)
-			return true;
-	}
-	return false;
-}
-
-/**
- * wma_is_p2p_cli_active() - check p2p cli is active or not
- * @handle: wma handle
- *
- * Return: true/false
- */
-bool wma_is_p2p_cli_active(tp_wma_handle wma_handle)
-{
-	int i;
-
-	for (i = 0; i < wma_handle->max_bssid; i++) {
-		if (!wma_is_vdev_up(i))
-			continue;
-		if (wma_handle->interfaces[i].type == WMI_VDEV_TYPE_STA &&
-		    wma_handle->interfaces[i].sub_type ==
-		    WMI_UNIFIED_VDEV_SUBTYPE_P2P_CLIENT)
-			return true;
-	}
-	return false;
-}
-
-/**
- * wma_is_sta_active() - check sta is active or not
- * @handle: wma handle
- *
- * Return: true/false
- */
-bool wma_is_sta_active(tp_wma_handle wma_handle)
-{
-	int i;
-
-	for (i = 0; i < wma_handle->max_bssid; i++) {
-		if (!wma_is_vdev_up(i))
-			continue;
-		if (wma_handle->interfaces[i].type == WMI_VDEV_TYPE_STA &&
-		    wma_handle->interfaces[i].sub_type == 0)
-			return true;
-		if (wma_handle->interfaces[i].type == WMI_VDEV_TYPE_IBSS)
-			return true;
-	}
-	return false;
-}
-
 /**
  * wma_peer_phymode() - get phymode
  * @nw_type: nw type