mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
FST: Mark fst_ies buffer const
This buffer is owned by the FST module, so mark it const in the set_ies() callback to make it clearer which component is responsible for modifying and freeing this. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
5e09f24a34
commit
84bcb4e7a9
@ -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;
|
||||
|
||||
|
@ -312,7 +312,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 */
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -3751,7 +3751,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;
|
||||
|
||||
|
@ -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 */
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user