diff options
| author | Jouni Malinen <jouni@qca.qualcomm.com> | 2015-08-03 17:37:05 +0300 |
|---|---|---|
| committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:20:02 -0600 |
| commit | 6b56924087cf2a0dcf4dd070fd8955bce9739062 (patch) | |
| tree | fc704e6a316e265dc4b2c862ca0c1204152c54b7 /src/fst | |
| parent | 4d637fc8944587300f6596a7de4554d3fc256fcf (diff) | |
| download | android_external_wpa_supplicant_8-6b56924087cf2a0dcf4dd070fd8955bce9739062.tar.gz android_external_wpa_supplicant_8-6b56924087cf2a0dcf4dd070fd8955bce9739062.tar.bz2 android_external_wpa_supplicant_8-6b56924087cf2a0dcf4dd070fd8955bce9739062.zip | |
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.
Change-Id: I85ba3b57a539f1eee9628b9d8f5691a03b58f1d1
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Git-commit: 84bcb4e7a97c758900abebce4382c81ed2b70b75
Git-repo: git://w1.fi/srv/git/hostap.git
CRs-Fixed: 891455
Diffstat (limited to 'src/fst')
| -rw-r--r-- | src/fst/fst.h | 4 | ||||
| -rw-r--r-- | src/fst/fst_iface.h | 2 |
2 files changed, 3 insertions, 3 deletions
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); } |
