mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
qcacld-3.0: Enable beacon reception stats only if sys is enabled
In some platforms sysfs entry is not enabled, beacon reception stats which is dependent on sysfs is not correctly protected under sysfs definition this can lead to symbol missing error in these platforms. WARNING: "hdd_sysfs_destroy_adapter_root_obj" WARNING: "hdd_sysfs_create_adapter_root_obj" Also when the CONFIG_MOBILE_ROUTER is disabled there is an skip_acs_scan_timer leak. skip_acs_scan_timer is initialized in the ACTIVE_DOMAIN, move it to the INIT_DOMAIN to resolve the timer leak. Change-Id: I75fb97aa69d7f84ead4a8b693123162d9940d78c CRs-Fixed: 2379766
This commit is contained in:
parent
2f67093795
commit
5ff0375477
2 changed files with 12 additions and 13 deletions
|
|
@ -103,6 +103,8 @@ ifneq ($(CONFIG_MOBILE_ROUTER), y)
|
|||
CONFIG_QCOM_TDLS := y
|
||||
|
||||
CONFIG_WLAN_SYSFS := y
|
||||
#Enable Beacon Reception Stats
|
||||
CONFIG_FEATURE_BECN_STATS := y
|
||||
endif
|
||||
|
||||
CONFIG_QCACLD_FEATURE_GREEN_AP := y
|
||||
|
|
@ -725,5 +727,3 @@ ifeq ($(CONFIG_CMN_VDEV_MLME_SM), y)
|
|||
#Enable STATE MACHINE HISTORY
|
||||
CONFIG_SM_ENG_HIST := n
|
||||
endif
|
||||
#Enable Beacon Reception Stats
|
||||
CONFIG_FEATURE_BECN_STATS := y
|
||||
|
|
|
|||
|
|
@ -11895,6 +11895,16 @@ int hdd_wlan_startup(struct hdd_context *hdd_ctx)
|
|||
hdd_driver_memdump_init();
|
||||
hdd_bus_bandwidth_init(hdd_ctx);
|
||||
|
||||
#ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE
|
||||
status = qdf_mc_timer_init(&hdd_ctx->skip_acs_scan_timer,
|
||||
QDF_TIMER_TYPE_SW,
|
||||
hdd_skip_acs_scan_timer_handler,
|
||||
hdd_ctx);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
hdd_err("Failed to init ACS Skip timer");
|
||||
qdf_spinlock_create(&hdd_ctx->acs_skip_lock);
|
||||
#endif
|
||||
|
||||
errno = hdd_wlan_start_modules(hdd_ctx, false);
|
||||
if (errno) {
|
||||
hdd_err("Failed to start modules; errno:%d", errno);
|
||||
|
|
@ -11937,17 +11947,6 @@ int hdd_wlan_startup(struct hdd_context *hdd_ctx)
|
|||
|
||||
wlan_hdd_update_11n_mode(hdd_ctx->config);
|
||||
|
||||
#ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE
|
||||
status = qdf_mc_timer_init(&hdd_ctx->skip_acs_scan_timer,
|
||||
QDF_TIMER_TYPE_SW,
|
||||
hdd_skip_acs_scan_timer_handler,
|
||||
hdd_ctx);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
hdd_err("Failed to init ACS Skip timer");
|
||||
|
||||
qdf_spinlock_create(&hdd_ctx->acs_skip_lock);
|
||||
#endif
|
||||
|
||||
hdd_lpass_notify_wlan_version(hdd_ctx);
|
||||
|
||||
errno = hdd_register_notifiers(hdd_ctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue