diff --git a/core/wma/inc/wma_internal.h b/core/wma/inc/wma_internal.h index 1e2a194742..441aae5e95 100644 --- a/core/wma/inc/wma_internal.h +++ b/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); diff --git a/core/wma/src/wma_utils.c b/core/wma/src/wma_utils.c index 26a910b57e..ed8e711319 100644 --- a/core/wma/src/wma_utils.c +++ b/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