qcacld-3.0: Add a log to print nan separate vdev capa of host and fw

Currently, there is no log to identify whether the firmware doesn't
support NAN separate vdev or it's disabled through the ini param
nan_separate_iface_support. Add a log to print the firmware
and host capabilities when either of these is not supported.

Change-Id: I76ad6e192b7b7fc07c106f652df947767f7b4578
CRs-Fixed: 2684544
This commit is contained in:
Srinivas Dasari
2020-05-12 23:49:31 +05:30
committed by nshrivas
vanhempi 1bb89fb4dc
commit f2f38a5e89

Näytä tiedosto

@@ -1142,7 +1142,7 @@ QDF_STATUS ucfg_disable_nan_discovery(struct wlan_objmgr_psoc *psoc,
bool ucfg_nan_is_vdev_creation_allowed(struct wlan_objmgr_psoc *psoc)
{
struct nan_psoc_priv_obj *psoc_nan_obj;
bool support = false;
bool host_support, fw_support;
psoc_nan_obj = nan_get_psoc_priv_obj(psoc);
if (!psoc_nan_obj) {
@@ -1150,11 +1150,15 @@ bool ucfg_nan_is_vdev_creation_allowed(struct wlan_objmgr_psoc *psoc)
return false;
}
if (ucfg_nan_is_vdev_creation_supp_by_fw(psoc_nan_obj) &&
ucfg_nan_is_vdev_creation_supp_by_host(psoc_nan_obj))
support = true;
host_support = ucfg_nan_is_vdev_creation_supp_by_host(psoc_nan_obj);
fw_support = ucfg_nan_is_vdev_creation_supp_by_fw(psoc_nan_obj);
if (!host_support || !fw_support) {
nan_debug("NAN separate vdev%s supported by host,%s supported by firmware",
host_support ? "" : " not", fw_support ? "" : " not");
return false;
}
return support;
return true;
}
void