}
-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;
unsigned int cac_started:1;
#ifdef CONFIG_FST
struct fst_iface *fst;
- struct wpabuf *fst_ies;
+ const struct wpabuf *fst_ies;
#endif /* CONFIG_FST */
/*
/**
* 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
}
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);
}
}
-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;
#ifdef CONFIG_FST
struct fst_iface *fst;
- struct wpabuf *fst_ies;
+ const struct wpabuf *fst_ies;
struct wpabuf *received_mb_ies;
#endif /* CONFIG_FST */
};