From f9074e2c09f4b78b903ae47d34c66b58cda7d03f Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Thu, 3 Jan 2019 15:07:49 +0530 Subject: [PATCH] qcacmn: Cleanup INI CFG_DROP_BCN_ON_CHANNEL_MISMATCH Initialize drop_bcn_on_chan_mismatch from INI (CFG_DROP_BCN_ON_CHANNEL_MISMATCH) default value Change-Id: I55c28aa5656ce6befe9cd3477ab0b14c99641cea CRs-Fixed: 2375199 --- umac/scan/dispatcher/src/wlan_scan_ucfg_api.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c b/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c index 78bc33c25d72..adb56823a08e 100644 --- a/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_ucfg_api.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2019 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 @@ -1409,7 +1409,8 @@ wlan_scan_global_init(struct wlan_objmgr_psoc *psoc, struct wlan_scan_obj *scan_obj) { scan_obj->scan_disabled = 0; - scan_obj->drop_bcn_on_chan_mismatch = true; + scan_obj->drop_bcn_on_chan_mismatch = + cfg_get(psoc, CFG_DROP_BCN_ON_CHANNEL_MISMATCH); scan_obj->disable_timeout = false; scan_obj->scan_def.active_dwell = cfg_get(psoc, CFG_ACTIVE_MAX_CHANNEL_TIME);