From 8570f5c3f5ec95083c3198e7b4780df9c0356639 Mon Sep 17 00:00:00 2001 From: Sai Pavan Akhil Remella Date: Tue, 22 Feb 2022 00:08:05 +0530 Subject: [PATCH] qcacmn: Use global OC table for lookup while updating RNR db Operating class field used in RNR IE is of global operating class. When getting frequency from RNR IE region specific operating class is used for lookup instead of global. Added changes to search operating class from global OC table. Change-Id: I200ab46187fed91cc66cd954b062c8d8ac44f631 CRs-Fixed: 3131600 --- umac/scan/core/src/wlan_scan_cache_db.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umac/scan/core/src/wlan_scan_cache_db.c b/umac/scan/core/src/wlan_scan_cache_db.c index edf276c0191f..05e87bb3f809 100644 --- a/umac/scan/core/src/wlan_scan_cache_db.c +++ b/umac/scan/core/src/wlan_scan_cache_db.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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 @@ -132,7 +133,7 @@ static void scm_add_rnr_channel_db(struct wlan_objmgr_psoc *psoc, continue; chan_freq = wlan_reg_chan_opclass_to_freq(rnr_bss->channel_number, rnr_bss->operating_class, - false); + true); channel = scm_get_chan_meta(psoc, chan_freq); if (!channel) { scm_debug("Failed to get chan Meta freq %d", chan_freq);