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:
parent
154e9f63bc
commit
5e95e30e41
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user