From: Jouni Malinen Date: Fri, 4 Nov 2022 10:56:37 +0000 (+0200) Subject: PASN: Mark wpas_pasn_start() comeback argument const X-Git-Tag: hostap_2_11~1586 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=325236948a4ee533a07ae454092630938448a872;p=thirdparty%2Fhostap.git PASN: Mark wpas_pasn_start() comeback argument const Make it clear that this argument is not modified and freed within PASN processing to be consistent with the only use of it by calling wpas_pasn_build_auth_1() which has already marked it const. Signed-off-by: Jouni Malinen --- diff --git a/src/pasn/pasn_common.h b/src/pasn/pasn_common.h index e091b8eb4..837ea4fc0 100644 --- a/src/pasn/pasn_common.h +++ b/src/pasn/pasn_common.h @@ -151,7 +151,7 @@ int wpas_pasn_start(struct wpas_pasn *pasn, const u8 *own_addr, const u8 *bssid, int akmp, int cipher, u16 group, int freq, const u8 *beacon_rsne, u8 beacon_rsne_len, const u8 *beacon_rsnxe, u8 beacon_rsnxe_len, - struct wpabuf *comeback); + const struct wpabuf *comeback); int wpa_pasn_auth_rx(struct wpas_pasn *pasn, const u8 *data, size_t len, struct wpa_pasn_params_data *pasn_params); int wpa_pasn_auth_tx_status(struct wpas_pasn *pasn, diff --git a/src/pasn/pasn_initiator.c b/src/pasn/pasn_initiator.c index 4afe7859a..71f412029 100644 --- a/src/pasn/pasn_initiator.c +++ b/src/pasn/pasn_initiator.c @@ -859,7 +859,7 @@ int wpas_pasn_start(struct wpas_pasn *pasn, const u8 *own_addr, const u8 *bssid, int akmp, int cipher, u16 group, int freq, const u8 *beacon_rsne, u8 beacon_rsne_len, const u8 *beacon_rsnxe, u8 beacon_rsnxe_len, - struct wpabuf *comeback) + const struct wpabuf *comeback) { struct wpabuf *frame; int ret;