From 1ac430d0860770a3de04bb8a8076f0a4992bdc35 Mon Sep 17 00:00:00 2001 From: Paul Zhang Date: Mon, 5 Mar 2018 17:42:04 +0800 Subject: [PATCH] qcacmn: Reset the master_list[].chan_flags Currently, the chan_flags in master_list does not reset. So when changing the country code, the previous counry code's chan flag will pollute the current country code's. Change-Id: Idb7bbb2a216a8d756ddcfd2edb090807f098fadf CRs-Fixed: 2199920 --- umac/regulatory/core/src/reg_services.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/regulatory/core/src/reg_services.c b/umac/regulatory/core/src/reg_services.c index cfe550b2c577..2f4b43e943c4 100644 --- a/umac/regulatory/core/src/reg_services.c +++ b/umac/regulatory/core/src/reg_services.c @@ -2762,7 +2762,7 @@ QDF_STATUS reg_process_master_chan_list(struct cur_regulatory_info channel_map[chan_enum].chan_num; mas_chan_list[chan_enum].center_freq = channel_map[chan_enum].center_freq; - mas_chan_list[chan_enum].chan_flags |= + mas_chan_list[chan_enum].chan_flags = REGULATORY_CHAN_DISABLED; mas_chan_list[chan_enum].state = CHANNEL_STATE_DISABLE;