|
@@ -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
|