From 13dbfb7bb66a2d2baaa5742aceeb13ab5b611068 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Fri, 2 Feb 2018 15:18:33 -0800 Subject: [PATCH] qcacmn: Add get channel width from phy mode API Add get channel width from phy mode API which will be used by ndp schedule update event. Change-Id: I13d00c0b818eb0da434c8a5372b2ab7b6693f22a CRs-Fixed: 2216801 --- wmi_unified_api.h | 9 +++++++++ wmi_unified_param.h | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index e4f5cb2b64..7f92073701 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -2242,4 +2242,13 @@ QDF_STATUS wmi_unified_offload_11k_cmd(void *wmi_hdl, QDF_STATUS wmi_unified_invoke_neighbor_report_cmd(void *wmi_hdl, struct wmi_invoke_neighbor_report_params *params); +/* wmi_get_ch_width_from_phy_mode() - convert phy mode to channel width + * @wmi_hdl: wmi handle + * @phymode: phy mode + * + * Return: wmi channel width + */ +wmi_host_channel_width wmi_get_ch_width_from_phy_mode(void *wmi_hdl, + WMI_HOST_WLAN_PHY_MODE phymode); + #endif /* _WMI_UNIFIED_API_H_ */ diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 8fef65234f..5a9c3f263f 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -404,6 +404,11 @@ typedef void *ol_scn_t; typedef int (*wmi_unified_event_handler)(ol_scn_t scn_handle, uint8_t *event_buf, uint32_t len); +/** + * @WMI_HOST_WLAN_PHY_MODE: Host based enum ID for corresponding in + * WLAN_PHY_MODE. This should be consistent with WLAN_PHY_MODE always to avoid + * breaking the WMI + */ typedef enum { WMI_HOST_MODE_11A = 0, /* 11a Mode */ WMI_HOST_MODE_11G = 1, /* 11b/g Mode */