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
This commit is contained in:
Paul Zhang 2018-03-05 17:42:04 +08:00 • committed by nshrivas
commit 1ac430d086

View file

@ -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;