3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

scan: Make scan_freq_set_foreach const correct

This commit is contained in:
Tim Kourt 2019-03-22 14:17:36 -07:00 committed by Denis Kenzior
parent 3968d36a46
commit 0d3eb7d27b
2 changed files with 2 additions and 2 deletions

View File

@ -1672,7 +1672,7 @@ static void scan_channels_5ghz_frequency(uint32_t channel, void *user_data)
channels_5ghz_data->func(freq, channels_5ghz_data->user_data); channels_5ghz_data->func(freq, channels_5ghz_data->user_data);
} }
void scan_freq_set_foreach(struct scan_freq_set *freqs, void scan_freq_set_foreach(const struct scan_freq_set *freqs,
scan_freq_set_func_t func, void *user_data) scan_freq_set_func_t func, void *user_data)
{ {
struct channels_5ghz_foreach_data data = { }; struct channels_5ghz_foreach_data data = { };

View File

@ -121,7 +121,7 @@ void scan_freq_set_free(struct scan_freq_set *freqs);
bool scan_freq_set_add(struct scan_freq_set *freqs, uint32_t freq); bool scan_freq_set_add(struct scan_freq_set *freqs, uint32_t freq);
bool scan_freq_set_contains(struct scan_freq_set *freqs, uint32_t freq); bool scan_freq_set_contains(struct scan_freq_set *freqs, uint32_t freq);
uint32_t scan_freq_set_get_bands(struct scan_freq_set *freqs); uint32_t scan_freq_set_get_bands(struct scan_freq_set *freqs);
void scan_freq_set_foreach(struct scan_freq_set *freqs, void scan_freq_set_foreach(const struct scan_freq_set *freqs,
scan_freq_set_func_t func, void *user_data); scan_freq_set_func_t func, void *user_data);
bool scan_ifindex_add(uint32_t ifindex); bool scan_ifindex_add(uint32_t ifindex);