qcacld-3.0: Store the NAN target caps inside its private obj
Host will receive the NAN related service capabilities from the SERVICE_AVAILABLE event. In the HDD callback that gets called afterwards, set the NAN related capabilities into the NAN's private PSOC object. Store the NAN target capabilities inside its private object. Change-Id: If398b6f253613fc424b7821cfc62b0984ad34b6c CRs-Fixed: 2356709
This commit is contained in:

committed by
nshrivas

parent
a6a70a98f1
commit
85aa3788b6
@@ -445,3 +445,29 @@ int ucfg_nan_register_lim_callbacks(struct wlan_objmgr_psoc *psoc,
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ucfg_nan_set_tgt_caps(struct wlan_objmgr_psoc *psoc,
|
||||
struct nan_tgt_caps *nan_caps)
|
||||
{
|
||||
struct nan_psoc_priv_obj *psoc_priv = nan_get_psoc_priv_obj(psoc);
|
||||
|
||||
if (!psoc_priv) {
|
||||
nan_err("nan psoc priv object is NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
psoc_priv->nan_caps = *nan_caps;
|
||||
}
|
||||
|
||||
bool ucfg_is_nan_dbs_supported(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct nan_psoc_priv_obj *psoc_priv;
|
||||
|
||||
psoc_priv = nan_get_psoc_priv_obj(psoc);
|
||||
if (!psoc_priv) {
|
||||
nan_err("nan psoc priv object is NULL");
|
||||
return false;
|
||||
}
|
||||
|
||||
return (psoc_priv->nan_caps.nan_dbs_supported == 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user