qcacmn: Add support to enable/disable responder 11az ranging

Enable/Disable responder 11az ranging based on the below ini:
"enable_responder_11az_support"

With "enable_responder_11az_support" disabled, the below ext
cap advertisement will be disabled:
Non-TB Ranging Responder
TB Ranging Responder

and below vendor capabilities advertisment will be disabled:
QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP
QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP

Change-Id: I82eb70615f8daf82e98e7600418e07fad0672b76
CRs-Fixed: 3296410
这个提交包含在:
Pragaspathi Thilagaraj
2022-09-21 12:33:58 +05:30
提交者 Madan Koyyalamudi
父节点 1d0d789fe0
当前提交 d95e7863cd
修改 5 个文件,包含 71 行新增5 行删除

查看文件

@@ -678,7 +678,7 @@ wifi_pos_get_osif_callbacks(struct wlan_objmgr_psoc *psoc);
* Return: None
**/
void
wifi_pos_set_rsta_sec_ltf_cap(uint32_t val);
wifi_pos_set_rsta_sec_ltf_cap(bool val);
/**
* wifi_pos_get_rsta_sec_ltf_cap - Get RSTA secure LTF capability
@@ -686,5 +686,18 @@ wifi_pos_set_rsta_sec_ltf_cap(uint32_t val);
* Return: True or false
*/
bool wifi_pos_get_rsta_sec_ltf_cap(void);
/**
* wifi_pos_set_rsta_11az_ranging_cap() - Enable/Disable R-STA 11az ranging
* @val: Value to set
*/
void wifi_pos_set_rsta_11az_ranging_cap(bool val);
/**
* wifi_pos_get_rsta_11az_ranging_cap() - Get if RSTA 11az ranging is enabled
*
* Return: True if 11az ranging is enabled
*/
bool wifi_pos_get_rsta_11az_ranging_cap(void);
#endif
#endif /* _WIFI_POS_API_H_ */

查看文件

@@ -90,5 +90,11 @@ ucfg_wifi_pos_is_ltf_keyseed_required_for_peer(struct wlan_objmgr_peer *peer)
{
return wifi_pos_is_ltf_keyseed_required_for_peer(peer);
}
static inline
bool ucfg_wifi_pos_get_rsta_11az_ranging_cap(void)
{
return wifi_pos_get_rsta_11az_ranging_cap();
}
#endif
#endif /* _WIFI_POS_UCFG_H_ */

查看文件

@@ -259,6 +259,7 @@ struct wifi_pos_legacy_ops {
* @wifi_pos_lock: lock to access wifi pos priv object
* @oem_6g_support_disable: oem target 6ghz support is disabled if set
* @enable_rsta_secure_ltf_support: Enable RSTA secure LTF support
* @enable_rsta_11az_ranging: Enable RSTA 802.11 az secure ranging support
* @wifi_pos_req_handler: function pointer to handle TLV or non-TLV
* @wifi_pos_send_rsp: function pointer to send msg to userspace APP
* @wifi_pos_get_phy_mode: function pointer to get wlan phymode for given
@@ -314,6 +315,7 @@ struct wifi_pos_psoc_priv_obj {
qdf_spinlock_t wifi_pos_lock;
bool oem_6g_support_disable;
bool enable_rsta_secure_ltf_support;
bool enable_rsta_11az_ranging;
struct wifi_pos_legacy_ops *legacy_ops;
QDF_STATUS (*wifi_pos_req_handler)(struct wlan_objmgr_psoc *psoc,
struct wifi_pos_req_msg *req);