qcacld-3.0: Store NDI beamform service bit
Store the NAN NDI beamform service bit in the NAN capability struct and add API to access that value. Change-Id: I429fc870b5287bd40855b9277d14b19574974a46 CRs-fixed: 2876730
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -1127,6 +1127,19 @@ ucfg_nan_is_sta_nan_ndi_4_port_allowed(struct wlan_objmgr_psoc *psoc)
|
||||
return psoc_nan_obj->nan_caps.sta_nan_ndi_ndi_allowed;
|
||||
}
|
||||
|
||||
bool ucfg_nan_is_beamforming_supported(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct nan_psoc_priv_obj *psoc_nan_obj;
|
||||
|
||||
psoc_nan_obj = nan_get_psoc_priv_obj(psoc);
|
||||
if (!psoc_nan_obj) {
|
||||
nan_err("psoc_nan_obj is null");
|
||||
return false;
|
||||
}
|
||||
|
||||
return psoc_nan_obj->nan_caps.ndi_txbf_supported;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
ucfg_is_nan_enabled(struct nan_psoc_priv_obj *psoc_nan_obj)
|
||||
{
|
||||
|
Reference in New Issue
Block a user