aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ap/hostapd.c2
-rw-r--r--src/ap/hostapd.h2
-rw-r--r--src/fst/fst.h4
-rw-r--r--src/fst/fst_iface.h2
-rw-r--r--wpa_supplicant/wpa_supplicant.c2
-rw-r--r--wpa_supplicant/wpa_supplicant_i.h2
6 files changed, 7 insertions, 7 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index fa524a04..e0f87d7d 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -1385,7 +1385,7 @@ static void fst_hostapd_get_channel_info_cb(void *ctx,
}
-static void fst_hostapd_set_ies_cb(void *ctx, struct wpabuf *fst_ies)
+static void fst_hostapd_set_ies_cb(void *ctx, const struct wpabuf *fst_ies)
{
struct hostapd_data *hapd = ctx;
diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h
index 38b35e50..b1a79807 100644
--- a/src/ap/hostapd.h
+++ b/src/ap/hostapd.h
@@ -311,7 +311,7 @@ struct hostapd_iface {
unsigned int cac_started:1;
#ifdef CONFIG_FST
struct fst_iface *fst;
- struct wpabuf *fst_ies;
+ const struct wpabuf *fst_ies;
#endif /* CONFIG_FST */
/*
diff --git a/src/fst/fst.h b/src/fst/fst.h
index bfeba636..0c0e435b 100644
--- a/src/fst/fst.h
+++ b/src/fst/fst.h
@@ -70,9 +70,9 @@ struct fst_wpa_obj {
/**
* set_ies - Set interface's MB IE
* @ctx: User context %ctx
- * @fst_ies: MB IE buffer
+ * @fst_ies: MB IE buffer (owned by FST module)
*/
- void (*set_ies)(void *ctx, struct wpabuf *fst_ies);
+ void (*set_ies)(void *ctx, const struct wpabuf *fst_ies);
/**
* send_action - Send FST Action frame via the interface
diff --git a/src/fst/fst_iface.h b/src/fst/fst_iface.h
index 26cb38dd..4670d894 100644
--- a/src/fst/fst_iface.h
+++ b/src/fst/fst_iface.h
@@ -85,7 +85,7 @@ static inline int fst_iface_get_hw_modes(struct fst_iface *i,
}
static inline void fst_iface_set_ies(struct fst_iface *i,
- struct wpabuf *fst_ies)
+ const struct wpabuf *fst_ies)
{
i->iface_obj.set_ies(i->iface_obj.ctx, fst_ies);
}
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 794c17d0..d9d812ed 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -3756,7 +3756,7 @@ static int wpas_fst_get_hw_modes(void *ctx, struct hostapd_hw_modes **modes)
}
-static void wpas_fst_set_ies_cb(void *ctx, struct wpabuf *fst_ies)
+static void wpas_fst_set_ies_cb(void *ctx, const struct wpabuf *fst_ies)
{
struct wpa_supplicant *wpa_s = ctx;
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
index 0636ee45..192077c1 100644
--- a/wpa_supplicant/wpa_supplicant_i.h
+++ b/wpa_supplicant/wpa_supplicant_i.h
@@ -980,7 +980,7 @@ struct wpa_supplicant {
#ifdef CONFIG_FST
struct fst_iface *fst;
- struct wpabuf *fst_ies;
+ const struct wpabuf *fst_ies;
struct wpabuf *received_mb_ies;
#endif /* CONFIG_FST */
};