From 3d549e457dc4ca8a6aeb79d2c6ac84a4a40be30c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 15 Nov 2018 11:28:46 -0600 Subject: [PATCH] scan: make scan_bss_get_rsn_info const correct --- src/scan.c | 2 +- src/scan.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scan.c b/src/scan.c index ba36163a..065df944 100644 --- a/src/scan.c +++ b/src/scan.c @@ -1053,7 +1053,7 @@ void scan_bss_free(struct scan_bss *bss) l_free(bss); } -int scan_bss_get_rsn_info(struct scan_bss *bss, struct ie_rsn_info *info) +int scan_bss_get_rsn_info(const struct scan_bss *bss, struct ie_rsn_info *info) { /* * If both an RSN and a WPA elements are present currently diff --git a/src/scan.h b/src/scan.h index 6c56f7f4..a5685ee9 100644 --- a/src/scan.h +++ b/src/scan.h @@ -108,7 +108,7 @@ void scan_sched_start(struct l_genl_family *nl80211, uint32_t ifindex, void scan_bss_free(struct scan_bss *bss); int scan_bss_rank_compare(const void *a, const void *b, void *user); -int scan_bss_get_rsn_info(struct scan_bss *bss, struct ie_rsn_info *info); +int scan_bss_get_rsn_info(const struct scan_bss *bss, struct ie_rsn_info *info); uint8_t scan_freq_to_channel(uint32_t freq, enum scan_band *out_band); uint32_t scan_channel_to_freq(uint8_t channel, enum scan_band band);