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

scan: Make scan_freq_set_contains const-correct

This commit is contained in:
Denis Kenzior 2021-02-03 09:38:52 -06:00
parent 79928e69cb
commit f0e0060ddc
2 changed files with 2 additions and 2 deletions

View File

@ -1990,7 +1990,7 @@ bool scan_freq_set_add(struct scan_freq_set *freqs, uint32_t freq)
return false; return false;
} }
bool scan_freq_set_contains(struct scan_freq_set *freqs, uint32_t freq) bool scan_freq_set_contains(const struct scan_freq_set *freqs, uint32_t freq)
{ {
enum scan_band band; enum scan_band band;
uint8_t channel; uint8_t channel;

View File

@ -161,7 +161,7 @@ enum scan_band scan_oper_class_to_band(const uint8_t *country,
struct scan_freq_set *scan_freq_set_new(void); struct scan_freq_set *scan_freq_set_new(void);
void scan_freq_set_free(struct scan_freq_set *freqs); 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(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(struct scan_freq_set *freqs);
void scan_freq_set_foreach(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); scan_freq_set_func_t func, void *user_data);