scan: Fix misinterpretation of the channel as frequency

This commit is contained in:
Tim Kourt 2019-03-14 16:06:18 -07:00 committed by Denis Kenzior
parent 154e9f63bc
commit 5e95e30e41
1 changed files with 4 additions and 1 deletions

View File

@ -1662,9 +1662,12 @@ struct channels_5ghz_foreach_data {
void *user_data;
};
static void scan_channels_5ghz_frequency(uint32_t freq, void *user_data)
static void scan_channels_5ghz_frequency(uint32_t channel, void *user_data)
{
const struct channels_5ghz_foreach_data *channels_5ghz_data = user_data;
uint32_t freq;
freq = scan_channel_to_freq(channel, SCAN_BAND_5_GHZ);
channels_5ghz_data->func(freq, channels_5ghz_data->user_data);
}