Skip to content

Commit

Permalink
modules: hostap: Fix channel comparison
Browse files Browse the repository at this point in the history
Due to a typo, channel and frequency were compared causing the
connection with specific channel to fail for any combination.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 authored and cvinayak committed Jan 26, 2024
1 parent 56d6afb commit 4f7aec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hostap/src/supp_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static int wpa_supp_band_chan_compat(struct wpa_supplicant *wpa_s, uint8_t band,
}

for (i = 0; i < mode->num_channels; i++) {
if (mode->channels[i].freq == channel) {
if (mode->channels[i].chan == channel) {
return mode->channels[i].freq;
}
}
Expand Down

0 comments on commit 4f7aec9

Please sign in to comment.