qcacmn: Set 11az Ranging related feature capabilities

Set 11az Ranging related extended capabilities over the
wiphy extended capabilities. Mask these fields for SAP iface

Change-Id: Ib6ce92f42d7125b4e9532d5c893ffe955be0f0dc
CRs-Fixed: 3235143
This commit is contained in:
Pragaspathi Thilagaraj
2022-07-04 00:17:31 +05:30
committed by Madan Koyyalamudi
parent ba8cfc391a
commit 788ca7bb89
3 changed files with 78 additions and 10 deletions

View File

@@ -29,15 +29,27 @@
#include <net/netlink.h>
#include <net/cfg80211.h>
#if defined(CFG80211_PASN_SUPPORT) && defined(WIFI_POS_CONVERGED) && \
defined(WLAN_FEATURE_RTT_11AZ_SUPPORT)
#if 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);
/**
* wlan_wifi_pos_cfg80211_set_features - Set the vendor feature flags
* @psoc: Global PSOC pointer
* @feature_flags: feature flags
*/
void wlan_wifi_pos_cfg80211_set_features(struct wlan_objmgr_psoc *psoc,
uint8_t *feature_flags);
#else
static inline
void wlan_wifi_pos_cfg80211_set_features(struct wlan_objmgr_psoc *psoc,
uint8_t *feature_flags)
{}
static inline void
wlan_wifi_pos_cfg80211_set_wiphy_ext_feature(struct wiphy *wiphy,
struct wlan_objmgr_psoc *psoc)
{}
#endif /* WIFI_POS_CONVERGED */
#endif /* WIFI_POS_CONVERGED && WLAN_FEATURE_RTT_11AZ_SUPPORT*/
#endif /* _WLAN_CFG80211_WIFI_POS_H_ */