aboutsummaryrefslogtreecommitdiffstats
path: root/src/fst
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-08-03 14:37:05 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-03 14:40:30 (GMT)
commit84bcb4e7a97c758900abebce4382c81ed2b70b75 (patch)
treeff447273c4d7ed4650a45221a169377138499a45 /src/fst
parent5e09f24a344d5043703a8d93cf51d9369247172f (diff)
downloadhostap-84bcb4e7a97c758900abebce4382c81ed2b70b75.zip
hostap-84bcb4e7a97c758900abebce4382c81ed2b70b75.tar.gz
hostap-84bcb4e7a97c758900abebce4382c81ed2b70b75.tar.bz2
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>
Diffstat (limited to 'src/fst')
-rw-r--r--src/fst/fst.h4
-rw-r--r--src/fst/fst_iface.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fst/fst.h b/src/fst/fst.h
index bfeba63..0c0e435 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 26cb38d..4670d89 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);
}