qcacld-3.0: Update for converged NAN config params
Update driver to use NAN config params based converged CFG component. Cleanup hdd config references to nan ini params. Change-Id: I5af85d68ee53ad557e64523f7a1719e328536926 CRs-fixed: 2290360
This commit is contained in:
@@ -31,7 +31,14 @@
|
||||
#define CFG_TDLS_ALL
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_FEATURE_NAN_CONVERGENCE
|
||||
#include "cfg_nan.h"
|
||||
#else
|
||||
#define CFG_NAN_ALL
|
||||
#endif
|
||||
|
||||
#define CFG_ALL \
|
||||
CFG_CONVERGED_ALL \
|
||||
CFG_P2P_ALL \
|
||||
CFG_TDLS_ALL
|
||||
CFG_TDLS_ALL \
|
||||
CFG_NAN_ALL
|
||||
|
@@ -634,38 +634,6 @@ bool pmo_core_is_lpass_enabled(struct wlan_objmgr_vdev *vdev)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_FEATURE_NAN
|
||||
/**
|
||||
* pmo_is_nan_enabled() - check if NaN is enabled
|
||||
* @vdev: objmgr vdev handle
|
||||
*
|
||||
* WoW is needed if LPASS or NaN feature is enabled in INI because
|
||||
* target can't wake up itself if its put in PDEV suspend when LPASS
|
||||
* or NaN features are supported
|
||||
*
|
||||
* Return: true if NaN is enabled else false
|
||||
*/
|
||||
static inline
|
||||
bool pmo_core_is_nan_enabled(struct wlan_objmgr_vdev *vdev)
|
||||
{
|
||||
bool nan_enable;
|
||||
struct pmo_vdev_priv_obj *vdev_ctx;
|
||||
|
||||
vdev_ctx = pmo_vdev_get_priv(vdev);
|
||||
qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock);
|
||||
nan_enable = vdev_ctx->pmo_psoc_ctx->psoc_cfg.nan_enable;
|
||||
qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock);
|
||||
|
||||
return nan_enable;
|
||||
}
|
||||
#else
|
||||
static inline
|
||||
bool pmo_core_is_nan_enabled(struct wlan_objmgr_vdev *vdev)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* pmo_get_event_bitmap_idx() - get indices for extended wow bitmaps
|
||||
* @event: wow event
|
||||
|
@@ -26,6 +26,7 @@
|
||||
#include <wlan_scan_ucfg_api.h>
|
||||
#include "wlan_pmo_static_config.h"
|
||||
#include "wlan_reg_services_api.h"
|
||||
#include "cfg_nan_api.h"
|
||||
|
||||
void pmo_set_wow_event_bitmap(WOW_WAKE_EVENT_TYPE event,
|
||||
uint32_t wow_bitmap_size,
|
||||
@@ -315,7 +316,7 @@ bool pmo_core_is_wow_applicable(struct wlan_objmgr_psoc *psoc)
|
||||
} else if (pmo_core_is_lpass_enabled(vdev)) {
|
||||
pmo_debug("LPASS is enabled, enabling WoW");
|
||||
is_wow_applicable = true;
|
||||
} else if (pmo_core_is_nan_enabled(vdev)) {
|
||||
} else if (cfg_nan_get_enable(psoc)) {
|
||||
pmo_debug("NAN is enabled, enabling WoW");
|
||||
is_wow_applicable = true;
|
||||
} else if (pmo_core_get_vdev_op_mode(vdev) == QDF_NDI_MODE) {
|
||||
|
@@ -278,7 +278,6 @@ enum pmo_auto_pwr_detect_failure_mode {
|
||||
* @deauth_enable: true when wake up on deauth is enabled else false
|
||||
* @disassoc_enable: true when wake up on disassoc is enabled else false
|
||||
* @bmiss_enable: true when wake up on bmiss is enabled else false
|
||||
* @nan_enable: true when nan is enabled else false
|
||||
* @lpass_enable: true when lpass is enabled else false
|
||||
* @sta_dynamic_dtim: station dynamic DTIM value
|
||||
* @sta_mod_dtim: station modulated DTIM value
|
||||
@@ -305,7 +304,6 @@ struct pmo_psoc_cfg {
|
||||
bool deauth_enable;
|
||||
bool disassoc_enable;
|
||||
bool bmiss_enable;
|
||||
bool nan_enable;
|
||||
bool lpass_enable;
|
||||
uint8_t sta_dynamic_dtim;
|
||||
uint8_t sta_mod_dtim;
|
||||
|
Reference in New Issue
Block a user