Browse Source

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
Abhinav Kumar 6 years ago
parent
commit
f9074e2c09
1 changed files with 3 additions and 2 deletions
  1. 3 2
      umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

+ 3 - 2
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);