qcacmn: Correct state in reg_populate_band_channels

Regulatory channel state is mistaken as chan_flags.
Set regulatory channel state to CHANNEL_STATE_DISABLE.

Change-Id: I72dd40bb3a7690e0156f72008ad29d209e93ce29
CRs-Fixed: 2461403
This commit is contained in:
tinlin
2019-05-30 13:20:04 +08:00
committed by nshrivas
vanhempi 23e26381c0
commit 6aa719f513
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa

Näytä tiedosto

@@ -145,7 +145,7 @@ static void reg_populate_band_channels(enum channel_enum start_chan,
mas_chan_list[chan_enum].chan_flags |=
REGULATORY_CHAN_DISABLED;
mas_chan_list[chan_enum].state =
REGULATORY_CHAN_DISABLED;
CHANNEL_STATE_DISABLE;
}
}
}

Näytä tiedosto

@@ -744,7 +744,7 @@ QDF_STATUS reg_get_channel_list_with_power(struct wlan_objmgr_pdev *pdev,
for (i = 0, count = 0; i < NUM_CHANNELS; i++) {
if (reg_channels[i].state &&
reg_channels[i].state != REGULATORY_CHAN_DISABLED) {
reg_channels[i].chan_flags != REGULATORY_CHAN_DISABLED) {
ch_list[count].chan_num =
reg_channels[i].chan_num;
ch_list[count++].tx_power =