qcacld-3.0: Add FW capability check for Multipass SAP

Add check to determine whether FW support multipass
SAP before enabling multipass support

Change-Id: I7db5a7bad6b9ac89c8c4e7c4c177695671402657
CRs-Fixed: 3515310
This commit is contained in:
Vijay Raj
2023-05-30 23:54:44 -07:00
committed by Rahul Choudhary
parent e89ec3ebc6
commit cb03ca8b08
5 changed files with 57 additions and 12 deletions

View File

@@ -6077,6 +6077,19 @@ bool mlme_get_user_ps(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id)
return usr_ps_enable;
}
bool wlan_mlme_is_multipass_sap(struct wlan_objmgr_psoc *psoc)
{
struct target_psoc_info *info;
info = wlan_psoc_get_tgt_if_handle(psoc);
if (!info) {
mlme_legacy_err("target_psoc_info is null");
return QDF_STATUS_E_FAILURE;
}
return target_is_multipass_sap(info);
}
QDF_STATUS wlan_mlme_get_phy_max_freq_range(struct wlan_objmgr_psoc *psoc,
uint32_t *low_2ghz_chan,
uint32_t *high_2ghz_chan,