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
This commit is contained in:

committed by
Madan Koyyalamudi

부모
1ceba55644
커밋
ee69671df1
@@ -29,7 +29,8 @@
|
|||||||
#include <net/netlink.h>
|
#include <net/netlink.h>
|
||||||
#include <net/cfg80211.h>
|
#include <net/cfg80211.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
|
void
|
||||||
wlan_wifi_pos_cfg80211_set_wiphy_ext_feature(struct wiphy *wiphy,
|
wlan_wifi_pos_cfg80211_set_wiphy_ext_feature(struct wiphy *wiphy,
|
||||||
struct wlan_objmgr_psoc *psoc);
|
struct wlan_objmgr_psoc *psoc);
|
||||||
|
@@ -25,7 +25,8 @@
|
|||||||
#include "wlan_objmgr_psoc_obj.h"
|
#include "wlan_objmgr_psoc_obj.h"
|
||||||
#include "wlan_cfg80211_wifi_pos.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
|
void
|
||||||
wlan_wifi_pos_cfg80211_set_wiphy_ext_feature(struct wiphy *wiphy,
|
wlan_wifi_pos_cfg80211_set_wiphy_ext_feature(struct wiphy *wiphy,
|
||||||
struct wlan_objmgr_psoc *psoc)
|
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,
|
if (wlan_psoc_nif_fw_ext2_cap_get(psoc,
|
||||||
WLAN_RTT_11AZ_MAC_PHY_SEC_SUPPORT))
|
WLAN_RTT_11AZ_MAC_PHY_SEC_SUPPORT))
|
||||||
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_SECURE_LTF);
|
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
|
#endif
|
||||||
|
Reference in New Issue
Block a user