Ver código fonte

qcacld-3.0: Remove wma_get_mac_id_of_vdev()

Function wma_get_mac_id_of_vdev() is unused, so remove it.

Change-Id: Id9283aaff4f9c83f427311191cc3d1777810ac91
CRs-Fixed: 2371194
Jeff Johnson 6 anos atrás
pai
commit
7146db75bc
2 arquivos alterados com 0 adições e 25 exclusões
  1. 0 1
      core/wma/inc/wma_api.h
  2. 0 24
      core/wma/src/wma_utils.c

+ 0 - 1
core/wma/inc/wma_api.h

@@ -167,7 +167,6 @@ void wma_set_fw_wlan_feat_caps(enum cap_bitmap feature);
 
 QDF_STATUS wma_post_ctrl_msg(struct mac_context *mac, struct scheduler_msg *pMsg);
 
-int8_t wma_get_mac_id_of_vdev(uint32_t vdev_id);
 void wma_update_intf_hw_mode_params(uint32_t vdev_id, uint32_t mac_id,
 				uint32_t cfgd_hw_mode_index);
 void wma_set_dbs_capability_ut(uint32_t dbs);

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

@@ -4054,30 +4054,6 @@ QDF_STATUS wma_get_wcnss_software_version(uint8_t *version,
 	return QDF_STATUS_SUCCESS;
 }
 
-/**
- * wma_get_mac_id_of_vdev() - Get MAC id corresponding to a vdev
- * @vdev_id: VDEV whose MAC ID is required
- *
- * Get MAC id corresponding to a vdev id from the WMA structure
- *
- * Return: Negative value on failure and MAC id on success
- */
-int8_t wma_get_mac_id_of_vdev(uint32_t vdev_id)
-{
-	tp_wma_handle wma;
-
-	wma = cds_get_context(QDF_MODULE_ID_WMA);
-	if (!wma) {
-		WMA_LOGE("%s: Invalid WMA handle", __func__);
-		return -EINVAL;
-	}
-
-	if (wma->interfaces)
-		return wma->interfaces[vdev_id].mac_id;
-
-	return -EINVAL;
-}
-
 /**
  * wma_update_intf_hw_mode_params() - Update WMA params
  * @vdev_id: VDEV id whose params needs to be updated