From 633bdcaa81d3b00722ef13737b0d0b81d75b94ab Mon Sep 17 00:00:00 2001 From: Chunquan Luo Date: Tue, 1 Aug 2023 23:20:51 -0700 Subject: [PATCH] qcacmn: Switch static func of chan_width to common Remove static from func target_if_phy_ch_width_to_wmi_chan_width for it can be share at other place. Change-Id: I2ec80040fbe61a7691b1ad8e7b6501eb154abb44 CRs-Fixed: 3578269 --- target_if/core/inc/target_if.h | 12 ++++++++++++ .../mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c | 10 +--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/target_if/core/inc/target_if.h b/target_if/core/inc/target_if.h index 42b1a54da3..6ae2885c9a 100644 --- a/target_if/core/inc/target_if.h +++ b/target_if/core/inc/target_if.h @@ -3060,6 +3060,18 @@ static inline void target_if_set_reo_shared_qref_feature(struct wlan_objmgr_psoc } #endif +/** + * target_if_phy_ch_width_to_wmi_chan_width() - convert host ch_width to fw format + * + * @ch_width: enum phy_ch_width + * + * Convert host driver chan width value to fw recognizable value. + * + * return: wmi_host_channel_width + */ +wmi_host_channel_width +target_if_phy_ch_width_to_wmi_chan_width(enum phy_ch_width ch_width); + /** * target_if_wmi_chan_width_to_phy_ch_width() - convert channel width from * wmi_host_channel_width to phy_ch_width diff --git a/target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c b/target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c index 3062567d67..13e500c5a4 100644 --- a/target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c +++ b/target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c @@ -1387,15 +1387,7 @@ static void target_if_vdev_register_set_mac_address( } #endif -/** - * target_if_phy_ch_width_to_wmi_chan_width() - convert channel width from - * phy_ch_width to - * wmi_host_channel_width - * @ch_width: enum phy_ch_width - * - * return: wmi_host_channel_width - */ -static wmi_host_channel_width +wmi_host_channel_width target_if_phy_ch_width_to_wmi_chan_width(enum phy_ch_width ch_width) { switch (ch_width) {