diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h index 7c5d463c2611..7563f19e5d75 100644 --- a/core/wma/inc/wma_api.h +++ b/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); diff --git a/core/wma/src/wma_utils.c b/core/wma/src/wma_utils.c index 602660506673..a255bafbeac9 100644 --- a/core/wma/src/wma_utils.c +++ b/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