qcacld-3.0: Add INI parameter to configure NAN in 6GHz

Currently, there is no INI parameter to control NAN feature in 6GHz
frequency band. Because of this, there is no provision to disable the
NAN in 6GHz when there is no requirement.

To address this, add INI parameter to configure NAN feature in 6GHz.

Change-Id: I6b4faa8e8aa1a3df72539fed1d7ff3cc8287debd
CRs-Fixed: 2817920
Цей коміт міститься в:
Bapiraju Alla
2020-11-10 14:41:27 +05:30
зафіксовано snandini
джерело 44de657a54
коміт 20da92c02f
6 змінених файлів з 55 додано та 0 видалено

Переглянути файл

@@ -476,6 +476,16 @@ QDF_STATUS ucfg_nan_disable_ind_to_userspace(struct wlan_objmgr_psoc *psoc);
* Return: True if NAN is allowed on the given frequency
*/
bool ucfg_is_nan_allowed_on_freq(struct wlan_objmgr_pdev *pdev, uint32_t freq);
/**
* ucfg_get_disable_6g_nan() - Get NAN feature configuration for 6GHz
* @psoc: pointer to psoc object
*
* Return: Boolean flag indicating whether the NAN feature is disabled in
* 6GHz or not
*/
bool ucfg_get_disable_6g_nan(struct wlan_objmgr_psoc *psoc);
#else /* WLAN_FEATURE_NAN */
static inline
@@ -595,5 +605,10 @@ bool ucfg_is_nan_allowed_on_freq(struct wlan_objmgr_pdev *pdev, uint32_t freq)
{
return false;
}
static inline bool ucfg_get_disable_6g_nan(struct wlan_objmgr_psoc *psoc)
{
return true;
}
#endif /* WLAN_FEATURE_NAN */
#endif /* _NAN_UCFG_API_H_ */