3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

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

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);
}