]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Mark wpa_bss_get_fils_cache_id() argument const
authorJouni Malinen <jouni@codeaurora.org>
Mon, 16 Nov 2020 13:52:22 +0000 (15:52 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 16 Nov 2020 13:52:22 +0000 (15:52 +0200)
This function does not modify the BSS entry.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/bss.c
wpa_supplicant/bss.h

index 7b6ed773aea0c83029ced34ffa66d13019c87e4f..7e420485fe8b737f6a1521b337b31f16cad46ac6 100644 (file)
@@ -1359,7 +1359,7 @@ int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates)
 
 
 #ifdef CONFIG_FILS
-const u8 * wpa_bss_get_fils_cache_id(struct wpa_bss *bss)
+const u8 * wpa_bss_get_fils_cache_id(const struct wpa_bss *bss)
 {
        const u8 *ie;
 
index 0716761749f689398312248ccc884af1e23baaa9..e49858d193df7166c7c0be573b3ab3ace533138d 100644 (file)
@@ -148,7 +148,7 @@ int wpa_bss_get_max_rate(const struct wpa_bss *bss);
 int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates);
 struct wpa_bss_anqp * wpa_bss_anqp_alloc(void);
 int wpa_bss_anqp_unshare_alloc(struct wpa_bss *bss);
-const u8 * wpa_bss_get_fils_cache_id(struct wpa_bss *bss);
+const u8 * wpa_bss_get_fils_cache_id(const struct wpa_bss *bss);
 int wpa_bss_ext_capab(const struct wpa_bss *bss, unsigned int capab);
 
 static inline int bss_is_dmg(const struct wpa_bss *bss)