From 759a833fdc103482d4978c7fd3a3a0e4da0f706e Mon Sep 17 00:00:00 2001 From: Rhythm Patwa Date: Tue, 11 Aug 2020 01:37:38 -0700 Subject: [PATCH] qcacmn: Add API to get target capability for Preamble Puncturing Tx Add API to get target capability for 'Preamble Puncturing Tx' Change-Id: Ieb09bb4920112b52caf567381efb380e21d9c5cb --- target_if/core/inc/target_if.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/target_if/core/inc/target_if.h b/target_if/core/inc/target_if.h index 12c723ad2f03..543820f77b0e 100644 --- a/target_if/core/inc/target_if.h +++ b/target_if/core/inc/target_if.h @@ -2434,4 +2434,21 @@ target_pdev_is_scan_radio_supported(struct wlan_objmgr_pdev *pdev, QDF_STATUS target_pdev_scan_radio_is_dfs_enabled(struct wlan_objmgr_pdev *pdev, bool *is_dfs_en); + +/** + * target_psoc_get_preamble_puncture_cap() - Get Preamble Puncturing capability + * @psoc_info: pointer to structure target_psoc_info + * + * API to get the target capability for Preamble Punctured Tx + * + * Return: target capability for Preamble Punctured Tx. + */ +static inline uint32_t target_psoc_get_preamble_puncture_cap( + struct target_psoc_info *psoc_info) +{ + if (!psoc_info) + return 0; + + return psoc_info->info.service_ext2_param.preamble_puncture_bw_cap; +} #endif