From ee69671df1b81e1cb40c2adf35105dfffc0337cc Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Thu, 30 Jun 2022 13:16:38 +0530 Subject: [PATCH] qcacmn: Donot advertise TB and NTB ranging support Donot advertise TB and NTB ranging support as kernel doesn't support that flags. Change-Id: I43ba16a7130dfc570c371db8474bbc136e576173 CRs-Fixed: 3233041 --- os_if/linux/wifi_pos/inc/wlan_cfg80211_wifi_pos.h | 3 ++- os_if/linux/wifi_pos/src/wlan_cfg80211_wifi_pos.c | 9 ++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/os_if/linux/wifi_pos/inc/wlan_cfg80211_wifi_pos.h b/os_if/linux/wifi_pos/inc/wlan_cfg80211_wifi_pos.h index 9ced3f6bcb..5628df6305 100644 --- a/os_if/linux/wifi_pos/inc/wlan_cfg80211_wifi_pos.h +++ b/os_if/linux/wifi_pos/inc/wlan_cfg80211_wifi_pos.h @@ -29,7 +29,8 @@ #include #include -#if defined(CFG80211_PASN_SUPPORT) && defined(WIFI_POS_CONVERGED) +#if defined(CFG80211_PASN_SUPPORT) && defined(WIFI_POS_CONVERGED) && \ + defined(WLAN_FEATURE_RTT_11AZ_SUPPORT) void wlan_wifi_pos_cfg80211_set_wiphy_ext_feature(struct wiphy *wiphy, struct wlan_objmgr_psoc *psoc); diff --git a/os_if/linux/wifi_pos/src/wlan_cfg80211_wifi_pos.c b/os_if/linux/wifi_pos/src/wlan_cfg80211_wifi_pos.c index fcc8556837..285960cfea 100644 --- a/os_if/linux/wifi_pos/src/wlan_cfg80211_wifi_pos.c +++ b/os_if/linux/wifi_pos/src/wlan_cfg80211_wifi_pos.c @@ -25,7 +25,8 @@ #include "wlan_objmgr_psoc_obj.h" #include "wlan_cfg80211_wifi_pos.h" -#if defined(CFG80211_PASN_SUPPORT) && defined(WIFI_POS_CONVERGED) +#if defined(CFG80211_PASN_SUPPORT) && defined(WIFI_POS_CONVERGED) && \ + defined(WLAN_FEATURE_RTT_11AZ_SUPPORT) void wlan_wifi_pos_cfg80211_set_wiphy_ext_feature(struct wiphy *wiphy, struct wlan_objmgr_psoc *psoc) @@ -39,11 +40,5 @@ wlan_wifi_pos_cfg80211_set_wiphy_ext_feature(struct wiphy *wiphy, if (wlan_psoc_nif_fw_ext2_cap_get(psoc, WLAN_RTT_11AZ_MAC_PHY_SEC_SUPPORT)) wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_SECURE_LTF); - - if (wlan_psoc_nif_fw_ext_cap_get(psoc, WLAN_RTT_11AZ_NTB_SUPPORT)) - wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_NTB_RANGING); - - if (wlan_psoc_nif_fw_ext2_cap_get(psoc, WLAN_RTT_11AZ_TB_SUPPORT)) - wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_TB_RANGING); } #endif