3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

util: make scan_freq_set_get_bands const

This commit is contained in:
James Prestwood 2022-07-26 10:09:16 -07:00 committed by Denis Kenzior
parent b52ed27b72
commit 3f1d72e545
2 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ bool scan_freq_set_contains(const struct scan_freq_set *freqs, uint32_t freq)
return false;
}
uint32_t scan_freq_set_get_bands(struct scan_freq_set *freqs)
uint32_t scan_freq_set_get_bands(const struct scan_freq_set *freqs)
{
uint32_t bands = 0;
uint32_t max;

View File

@ -111,7 +111,7 @@ struct scan_freq_set *scan_freq_set_new(void);
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_contains(const 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(const 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);
void scan_freq_set_merge(struct scan_freq_set *to,