Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions subsys/net/l2/wifi/wifi_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ static int wifi_utils_get_all_chans_in_range(uint8_t chan_start,
}

if (start) {
if (idx > WIFI_MGMT_SCAN_CHAN_MAX_MANUAL) {
*chan_idx = idx;
break;
}
band_chan[idx].band = band_idx;
band_chan[idx].channel = valid_5g_chans_20mhz[i];
idx++;
Expand Down