qcacld-3.0: Rename nan_disable_support to nan_conc_controlled_by_host
nan_disable_support is the firmware capability to allow host to disable NAN. So that host can disable NAN in any unsupported concurrencies. This was actually introduced to handle NAN concurrencies. Rename the capability flag and corresponding APIs across host driver to resemble the functionality. Change-Id: I24805194fdb855040bcc518acc96459ee7cb5128 CRs-Fixed: 2729984
This commit is contained in:
@@ -800,7 +800,9 @@ struct wlan_nan_rx_ops {
|
||||
|
||||
/**
|
||||
* struct nan_tgt_caps - NAN Target capabilities
|
||||
* @nan_disable_supported: Target supports disabling NAN Discovery
|
||||
* @nan_conc_control: Target supports disabling NAN Discovery from host
|
||||
* so that host is able to handle(disable) NAN
|
||||
* concurrencies.
|
||||
* @nan_dbs_supported: Target supports NAN Discovery with DBS
|
||||
* @ndi_dbs_supported: Target supports NAN Datapath with DBS
|
||||
* @nan_sap_supported: Target supports NAN Discovery with SAP concurrency
|
||||
@@ -810,7 +812,7 @@ struct wlan_nan_rx_ops {
|
||||
* by Fw or not.
|
||||
*/
|
||||
struct nan_tgt_caps {
|
||||
uint32_t nan_disable_supported:1;
|
||||
uint32_t nan_conc_control:1;
|
||||
uint32_t nan_dbs_supported:1;
|
||||
uint32_t ndi_dbs_supported:1;
|
||||
uint32_t nan_sap_supported:1;
|
||||
|
@@ -1387,5 +1387,5 @@ bool wlan_nan_get_sap_conc_support(struct wlan_objmgr_psoc *psoc)
|
||||
|
||||
return (psoc_nan_obj->nan_caps.nan_sap_supported &&
|
||||
psoc_nan_obj->nan_caps.nan_dbs_supported &&
|
||||
psoc_nan_obj->nan_caps.nan_disable_supported);
|
||||
psoc_nan_obj->nan_caps.nan_conc_control);
|
||||
}
|
||||
|
@@ -238,14 +238,14 @@ QDF_STATUS ucfg_nan_get_callbacks(struct wlan_objmgr_psoc *psoc,
|
||||
QDF_STATUS ucfg_nan_discovery_req(void *in_req, uint32_t req_type);
|
||||
|
||||
/**
|
||||
* ucfg_is_nan_disable_supported() - ucfg API to query NAN Disable support
|
||||
* ucfg_is_nan_conc_control_supported() - is NAN concurrency controlled by host
|
||||
* @psoc: pointer to psoc object
|
||||
*
|
||||
* This function returns NAN Disable support status
|
||||
* This function returns NAN concurrency support status
|
||||
*
|
||||
* Return: True if NAN Disable is supported, False otherwise
|
||||
* Return: True if NAN concurrency is controlled by host, False otherwise
|
||||
*/
|
||||
bool ucfg_is_nan_disable_supported(struct wlan_objmgr_psoc *psoc);
|
||||
bool ucfg_is_nan_conc_control_supported(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_is_nan_dbs_supported() - ucfg API to query NAN DBS support
|
||||
@@ -529,7 +529,7 @@ ucfg_nan_disable_ndi(struct wlan_objmgr_psoc *psoc, uint32_t ndi_vdev_id)
|
||||
}
|
||||
|
||||
static inline
|
||||
bool ucfg_is_nan_disable_supported(struct wlan_objmgr_psoc *psoc)
|
||||
bool ucfg_is_nan_conc_control_supported(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@@ -565,7 +565,7 @@ void ucfg_nan_set_tgt_caps(struct wlan_objmgr_psoc *psoc,
|
||||
psoc_priv->nan_caps = *nan_caps;
|
||||
}
|
||||
|
||||
bool ucfg_is_nan_disable_supported(struct wlan_objmgr_psoc *psoc)
|
||||
bool ucfg_is_nan_conc_control_supported(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct nan_psoc_priv_obj *psoc_priv;
|
||||
|
||||
@@ -575,7 +575,7 @@ bool ucfg_is_nan_disable_supported(struct wlan_objmgr_psoc *psoc)
|
||||
return false;
|
||||
}
|
||||
|
||||
return (psoc_priv->nan_caps.nan_disable_supported == 1);
|
||||
return (psoc_priv->nan_caps.nan_conc_control == 1);
|
||||
}
|
||||
|
||||
bool ucfg_is_nan_dbs_supported(struct wlan_objmgr_psoc *psoc)
|
||||
@@ -799,7 +799,7 @@ void ucfg_nan_disable_concurrency(struct wlan_objmgr_psoc *psoc)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ucfg_is_nan_disable_supported(psoc))
|
||||
if (!ucfg_is_nan_conc_control_supported(psoc))
|
||||
return;
|
||||
|
||||
qdf_spin_lock_bh(&psoc_priv->lock);
|
||||
|
Reference in New Issue
Block a user