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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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 =
|
||||
|
Viittaa uudesa ongelmassa
Block a user