From 9d56edd410d4170c9d066ae895a3259ddccc8889 Mon Sep 17 00:00:00 2001 From: Thierry Carré Date: Fri, 6 Apr 2012 17:23:10 +0200 Subject: cesar/cp/msg: stub updated, refs #2928 --- cesar/cp/msg/stub/src/mme.c | 9 +- cesar/cp/msg/stub/src/msg.c | 26 +- cesar/cp/msg/stub/src/msg_cc.c | 438 ++++++++++++++++++----------- cesar/cp/msg/stub/src/msg_cm.c | 595 +++++++++++++++++++++++----------------- cesar/cp/msg/stub/src/msg_drv.c | 258 +++++++++++------ cesar/cp/msg/stub/src/msg_vs.c | 334 +++++++++++++--------- 6 files changed, 1027 insertions(+), 633 deletions(-) (limited to 'cesar/cp/msg/stub') diff --git a/cesar/cp/msg/stub/src/mme.c b/cesar/cp/msg/stub/src/mme.c index ba4a20ce46..9cecf9909c 100644 --- a/cesar/cp/msg/stub/src/mme.c +++ b/cesar/cp/msg/stub/src/mme.c @@ -6,19 +6,20 @@ * * }}} */ /** - * \file src/mme.c + * \file cesar/cp/msg/stub/src/mme.c * \brief « brief description » - * \ingroup « module » + * \ingroup cesar_cp_msg_stub * * « long description » */ #include "common/std.h" #include "cp/cp.h" -#include "cp/msg/msg.h" +#include "cp/mme.h" cp_mme_rx_t * -cp_msg_mme_rx_init (cp_t *ctx, u8 *mme, uint length, cp_tei_t tei) __attribute__((weak)); +cp_msg_mme_rx_init (cp_t *ctx, u8 *mme, uint length, cp_tei_t tei) + __attribute__((weak)); cp_mme_rx_t * cp_msg_mme_rx_init (cp_t *ctx, u8 *mme, uint length, cp_tei_t tei) diff --git a/cesar/cp/msg/stub/src/msg.c b/cesar/cp/msg/stub/src/msg.c index c8e34093f8..c43764b4f3 100644 --- a/cesar/cp/msg/stub/src/msg.c +++ b/cesar/cp/msg/stub/src/msg.c @@ -6,16 +6,16 @@ * * }}} */ /** - * \file src/msg.c + * \file cesar/cp/msg/stub/src/msg.c * \brief « brief description » - * \ingroup « module » + * \ingroup cesar_cp_msg_stub * * « long description » */ #include "common/std.h" #include "cp/cp.h" -#include "cp/msg/msg.h" +#include "cp/mme.h" void cp_msg_init (cp_t *ctx) __attribute__((weak)); @@ -35,6 +35,17 @@ cp_msg_dispatch (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); void cp_msg_dispatch (cp_t *ctx, cp_mme_rx_t *mme) {} + +cp_mme_tx_t * +cp_msg_mme_init (cp_t *ctx, cp_mme_peer_t *peer, cp_mmtype_t mmtype, + uint mme_payload_length) __attribute__((weak)); +cp_mme_tx_t * +cp_msg_mme_init (cp_t *ctx, cp_mme_peer_t *peer, cp_mmtype_t mmtype, + uint mme_payload_length) +{ + return NULL; +} + cp_mme_tx_t * cp_msg_mme_init_not_frag (cp_t *ctx, cp_mme_peer_t *peer, cp_mmtype_t mmtype) __attribute__((weak)); @@ -84,6 +95,15 @@ cp_msg_mme_send (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); void cp_msg_mme_send (cp_t *ctx, cp_mme_tx_t *mme) {} +bool +cp_msg_mme_read_header_initialised (cp_mme_rx_t *mme, uint *fmi) + __attribute__((weak)); +bool +cp_msg_mme_read_header_initialised (cp_mme_rx_t *mme, uint *fmi) +{ + return true; +} + cp_mme_rx_t * cp_msg_mme_read_header (cp_t *ctx, u8 *mme, uint length, cp_tei_t tei, uint *fmi) __attribute__((weak)); diff --git a/cesar/cp/msg/stub/src/msg_cc.c b/cesar/cp/msg/stub/src/msg_cc.c index 99b8b4d753..637c778d73 100644 --- a/cesar/cp/msg/stub/src/msg_cc.c +++ b/cesar/cp/msg/stub/src/msg_cc.c @@ -6,9 +6,9 @@ * * }}} */ /** - * \file src/msg_cc.c + * \file cesar/cp/msg/stub/src/msg_cc.c * \brief « brief description » - * \ingroup « module » + * \ingroup cesar_cp_msg_stub * * « long description » */ @@ -18,16 +18,16 @@ #include "cp/msg/msg.h" void -cp_msg_cc_who_ru_req_send (cp_t *ctx, cp_mme_peer_t *peer, cp_nid_t nid) __attribute__((weak)); - +cp_msg_cc_who_ru_req_send (cp_t *ctx, cp_mme_peer_t *peer, cp_nid_t nid) + __attribute__((weak)); void cp_msg_cc_who_ru_req_send (cp_t *ctx, cp_mme_peer_t *peer, cp_nid_t nid) { } bool -cp_msg_cc_who_ru_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_nid_t *nid) __attribute__((weak)); - +cp_msg_cc_who_ru_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_nid_t *nid) + __attribute__((weak)); bool cp_msg_cc_who_ru_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_nid_t *nid) { @@ -35,84 +35,93 @@ cp_msg_cc_who_ru_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_nid_t *nid) } void -cp_msg_cc_who_ru_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - const cp_msg_cc_who_ru_cnf_t *data) __attribute__((weak)); +cp_msg_cc_who_ru_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_msg_cc_who_ru_cnf_t *data) + __attribute__((weak)); void -cp_msg_cc_who_ru_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - const cp_msg_cc_who_ru_cnf_t *data) +cp_msg_cc_who_ru_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_msg_cc_who_ru_cnf_t *data) { } bool -cp_msg_cc_who_ru_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_who_ru_cnf_t *data) __attribute__((weak)); +cp_msg_cc_who_ru_cnf_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_who_ru_cnf_t *data) + __attribute__((weak)); bool -cp_msg_cc_who_ru_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_who_ru_cnf_t *data) +cp_msg_cc_who_ru_cnf_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_who_ru_cnf_t *data) { return true; } void -cp_msg_cc_assoc_req_send (cp_t *ctx, cp_mme_peer_t *peer, - const cp_msg_cc_assoc_req_t *data) __attribute__((weak)); +cp_msg_cc_assoc_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_msg_cc_assoc_req_t *data) + __attribute__((weak)); void -cp_msg_cc_assoc_req_send (cp_t *ctx, cp_mme_peer_t *peer, - const cp_msg_cc_assoc_req_t *data) +cp_msg_cc_assoc_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_msg_cc_assoc_req_t *data) { } bool -cp_msg_cc_assoc_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_assoc_req_t *data) __attribute__((weak)); +cp_msg_cc_assoc_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_assoc_req_t *data) + __attribute__((weak)); bool -cp_msg_cc_assoc_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_assoc_req_t *data) +cp_msg_cc_assoc_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_assoc_req_t *data) { return true; } void -cp_msg_cc_assoc_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - const cp_msg_cc_assoc_cnf_t *data) __attribute__((weak)); +cp_msg_cc_assoc_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_msg_cc_assoc_cnf_t *data) + __attribute__((weak)); void -cp_msg_cc_assoc_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - const cp_msg_cc_assoc_cnf_t *data) +cp_msg_cc_assoc_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_msg_cc_assoc_cnf_t *data) { } bool -cp_msg_cc_assoc_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_assoc_cnf_t *data) __attribute__((weak)); +cp_msg_cc_assoc_cnf_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_assoc_cnf_t *data) + __attribute__((weak)); bool -cp_msg_cc_assoc_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_assoc_cnf_t *data) +cp_msg_cc_assoc_cnf_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_assoc_cnf_t *data) { return true; } void -cp_msg_cc_leave_req_send (cp_t *ctx, cp_mme_peer_t *peer, - enum cp_msg_cc_leave_req_reason_t reason) __attribute__((weak)); +cp_msg_cc_leave_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, enum cp_msg_cc_leave_req_reason_t reason) + __attribute__((weak)); void -cp_msg_cc_leave_req_send (cp_t *ctx, cp_mme_peer_t *peer, - enum cp_msg_cc_leave_req_reason_t reason) +cp_msg_cc_leave_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, enum cp_msg_cc_leave_req_reason_t reason) { } bool -cp_msg_cc_leave_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - enum cp_msg_cc_leave_req_reason_t *reason) __attribute__((weak)); +cp_msg_cc_leave_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, enum cp_msg_cc_leave_req_reason_t *reason) + __attribute__((weak)); bool -cp_msg_cc_leave_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - enum cp_msg_cc_leave_req_reason_t *reason) +cp_msg_cc_leave_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, enum cp_msg_cc_leave_req_reason_t *reason) { return true; } void -cp_msg_cc_leave_cnf_send (cp_t *ctx, cp_mme_peer_t *peer) __attribute__((weak)); +cp_msg_cc_leave_cnf_send (cp_t *ctx, cp_mme_peer_t *peer) + __attribute__((weak)); void cp_msg_cc_leave_cnf_send (cp_t *ctx, cp_mme_peer_t *peer) @@ -120,7 +129,8 @@ cp_msg_cc_leave_cnf_send (cp_t *ctx, cp_mme_peer_t *peer) } bool -cp_msg_cc_leave_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); +cp_msg_cc_leave_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_cc_leave_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme) @@ -154,7 +164,8 @@ cp_msg_cc_leave_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, } void -cp_msg_cc_leave_rsp_send (cp_t *ctx, cp_mme_peer_t *peer) __attribute__((weak)); +cp_msg_cc_leave_rsp_send (cp_t *ctx, cp_mme_peer_t *peer) + __attribute__((weak)); void cp_msg_cc_leave_rsp_send (cp_t *ctx, cp_mme_peer_t *peer) @@ -162,7 +173,8 @@ cp_msg_cc_leave_rsp_send (cp_t *ctx, cp_mme_peer_t *peer) } bool -cp_msg_cc_leave_rsp_receive (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); +cp_msg_cc_leave_rsp_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_cc_leave_rsp_receive (cp_t *ctx, cp_mme_rx_t *mme) @@ -171,7 +183,8 @@ cp_msg_cc_leave_rsp_receive (cp_t *ctx, cp_mme_rx_t *mme) } void -cp_msg_cc_set_tei_map_req_send (cp_t *ctx, cp_mme_peer_t *peer) __attribute__((weak)); +cp_msg_cc_set_tei_map_req_send (cp_t *ctx, cp_mme_peer_t *peer) + __attribute__((weak)); void cp_msg_cc_set_tei_map_req_send (cp_t *ctx, cp_mme_peer_t *peer) @@ -179,7 +192,8 @@ cp_msg_cc_set_tei_map_req_send (cp_t *ctx, cp_mme_peer_t *peer) } bool -cp_msg_cc_set_tei_map_req_receive (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); +cp_msg_cc_set_tei_map_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_cc_set_tei_map_req_receive (cp_t *ctx, cp_mme_rx_t *mme) @@ -190,7 +204,8 @@ cp_msg_cc_set_tei_map_req_receive (cp_t *ctx, cp_mme_rx_t *mme) cp_mme_tx_t * cp_msg_cc_set_tei_map_ind_send_begin ( cp_t *ctx, cp_mme_peer_t *peer, - enum cp_msg_cc_set_tei_map_ind_mode_t mode, uint sta_nb) __attribute__((weak)); + enum cp_msg_cc_set_tei_map_ind_mode_t mode, uint sta_nb) + __attribute__((weak)); cp_mme_tx_t * cp_msg_cc_set_tei_map_ind_send_begin ( @@ -213,7 +228,8 @@ cp_msg_cc_set_tei_map_ind_send_sta ( } void -cp_msg_cc_set_tei_map_ind_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); +cp_msg_cc_set_tei_map_ind_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); void cp_msg_cc_set_tei_map_ind_send_end (cp_t *ctx, cp_mme_tx_t *mme) @@ -223,7 +239,8 @@ cp_msg_cc_set_tei_map_ind_send_end (cp_t *ctx, cp_mme_tx_t *mme) bool cp_msg_cc_set_tei_map_ind_receive_begin ( cp_t *ctx, cp_mme_rx_t *mme, - enum cp_msg_cc_set_tei_map_ind_mode_t *mode, uint *sta_nb) __attribute__((weak)); + enum cp_msg_cc_set_tei_map_ind_mode_t *mode, uint *sta_nb) + __attribute__((weak)); bool cp_msg_cc_set_tei_map_ind_receive_begin ( @@ -247,7 +264,8 @@ cp_msg_cc_set_tei_map_ind_receive_sta ( } bool -cp_msg_cc_set_tei_map_ind_receive_end (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); +cp_msg_cc_set_tei_map_ind_receive_end (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_cc_set_tei_map_ind_receive_end (cp_t *ctx, cp_mme_rx_t *mme) @@ -256,116 +274,87 @@ cp_msg_cc_set_tei_map_ind_receive_end (cp_t *ctx, cp_mme_rx_t *mme) } cp_mme_tx_t * -cp_msg_cc_relay_send_begin (cp_t *ctx, cp_mme_peer_t *peer, cp_mmtype_t mmtype, - const cp_secu_protocol_run_t *prun, - cp_mme_peks_t peks, - mac_t fda, cp_tei_t ftei) +cp_msg_cc_relay_req_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_secu_protocol_run_t *prun, + cp_mme_peks_t peks, mac_t fda, cp_tei_t ftei) __attribute__((weak)); +cp_mme_tx_t * +cp_msg_cc_relay_req_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_secu_protocol_run_t *prun, + cp_mme_peks_t peks, mac_t fda, cp_tei_t ftei) { return NULL; } void -cp_msg_cc_relay_send_finalise (cp_t *ctx, cp_mme_tx_t *msg, uint length) __attribute__((weak)); - -void -cp_msg_cc_relay_send_finalise (cp_t *ctx, cp_mme_tx_t *msg, uint length) -{ -} - -void -cp_msg_cc_relay_receive (cp_t *ctx, cp_mme_rx_t *msg, uint *length) __attribute__((weak)); - +cp_msg_cc_relay_ind_send (cp_t *ctx, cp_mme_rx_t *msg, mac_t osa, cp_tei_t + stei, uint length) __attribute__((weak)); void -cp_msg_cc_relay_receive (cp_t *ctx, cp_mme_rx_t *msg, uint *length) +cp_msg_cc_relay_ind_send (cp_t *ctx, cp_mme_rx_t *msg, mac_t osa, cp_tei_t + stei, uint length) { } void -cp_msg_cc_discover_list_req_send (cp_t *ctx, cp_mme_peer_t *peer) __attribute__((weak)); - +cp_msg_cc_relay_req_send_finalise (cp_t *ctx, cp_mme_tx_t *msg) + __attribute__((weak)); void -cp_msg_cc_discover_list_req_send (cp_t *ctx, cp_mme_peer_t *peer) {} - -bool -cp_msg_cc_discover_list_req_receive (cp_t *ctx, cp_mme_rx_t *msg) __attribute__((weak)); - -bool -cp_msg_cc_discover_list_req_receive (cp_t *ctx, cp_mme_rx_t *msg) +cp_msg_cc_relay_req_send_finalise (cp_t *ctx, cp_mme_tx_t *msg) { - return true; } bool -cp_msg_cc_discover_list_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); - - +cp_msg_cc_relay_req_receive (cp_t *ctx, cp_mme_rx_t *msg, uint *length, + uint *mmtype) __attribute__((weak)); bool -cp_msg_cc_discover_list_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme) +cp_msg_cc_relay_req_receive (cp_t *ctx, cp_mme_rx_t *msg, uint *length, + uint *mmtype) { return true; } bool -cp_msg_cc_discover_list_cnf_recv_begin_sta (cp_t *ctx, cp_mme_rx_t *msg, - uint *nb_sta) __attribute__((weak)); - +cp_msg_cc_relay_ind_receive (cp_t *ctx, cp_mme_rx_t *msg, uint *length) + __attribute__((weak)); bool -cp_msg_cc_discover_list_cnf_recv_begin_sta (cp_t *ctx, cp_mme_rx_t *msg, - uint *nb_sta) +cp_msg_cc_relay_ind_receive (cp_t *ctx, cp_mme_rx_t *msg, uint *length) { return true; } bool -cp_msg_cc_discover_list_cnf_recv_station (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_discover_list_sta_t *data) __attribute__((weak)); - +cp_msg_cc_relay_read_payload_header (cp_t *ctx, cp_mme_rx_t *msg) + __attribute__((weak)); bool -cp_msg_cc_discover_list_cnf_recv_station (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_discover_list_sta_t *data) +cp_msg_cc_relay_read_payload_header (cp_t *ctx, cp_mme_rx_t *msg) { return true; } +void +cp_msg_cc_discover_list_req_send (cp_t *ctx, cp_mme_peer_t *peer) + __attribute__((weak)); -bool -cp_msg_cc_discover_list_cnf_recv_begin_net (cp_t *ctx, cp_mme_rx_t *msg, - uint *nb_net) __attribute__((weak)); -bool -cp_msg_cc_discover_list_cnf_recv_begin_net (cp_t *ctx, cp_mme_rx_t *msg, - uint *nb_net) -{ - return true; -} - -bool -cp_msg_cc_discover_list_cnf_recv_network (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_discover_list_net_t *data) __attribute__((weak)); - -bool -cp_msg_cc_discover_list_cnf_recv_network (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_discover_list_net_t *data) -{ - return true; -} +void +cp_msg_cc_discover_list_req_send (cp_t *ctx, cp_mme_peer_t *peer) {} bool -cp_msg_cc_discover_list_cnf_recv_end (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); +cp_msg_cc_discover_list_req_receive (cp_t *ctx, cp_mme_rx_t *msg) + __attribute__((weak)); bool -cp_msg_cc_discover_list_cnf_recv_end (cp_t *ctx, cp_mme_rx_t *mme) +cp_msg_cc_discover_list_req_receive (cp_t *ctx, cp_mme_rx_t *msg) { return true; } cp_mme_tx_t * -cp_msg_cc_discover_list_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - uint nb_sta, uint nb_net, - cp_msg_cc_discover_list_ctx_t *disc_ctx) __attribute__((weak)); +cp_msg_cc_discover_list_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, uint nb_sta, uint nb_net, + cp_msg_cc_discover_list_ctx_t *disc_ctx) __attribute__((weak)); cp_mme_tx_t * -cp_msg_cc_discover_list_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - uint nb_sta, uint nb_net, - cp_msg_cc_discover_list_ctx_t *disc_ctx) +cp_msg_cc_discover_list_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, uint nb_sta, uint nb_net, + cp_msg_cc_discover_list_ctx_t *disc_ctx) { return NULL; } @@ -373,7 +362,8 @@ cp_msg_cc_discover_list_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, void cp_msg_cc_discover_list_cnf_send_stations_begin (cp_t *ctx, cp_mme_tx_t *mme, - cp_msg_cc_discover_list_ctx_t *disc_ctx) __attribute__((weak)); + cp_msg_cc_discover_list_ctx_t *disc_ctx) + __attribute__((weak)); void cp_msg_cc_discover_list_cnf_send_stations_begin (cp_t *ctx, @@ -382,16 +372,17 @@ cp_msg_cc_discover_list_cnf_send_stations_begin (cp_t *ctx, void cp_msg_cc_discover_list_cnf_send_station (cp_t *ctx, cp_mme_tx_t *mme, - const cp_msg_cc_discover_list_sta_t *data) __attribute__((weak)); + const cp_msg_cc_discover_list_sta_t *data) + __attribute__((weak)); void cp_msg_cc_discover_list_cnf_send_station (cp_t *ctx, cp_mme_tx_t *mme, const cp_msg_cc_discover_list_sta_t *data){} - void cp_msg_cc_discover_list_cnf_send_net_begin (cp_t *ctx, cp_mme_tx_t *mme, - cp_msg_cc_discover_list_ctx_t *disc_ctx) __attribute__((weak)); + cp_msg_cc_discover_list_ctx_t *disc_ctx) + __attribute__((weak)); void cp_msg_cc_discover_list_cnf_send_net_begin (cp_t *ctx, cp_mme_tx_t *mme, @@ -400,23 +391,88 @@ cp_msg_cc_discover_list_cnf_send_net_begin (cp_t *ctx, cp_mme_tx_t *mme, void cp_msg_cc_discover_list_cnf_send_net (cp_t *ctx, cp_mme_tx_t *mme, - const cp_msg_cc_discover_list_net_t *data) __attribute__((weak)); + const cp_msg_cc_discover_list_net_t *data) + __attribute__((weak)); void cp_msg_cc_discover_list_cnf_send_net (cp_t *ctx, cp_mme_tx_t *mme, const cp_msg_cc_discover_list_net_t *data) {} - void -cp_msg_cc_discover_list_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); - +cp_msg_cc_discover_list_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); void cp_msg_cc_discover_list_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} +bool +cp_msg_cc_discover_list_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_cc_discover_list_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} + +bool +cp_msg_cc_discover_list_cnf_recv_begin_sta ( + cp_t *ctx, cp_mme_rx_t *msg, uint *nb_sta) __attribute__((weak)); + +bool +cp_msg_cc_discover_list_cnf_recv_begin_sta ( + cp_t *ctx, cp_mme_rx_t *msg, uint *nb_sta) +{ + return true; +} + +bool +cp_msg_cc_discover_list_cnf_recv_station ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_discover_list_sta_t *data) + __attribute__((weak)); + +bool +cp_msg_cc_discover_list_cnf_recv_station ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_discover_list_sta_t *data) +{ + return true; +} + +bool +cp_msg_cc_discover_list_cnf_recv_begin_net ( + cp_t *ctx, cp_mme_rx_t *msg, uint *nb_net) __attribute__((weak)); +bool +cp_msg_cc_discover_list_cnf_recv_begin_net ( + cp_t *ctx, cp_mme_rx_t *msg, uint *nb_net) +{ + return true; +} + +bool +cp_msg_cc_discover_list_cnf_recv_network (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cc_discover_list_net_t *data) + __attribute__((weak)); + +bool +cp_msg_cc_discover_list_cnf_recv_network (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cc_discover_list_net_t *data) +{ + return true; +} + +bool +cp_msg_cc_discover_list_cnf_recv_end (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); + +bool +cp_msg_cc_discover_list_cnf_recv_end (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} + void cp_msg_cc_handover_req_send (cp_t *ctx, cp_mme_peer_t *peer, cp_msg_cc_handover_req_soft_hard_t soft_hard, - cp_msg_cc_handover_req_reason_t reason) __attribute__((weak)); + cp_msg_cc_handover_req_reason_t reason) + __attribute__((weak)); void cp_msg_cc_handover_req_send (cp_t *ctx, cp_mme_peer_t *peer, @@ -426,7 +482,8 @@ cp_msg_cc_handover_req_send (cp_t *ctx, cp_mme_peer_t *peer, bool cp_msg_cc_handover_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_handover_req_soft_hard_t *soft_hard, - cp_msg_cc_handover_req_reason_t *reason)__attribute__((weak)); + cp_msg_cc_handover_req_reason_t *reason) + __attribute__((weak)); bool cp_msg_cc_handover_req_receive (cp_t *ctx, cp_mme_rx_t *mme, @@ -438,7 +495,8 @@ cp_msg_cc_handover_req_receive (cp_t *ctx, cp_mme_rx_t *mme, void cp_msg_cc_handover_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_cc_handover_cnf_result_t result)__attribute__((weak)); + cp_msg_cc_handover_cnf_result_t result) + __attribute__((weak)); void cp_msg_cc_handover_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, @@ -446,7 +504,8 @@ cp_msg_cc_handover_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, bool cp_msg_cc_handover_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_handover_cnf_result_t *result)__attribute__((weak)); + cp_msg_cc_handover_cnf_result_t *result) + __attribute__((weak)); bool cp_msg_cc_handover_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, @@ -456,79 +515,124 @@ cp_msg_cc_handover_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, } cp_mme_tx_t * -cp_msg_cc_handover_info_ind_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_cc_handover_info_ind_rsc_t rsc, - cp_tei_t bcco, - uint num_sta)__attribute__((weak)); - -void -cp_msg_cc_handover_info_ind_send (cp_t *ctx, cp_mme_tx_t *mme, - cp_tei_t tei, mac_t mac_addr, - uint status, cp_tei_t ptei) __attribute__((weak)); - -void -cp_msg_cc_handover_info_ind_send_end (cp_t *ctx, cp_mme_tx_t *mme)__attribute__((weak)); - +cp_msg_cc_handover_info_ind_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, cp_msg_cc_handover_info_ind_rsc_t rsc, + cp_tei_t bcco, uint num_sta)__attribute__((weak)); cp_mme_tx_t * -cp_msg_cc_handover_info_ind_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_cc_handover_info_ind_rsc_t rsc, - cp_tei_t bcco, - uint num_sta) +cp_msg_cc_handover_info_ind_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, cp_msg_cc_handover_info_ind_rsc_t rsc, + cp_tei_t bcco, uint num_sta) { return NULL; } void -cp_msg_cc_handover_info_ind_send (cp_t *ctx, cp_mme_tx_t *mme, - cp_tei_t tei, mac_t mac_addr, - uint status, cp_tei_t ptei){} +cp_msg_cc_handover_info_ind_send ( + cp_t *ctx, cp_mme_tx_t *mme, cp_tei_t tei, mac_t mac_addr, + uint status, cp_tei_t ptei) __attribute__((weak)); +void +cp_msg_cc_handover_info_ind_send ( + cp_t *ctx, cp_mme_tx_t *mme, cp_tei_t tei, mac_t mac_addr, + uint status, cp_tei_t ptei) +{ +} +void +cp_msg_cc_handover_info_ind_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); void cp_msg_cc_handover_info_ind_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} bool -cp_msg_cc_handover_info_ind_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_handover_info_ind_rsc_t *rsc, - cp_tei_t *bcco, - uint *num_sta)__attribute__((weak)); - +cp_msg_cc_handover_info_ind_receive_begin ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_handover_info_ind_rsc_t *rsc, + cp_tei_t *bcco, uint *num_sta)__attribute__((weak)); bool -cp_msg_cc_handover_info_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_tei_t *tei, mac_t *mac_addr, - uint *status, cp_tei_t *ptei)__attribute__((weak)); +cp_msg_cc_handover_info_ind_receive_begin ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_handover_info_ind_rsc_t *rsc, + cp_tei_t *bcco, uint *num_sta) +{ + return true; +} bool -cp_msg_cc_handover_info_ind_receive_end (cp_t *ctx, cp_mme_rx_t *mme)__attribute__((weak)); - +cp_msg_cc_handover_info_ind_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_tei_t *tei, mac_t *mac_addr, + uint *status, cp_tei_t *ptei) __attribute__((weak)); bool -cp_msg_cc_handover_info_ind_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cc_handover_info_ind_rsc_t *rsc, - cp_tei_t *bcco, - uint *num_sta) +cp_msg_cc_handover_info_ind_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_tei_t *tei, mac_t *mac_addr, + uint *status, cp_tei_t *ptei) { return true; } bool -cp_msg_cc_handover_info_info_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_tei_t *tei, mac_t *mac_addr, - uint *status, cp_tei_t *ptei) +cp_msg_cc_handover_info_ind_receive_end (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_cc_handover_info_ind_receive_end (cp_t *ctx, cp_mme_rx_t *mme) { return true; } +void +cp_msg_cc_handover_info_rsp_send (cp_t *ctx, cp_mme_peer_t *peer) + __attribute__((weak)); +void +cp_msg_cc_handover_info_rsp_send (cp_t *ctx, cp_mme_peer_t *peer) +{ +} + bool -cp_msg_cc_handover_info_ind_receive_end (cp_t *ctx, cp_mme_rx_t *mme) +cp_msg_cc_handover_info_rsp_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_cc_handover_info_rsp_receive (cp_t *ctx, cp_mme_rx_t *mme) { return true; } +void +cp_msg_cc_cco_appoint_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_msg_cc_cco_appoint_req_rt_t req_type, + mac_t mac_addr) __attribute__((weak)); +void +cp_msg_cc_cco_appoint_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_msg_cc_cco_appoint_req_rt_t req_type, + mac_t mac_addr) +{ +} + +bool +cp_msg_cc_cco_appoint_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_cco_appoint_req_rt_t *req_type, + mac_t *mac_addr) __attribute__((weak)); bool -cp_msg_cc_handover_info_rsp_receive (cp_t *ctx, cp_mme_rx_t *mme)__attribute__((weak)); +cp_msg_cc_cco_appoint_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cc_cco_appoint_req_rt_t *req_type, + mac_t *mac_addr) +{ + return true; +} +void +cp_msg_cc_cco_appoint_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, + cp_msg_cc_cco_appoint_cnf_res_t result) + __attribute__((weak)); +void +cp_msg_cc_cco_appoint_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, + cp_msg_cc_cco_appoint_cnf_res_t result) +{ +} bool -cp_msg_cc_handover_info_rsp_receive (cp_t *ctx, cp_mme_rx_t *mme) +cp_msg_cc_cco_appoint_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cc_cco_appoint_cnf_res_t *result) + __attribute__((weak)); +bool +cp_msg_cc_cco_appoint_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cc_cco_appoint_cnf_res_t *result) { return true; } diff --git a/cesar/cp/msg/stub/src/msg_cm.c b/cesar/cp/msg/stub/src/msg_cm.c index 8da85b19d7..c47baa587d 100644 --- a/cesar/cp/msg/stub/src/msg_cm.c +++ b/cesar/cp/msg/stub/src/msg_cm.c @@ -6,9 +6,9 @@ * * }}} */ /** - * \file src/msg_cm.c + * \file cesar/cp/msg/stub/src/msg_cm.c * \brief « brief description » - * \ingroup « module » + * \ingroup cesar_cp_msg_stub * * « long description » */ @@ -18,7 +18,8 @@ void cp_msg_cm_unassociated_sta_ind_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_nid_t nid, u8 cco_cap) __attribute__((weak)); + cp_nid_t nid, u8 cco_cap) + __attribute__((weak)); void cp_msg_cm_unassociated_sta_ind_send (cp_t *ctx, cp_mme_peer_t *peer, @@ -26,80 +27,10 @@ cp_msg_cm_unassociated_sta_ind_send (cp_t *ctx, cp_mme_peer_t *peer, { } - bool cp_msg_cm_unassociated_sta_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_nid_t *nid, u8 *cco_cap) __attribute__((weak)); - -bool -cp_msg_cm_set_key_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) __attribute__((weak)); - -void -cp_msg_cm_set_key_req_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_mme_peks_t peks, - const cp_secu_protocol_run_t *prun, - const cp_msg_cm_set_key_req_t *data) __attribute__((weak)); - -bool -cp_msg_cm_set_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_set_key_req_t *data) __attribute__((weak)); - - -void -cp_msg_cm_set_key_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_mme_peks_t peks, - const cp_secu_protocol_run_t *prun, - const cp_msg_cm_set_key_cnf_t *data) __attribute__((weak)); - -bool -cp_msg_cm_set_key_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_set_key_cnf_t *data) __attribute__ ((weak)); - -bool -cp_msg_cm_get_key_req_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) __attribute__((weak)); - -bool -cp_msg_cm_get_key_req_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) -{ - dbg_assert (mme); - dbg_assert (pid); - *pid = mme->prun.pid; - return true; -} - - -void -cp_msg_cm_get_key_req_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_mme_peks_t peks, - const cp_secu_protocol_run_t *prun, - const cp_msg_cm_get_key_req_t *data) __attribute__((weak)); - -bool -cp_msg_cm_get_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_get_key_req_t *data) __attribute__((weak)); - -bool -cp_msg_cm_get_key_cnf_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) __attribute__((weak)); - -void -cp_msg_cm_get_key_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_mme_peks_t peks, - const cp_secu_protocol_run_t *prun, - const cp_msg_cm_get_key_cnf_t *data) __attribute__((weak)); - -bool -cp_msg_cm_get_key_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_get_key_cnf_t *data) __attribute__((weak)); - -void -cp_msg_cm_mme_error_ind_send (cp_t *ctx, cp_mme_peer_t *peer_info, - const cp_msg_cm_mme_error_ind_t *data) __attribute__((weak)); - -bool -cp_msg_cm_mme_error_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_mme_error_ind_t *data) __attribute__((weak)); - - + cp_nid_t *nid, u8 *cco_cap) + __attribute__((weak)); bool cp_msg_cm_unassociated_sta_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, @@ -108,6 +39,9 @@ cp_msg_cm_unassociated_sta_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_cm_set_key_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) + __attribute__((weak)); bool cp_msg_cm_set_key_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) { @@ -118,13 +52,21 @@ cp_msg_cm_set_key_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) } void -cp_msg_cm_set_key_req_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_mme_peks_t peks, - const cp_secu_protocol_run_t *prun, - const cp_msg_cm_set_key_req_t *data) +cp_msg_cm_set_key_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_mme_peks_t peks, + const cp_secu_protocol_run_t *prun, const cp_msg_cm_set_key_req_t *data) + __attribute__((weak)); +void +cp_msg_cm_set_key_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_mme_peks_t peks, + const cp_secu_protocol_run_t *prun, const cp_msg_cm_set_key_req_t *data) { } +bool +cp_msg_cm_set_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cm_set_key_req_t *data) + __attribute__((weak)); bool cp_msg_cm_set_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_set_key_req_t *data) @@ -132,31 +74,57 @@ cp_msg_cm_set_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } - void -cp_msg_cm_set_key_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_mme_peks_t peks, - const cp_secu_protocol_run_t *prun, - const cp_msg_cm_set_key_cnf_t *data) +cp_msg_cm_set_key_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_mme_peks_t peks, + const cp_secu_protocol_run_t *prun, const cp_msg_cm_set_key_cnf_t *data) + __attribute__((weak)); +void +cp_msg_cm_set_key_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_mme_peks_t peks, + const cp_secu_protocol_run_t *prun, const cp_msg_cm_set_key_cnf_t *data) { } bool -cp_msg_cm_set_key_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_set_key_cnf_t *data) +cp_msg_cm_set_key_cnf_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_set_key_cnf_t *data) + __attribute__ ((weak)); +bool +cp_msg_cm_set_key_cnf_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_set_key_cnf_t *data) { return false; } +bool +cp_msg_cm_get_key_req_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) + __attribute__((weak)); +bool +cp_msg_cm_get_key_req_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) +{ + dbg_assert (mme); + dbg_assert (pid); + *pid = mme->prun.pid; + return true; +} void -cp_msg_cm_get_key_req_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_mme_peks_t peks, - const cp_secu_protocol_run_t *prun, - const cp_msg_cm_get_key_req_t *data) +cp_msg_cm_get_key_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_mme_peks_t peks, + const cp_secu_protocol_run_t *prun, const cp_msg_cm_get_key_req_t *data) + __attribute__((weak)); +void +cp_msg_cm_get_key_req_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_mme_peks_t peks, + const cp_secu_protocol_run_t *prun, const cp_msg_cm_get_key_req_t *data) { } +bool +cp_msg_cm_get_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cm_get_key_req_t *data) + __attribute__((weak)); bool cp_msg_cm_get_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_get_key_req_t *data) @@ -164,6 +132,9 @@ cp_msg_cm_get_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_cm_get_key_cnf_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) + __attribute__((weak)); bool cp_msg_cm_get_key_cnf_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) { @@ -174,13 +145,20 @@ cp_msg_cm_get_key_cnf_get_pid (cp_t *ctx, cp_mme_rx_t *mme, u8 *pid) } void -cp_msg_cm_get_key_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_mme_peks_t peks, - const cp_secu_protocol_run_t *prun, - const cp_msg_cm_get_key_cnf_t *data) +cp_msg_cm_get_key_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_mme_peks_t peks, + const cp_secu_protocol_run_t *prun, const cp_msg_cm_get_key_cnf_t *data) __attribute__((weak)); +void +cp_msg_cm_get_key_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_mme_peks_t peks, + const cp_secu_protocol_run_t *prun, const cp_msg_cm_get_key_cnf_t *data) { } +bool +cp_msg_cm_get_key_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cm_get_key_cnf_t *data) + __attribute__((weak)); bool cp_msg_cm_get_key_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_get_key_cnf_t *data) @@ -188,12 +166,19 @@ cp_msg_cm_get_key_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +void +cp_msg_cm_mme_error_ind_send (cp_t *ctx, cp_mme_peer_t *peer_info, + const cp_msg_cm_mme_error_ind_t *data) + __attribute__((weak)); void cp_msg_cm_mme_error_ind_send (cp_t *ctx, cp_mme_peer_t *peer_info, const cp_msg_cm_mme_error_ind_t *data) { } +bool +cp_msg_cm_mme_error_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cm_mme_error_ind_t *data) __attribute__((weak)); bool cp_msg_cm_mme_error_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_mme_error_ind_t *data) @@ -204,15 +189,14 @@ cp_msg_cm_mme_error_ind_receive (cp_t *ctx, cp_mme_rx_t *mme, void cp_msg_cm_sc_join_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) __attribute__((weak)); - void -cp_msg_cm_sc_join_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) {} +cp_msg_cm_sc_join_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) +{ +} bool cp_msg_cm_sc_join_req_receive (cp_t *ctx, cp_mme_rx_t *mme, uint *cco_cap) __attribute__((weak)); - - bool cp_msg_cm_sc_join_req_receive (cp_t *ctx, cp_mme_rx_t *mme, uint *cco_cap) { @@ -223,16 +207,26 @@ void cp_msg_cm_sc_join_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, const cp_msg_cm_sc_join_cnf_t *data) __attribute__((weak)); - void cp_msg_cm_sc_join_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, - const cp_msg_cm_sc_join_cnf_t *data) {} + const cp_msg_cm_sc_join_cnf_t *data) +{ +} +bool +cp_msg_cm_sc_join_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cm_sc_join_cnf_t *data) + __attribute__((weak)); +bool +cp_msg_cm_sc_join_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cm_sc_join_cnf_t *data) +{ + return true; +} cp_mme_tx_t * cp_msg_cm_amp_map_req_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, - const uint amplen) - __attribute__((weak)); + const uint amplen) __attribute__((weak)); cp_mme_tx_t * cp_msg_cm_amp_map_req_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, @@ -243,23 +237,24 @@ cp_msg_cm_amp_map_req_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, void cp_msg_cm_amp_map_req_send (cp_t *ctx, cp_mme_tx_t *mme, const uint amp) - __attribute__((weak)); + __attribute__((weak)); void cp_msg_cm_amp_map_req_send (cp_t *ctx, cp_mme_tx_t *mme, const uint amp) -{} +{ +} void -cp_msg_cm_amp_map_req_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); - +cp_msg_cm_amp_map_req_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); void -cp_msg_cm_amp_map_req_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} +cp_msg_cm_amp_map_req_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} bool cp_msg_cm_amp_map_req_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, - uint *amplen)__attribute__((weak)); - - + uint *amplen) __attribute__((weak)); bool cp_msg_cm_amp_map_req_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, uint *amplen) @@ -268,58 +263,58 @@ cp_msg_cm_amp_map_req_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, } bool -cp_msg_cm_amp_map_req_receive (cp_t *ctx, cp_mme_rx_t *mme, uint *amp)__attribute__((weak)); - -bool -cp_msg_cm_amp_map_req_receive_end (cp_t *ctx, cp_mme_rx_t *mme)__attribute__((weak)); - +cp_msg_cm_amp_map_req_receive (cp_t *ctx, cp_mme_rx_t *mme, uint *amp) + __attribute__((weak)); bool cp_msg_cm_amp_map_req_receive (cp_t *ctx, cp_mme_rx_t *mme, uint *amp) { return true; } +bool +cp_msg_cm_amp_map_req_receive_end (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_cm_amp_map_req_receive_end (cp_t *ctx, cp_mme_rx_t *mme) { return true; } -bool -cp_msg_cm_amp_map_req_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, - uint *amplen)__attribute__((weak)); - void -cp_msg_cm_amp_map_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, - const enum cp_msg_cm_amp_map_cnf_restype_t restype)__attribute__((weak)); - -bool -cp_msg_cm_amp_map_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - enum cp_msg_cm_amp_map_cnf_restype_t *restype)__attribute__((weak)); - - +cp_msg_cm_amp_map_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer_info, + const enum cp_msg_cm_amp_map_cnf_restype_t restype) + __attribute__((weak)); void -cp_msg_cm_amp_map_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, - const enum cp_msg_cm_amp_map_cnf_restype_t restype){} +cp_msg_cm_amp_map_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer_info, + const enum cp_msg_cm_amp_map_cnf_restype_t restype) +{ +} bool -cp_msg_cm_amp_map_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - enum cp_msg_cm_amp_map_cnf_restype_t *restype) +cp_msg_cm_amp_map_cnf_receive ( + cp_t *ctx, cp_mme_rx_t *mme, + enum cp_msg_cm_amp_map_cnf_restype_t *restype)__attribute__((weak)); +bool +cp_msg_cm_amp_map_cnf_receive ( + cp_t *ctx, cp_mme_rx_t *mme, + enum cp_msg_cm_amp_map_cnf_restype_t *restype) { return true; } void -cp_msg_cm_brg_info_req_send (cp_t *ctx, cp_mme_peer_t *peer_info)__attribute__((weak)); - +cp_msg_cm_brg_info_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) + __attribute__((weak)); void cp_msg_cm_brg_info_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) -{} - +{ +} bool -cp_msg_cm_brg_info_req_receive (cp_t *ctx, cp_mme_rx_t *mme)__attribute__((weak)); - +cp_msg_cm_brg_info_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_cm_brg_info_req_receive (cp_t *ctx, cp_mme_rx_t *mme) { @@ -327,40 +322,37 @@ cp_msg_cm_brg_info_req_receive (cp_t *ctx, cp_mme_rx_t *mme) } cp_mme_tx_t * -cp_msg_cm_brg_info_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, - const cp_tei_t btei, const uint nbda, - const cp_tei_t own_tei) __attribute__((weak)); - -void -cp_msg_cm_brg_info_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, const mac_t mac) __attribute__((weak)); - -void -cp_msg_cm_brg_info_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); - +cp_msg_cm_brg_info_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer_info, const uint bsf, const uint nbda, + const cp_tei_t own_tei) __attribute__((weak)); cp_mme_tx_t * -cp_msg_cm_brg_info_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, - const cp_tei_t btei, const uint nbda, - const cp_tei_t own_tei) +cp_msg_cm_brg_info_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer_info, const uint bsf, const uint nbda, + const cp_tei_t own_tei) { return NULL; } void -cp_msg_cm_brg_info_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, const mac_t mac) {} +cp_msg_cm_brg_info_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, const mac_t mac) + __attribute__((weak)); +void +cp_msg_cm_brg_info_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, const mac_t mac) +{ +} void -cp_msg_cm_brg_info_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} +cp_msg_cm_brg_info_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); +void +cp_msg_cm_brg_info_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} bool cp_msg_cm_brg_info_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, - uint *bsf, uint *nbda) __attribute__((weak)); - -bool -cp_msg_cm_brg_info_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac) __attribute__((weak)); - -bool -cp_msg_cm_brg_info_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); - + uint *bsf, uint *nbda) + __attribute__((weak)); bool cp_msg_cm_brg_info_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, uint *bsf, uint *nbda) @@ -368,12 +360,18 @@ cp_msg_cm_brg_info_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_cm_brg_info_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac) + __attribute__((weak)); bool cp_msg_cm_brg_info_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac) { return true; } +bool +cp_msg_cm_brg_info_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_cm_brg_info_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) { @@ -381,67 +379,63 @@ cp_msg_cm_brg_info_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) } void -cp_msg_cm_sta_cap_req_send (cp_t *ctx, cp_mme_peer_t *peer_info)__attribute__ ((weak)); - -bool -cp_msg_cm_sta_cap_req_receive (cp_t *ctx, cp_mme_rx_t *mme)__attribute__ ((weak)); - +cp_msg_cm_sta_cap_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) + __attribute__ ((weak)); void -cp_msg_cm_sta_cap_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) {} +cp_msg_cm_sta_cap_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) +{ +} bool -cp_msg_cm_sta_cap_req_receive (cp_t *ctx, cp_mme_rx_t *mme) {return true;} +cp_msg_cm_sta_cap_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__ ((weak)); +bool +cp_msg_cm_sta_cap_req_receive (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} void cp_msg_cm_sta_cap_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, - const cp_msg_cm_sta_cap_cnf_t *data) __attribute__((weak)); - -bool -cp_msg_cm_sta_cap_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_sta_cap_cnf_t *data) __attribute__((weak)); - + const cp_msg_cm_sta_cap_cnf_t *data) + __attribute__((weak)); void cp_msg_cm_sta_cap_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, - const cp_msg_cm_sta_cap_cnf_t *data) {} + const cp_msg_cm_sta_cap_cnf_t *data) +{ +} bool cp_msg_cm_sta_cap_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_sta_cap_cnf_t *data) {return true;} - -void -cp_msg_cm_nw_info_req_send (cp_t *ctx, cp_mme_peer_t *peer_info)__attribute__((weak)); - + cp_msg_cm_sta_cap_cnf_t *data) + __attribute__((weak)); bool -cp_msg_cm_nw_info_req_receive (cp_t *ctx, cp_mme_rx_t *mme)__attribute__((weak)); +cp_msg_cm_sta_cap_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cm_sta_cap_cnf_t *data) +{ + return true; +} void -cp_msg_cm_nw_info_req_send (cp_t *ctx, cp_mme_peer_t *peer_info){} +cp_msg_cm_nw_info_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) + __attribute__((weak)); +void +cp_msg_cm_nw_info_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) +{ +} bool -cp_msg_cm_nw_info_req_receive (cp_t *ctx, cp_mme_rx_t *mme) {return true;} +cp_msg_cm_nw_info_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_cm_nw_info_req_receive (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} cp_mme_tx_t * cp_msg_cm_nw_info_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, const uint num_nw) __attribute__((weak)); - -void -cp_msg_cm_nw_info_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, - const cp_msg_cm_nw_info_cnf_t *data) __attribute__((weak)); - -void -cp_msg_cm_nw_info_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); - -bool -cp_msg_cm_nw_info_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, - uint *num_nw) __attribute__((weak)); - -bool -cp_msg_cm_nw_info_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_cm_nw_info_cnf_t *data) __attribute__((weak)); - -bool -cp_msg_cm_nw_info_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); - cp_mme_tx_t * cp_msg_cm_nw_info_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, const uint num_nw) @@ -451,11 +445,25 @@ cp_msg_cm_nw_info_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, void cp_msg_cm_nw_info_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, - const cp_msg_cm_nw_info_cnf_t *data) {} + const cp_msg_cm_nw_info_cnf_t *data) + __attribute__((weak)); +void +cp_msg_cm_nw_info_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, + const cp_msg_cm_nw_info_cnf_t *data) +{ +} void -cp_msg_cm_nw_info_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} +cp_msg_cm_nw_info_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); +void +cp_msg_cm_nw_info_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} +bool +cp_msg_cm_nw_info_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, + uint *num_nw) __attribute__((weak)); bool cp_msg_cm_nw_info_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, uint *num_nw) @@ -463,6 +471,10 @@ cp_msg_cm_nw_info_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_cm_nw_info_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_msg_cm_nw_info_cnf_t *data) + __attribute__((weak)); bool cp_msg_cm_nw_info_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_nw_info_cnf_t *data) @@ -470,6 +482,9 @@ cp_msg_cm_nw_info_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_cm_nw_info_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_cm_nw_info_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) { @@ -477,82 +492,168 @@ cp_msg_cm_nw_info_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) } void -cp_msg_cm_hfid_req_send (cp_t *ctx, cp_mme_peer_t *peer_info, - enum cp_msg_cm_hfid_req_reqtype_t req_type, - cp_nid_t nid, - const char *hfid)__attribute__((weak)); - -bool -cp_msg_cm_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - enum cp_msg_cm_hfid_req_reqtype_t *req_type, - cp_nid_t *nid, - char *hfid)__attribute__((weak)); - +cp_msg_cm_hfid_req_send ( + cp_t *ctx, cp_mme_peer_t *peer_info, + enum cp_msg_cm_hfid_req_reqtype_t req_type, cp_nid_t nid, + const char *hfid) __attribute__((weak)); void -cp_msg_cm_hfid_req_send (cp_t *ctx, cp_mme_peer_t *peer_info, - enum cp_msg_cm_hfid_req_reqtype_t req_type, - cp_nid_t nid, - const char *hfid){} +cp_msg_cm_hfid_req_send ( + cp_t *ctx, cp_mme_peer_t *peer_info, + enum cp_msg_cm_hfid_req_reqtype_t req_type, cp_nid_t nid, + const char *hfid) +{ +} bool -cp_msg_cm_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - enum cp_msg_cm_hfid_req_reqtype_t *req_type, - cp_nid_t *nid, - char *hfid){return true;} +cp_msg_cm_hfid_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, + enum cp_msg_cm_hfid_req_reqtype_t *req_type, cp_nid_t *nid, + char *hfid) __attribute__((weak)); +bool +cp_msg_cm_hfid_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, + enum cp_msg_cm_hfid_req_reqtype_t *req_type, cp_nid_t *nid, + char *hfid) +{ + return true; +} void cp_msg_cm_hfid_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, - const enum cp_msg_cm_hfid_cnf_restype_t restype, + enum cp_msg_cm_hfid_cnf_restype_t restype, const char *hfid) __attribute__((weak)); +void +cp_msg_cm_hfid_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, + enum cp_msg_cm_hfid_cnf_restype_t restype, + const char *hfid) +{ +} + bool -cp_msg_cm_hfid_cnf_receive (cp_t *ctx, cp_mme_rx_t *mmw, +cp_msg_cm_hfid_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, enum cp_msg_cm_hfid_cnf_restype_t *restype, char *hfid) __attribute__((weak)); - -void -cp_msg_cm_hfid_cnf_send (cp_t *ctx, cp_mme_peer_t *peer_info, - const enum cp_msg_cm_hfid_cnf_restype_t restype, - const char *hfid) {} - bool -cp_msg_cm_hfid_cnf_receive (cp_t *ctx, cp_mme_rx_t *mmw, +cp_msg_cm_hfid_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, enum cp_msg_cm_hfid_cnf_restype_t *restype, - char *hfid) {return true;} + char *hfid) +{ + return true; +} void -cp_msg_cm_nw_stats_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) __attribute__((weak)); +cp_msg_cm_nw_stats_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) + __attribute__((weak)); +void +cp_msg_cm_nw_stats_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) +{ +} bool -cp_msg_cm_nw_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); +cp_msg_cm_nw_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_cm_nw_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} + +cp_mme_tx_t * +cp_msg_cm_nw_stats_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, + const uint num_stats) + __attribute__((weak)); +cp_mme_tx_t * +cp_msg_cm_nw_stats_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer_info, + const uint num_stats) +{ + return NULL; +} + +void +cp_msg_cm_nw_stats_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, + mac_t mac, uint phy_dr_tx, uint phy_dr_rx) + __attribute__((weak)); +void +cp_msg_cm_nw_stats_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, + mac_t mac, uint phy_dr_tx, uint phy_dr_rx) +{ +} void -cp_msg_cm_nw_stats_req_send (cp_t *ctx, cp_mme_peer_t *peer_info) {} +cp_msg_cm_nw_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); +void +cp_msg_cm_nw_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} bool -cp_msg_cm_nw_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme) {return true;} - +cp_msg_cm_nw_stats_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, + uint *num_stats) __attribute__((weak)); bool cp_msg_cm_nw_stats_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, - uint *num_stas)__attribute__((weak)); + uint *num_stats) +{ + return true; +} bool cp_msg_cm_nw_stats_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - mac_t *mac, uint *phy_dr_tx, uint *phy_dr_rx)__attribute__((weak)); - + mac_t *mac, uint *phy_dr_tx, uint *phy_dr_rx) + __attribute__((weak)); bool -cp_msg_cm_nw_stats_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme)__attribute__((weak)); +cp_msg_cm_nw_stats_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, + mac_t *mac, uint *phy_dr_tx, uint *phy_dr_rx) +{ + return true; +} bool -cp_msg_cm_nw_stats_cnf_receive_begin (cp_t *ctx, cp_mme_rx_t *mme, - uint *num_stas) {return true;} - +cp_msg_cm_nw_stats_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool -cp_msg_cm_nw_stats_cnf_receive (cp_t *ctx, cp_mme_rx_t *mme, - mac_t *mac, uint *phy_dr_tx, uint *phy_dr_rx) {return true;} +cp_msg_cm_nw_stats_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} bool -cp_msg_cm_nw_stats_cnf_receive_end (cp_t *ctx, cp_mme_rx_t *mme) +cp_msg_cm_link_stats_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_link_stats_req_t *data) + __attribute__((weak)); +bool +cp_msg_cm_link_stats_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_cm_link_stats_req_t *data) { return true; } + +cp_mme_tx_t * +cp_msg_cm_link_stats_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer_info, u8 req_id, u8 res_type) + __attribute__((weak)); +cp_mme_tx_t * +cp_msg_cm_link_stats_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer_info, u8 req_id, u8 res_type) +{ + return NULL; +} + +void +cp_msg_cm_link_stats_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, mfs_t *mfs, + cp_msg_cm_link_stats_tlflag_t transmit) + __attribute__((weak)); +void +cp_msg_cm_link_stats_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, mfs_t *mfs, + cp_msg_cm_link_stats_tlflag_t transmit) +{ +} + +void +cp_msg_cm_link_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); +void +cp_msg_cm_link_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} diff --git a/cesar/cp/msg/stub/src/msg_drv.c b/cesar/cp/msg/stub/src/msg_drv.c index 7624addd4a..7fc0ebc205 100644 --- a/cesar/cp/msg/stub/src/msg_drv.c +++ b/cesar/cp/msg/stub/src/msg_drv.c @@ -6,9 +6,9 @@ * * }}} */ /** - * \file src/msg_drv.c + * \file cesar/cp/msg/stub/src/msg_drv.c * \brief « brief description » - * \ingroup « module » + * \ingroup cesar_cp_msg_stub * * « long description » */ @@ -19,70 +19,6 @@ bool cp_msg_drv_sta_set_mac_addr_req_receive (cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac) __attribute__((weak)); -bool -cp_msg_drv_sta_set_cco_pref_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - bool *cco_pref) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_was_cco_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - bool *was_cco) __attribute__((weak)); - -bool -cp_msg_drv_sta_string_recv (cp_t *ctx, cp_mme_rx_t *mme, char *buffer, - uint min_length, uint max_length) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_npw_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *npw) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_dpw_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *dpw) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_sl_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_security_level_t *sl) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_nid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_nid_t *nid) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_m_sta_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - char *m_sta_hfid) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_u_sta_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - char *u_sta_hfid) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_avln_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - char *avln_hfid) __attribute__((weak)); - -bool -cp_msg_drv_sta_set_tonemask_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - u32 *tonemask) __attribute__((weak)); - -bool -cp_msg_drv_sta_mac_start_req_receive (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); - -bool -cp_msg_drv_sta_mac_stop_req_receive (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); - -bool -cp_msg_drv_sta_sc_req_receive (cp_t *ctx, cp_mme_rx_t *mme, bool *sc_join) - __attribute__((weak)); - -void -cp_msg_drv_any_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, cp_mmtype_t mmtype, - cp_msg_drv_result_t result) __attribute__((weak)); - -void -cp_msg_drv_sta_set_key_ind_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_key_t nmk, - enum cp_msg_drv_sta_set_key_type_t type, - cp_nid_t nid, - cp_security_level_t sl) __attribute__((weak)); - - bool cp_msg_drv_sta_set_mac_addr_req_receive (cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac) @@ -90,6 +26,10 @@ cp_msg_drv_sta_set_mac_addr_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_drv_sta_set_cco_pref_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + bool *cco_pref) + __attribute__((weak)); bool cp_msg_drv_sta_set_cco_pref_req_receive (cp_t *ctx, cp_mme_rx_t *mme, bool *cco_pref) @@ -100,29 +40,36 @@ cp_msg_drv_sta_set_cco_pref_req_receive (cp_t *ctx, cp_mme_rx_t *mme, bool cp_msg_drv_sta_set_was_cco_req_receive (cp_t *ctx, cp_mme_rx_t *mme, bool *was_cco) -{ - return true; -} - + __attribute__((weak)); bool -cp_msg_drv_sta_string_recv (cp_t *ctx, cp_mme_rx_t *mme, char *buffer, - uint min_length, uint max_length) +cp_msg_drv_sta_set_was_cco_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + bool *was_cco) { return true; } +bool +cp_msg_drv_sta_set_npw_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *npw) + __attribute__((weak)); bool cp_msg_drv_sta_set_npw_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *npw) { return true; } +bool +cp_msg_drv_sta_set_dpw_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *dpw) + __attribute__((weak)); bool cp_msg_drv_sta_set_dpw_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *dpw) { return true; } +bool +cp_msg_drv_sta_set_sl_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_security_level_t *sl) + __attribute__((weak)); bool cp_msg_drv_sta_set_sl_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_security_level_t *sl) @@ -130,6 +77,10 @@ cp_msg_drv_sta_set_sl_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_drv_sta_set_nid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_nid_t *nid) + __attribute__((weak)); bool cp_msg_drv_sta_set_nid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, cp_nid_t *nid) @@ -137,6 +88,10 @@ cp_msg_drv_sta_set_nid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_drv_sta_set_m_sta_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + char *m_sta_hfid) + __attribute__((weak)); bool cp_msg_drv_sta_set_m_sta_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *m_sta_hfid) @@ -144,6 +99,10 @@ cp_msg_drv_sta_set_m_sta_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_drv_sta_set_u_sta_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + char *u_sta_hfid) + __attribute__((weak)); bool cp_msg_drv_sta_set_u_sta_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *u_sta_hfid) @@ -151,6 +110,10 @@ cp_msg_drv_sta_set_u_sta_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_drv_sta_set_avln_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + char *avln_hfid) + __attribute__((weak)); bool cp_msg_drv_sta_set_avln_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, char *avln_hfid) @@ -158,6 +121,10 @@ cp_msg_drv_sta_set_avln_hfid_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } +bool +cp_msg_drv_sta_set_tonemask_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + u32 *tonemask) + __attribute__((weak)); bool cp_msg_drv_sta_set_tonemask_req_receive (cp_t *ctx, cp_mme_rx_t *mme, u32 *tonemask) @@ -167,10 +134,25 @@ cp_msg_drv_sta_set_tonemask_req_receive (cp_t *ctx, cp_mme_rx_t *mme, bool cp_msg_drv_sta_mac_start_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_drv_sta_mac_start_req_receive (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} + +bool +cp_msg_drv_sta_sc_req_receive (cp_t *ctx, cp_mme_rx_t *mme, bool *sc_join) + __attribute__((weak)); +bool +cp_msg_drv_sta_sc_req_receive (cp_t *ctx, cp_mme_rx_t *mme, bool *sc_join) { return true; } +bool +cp_msg_drv_sta_mac_stop_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); bool cp_msg_drv_sta_mac_stop_req_receive (cp_t *ctx, cp_mme_rx_t *mme) { @@ -178,11 +160,105 @@ cp_msg_drv_sta_mac_stop_req_receive (cp_t *ctx, cp_mme_rx_t *mme) } bool -cp_msg_drv_sta_sc_req_receive (cp_t *ctx, cp_mme_rx_t *mme, bool *sc_join) +cp_msg_drv_sta_set_key_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_key_t *nmk, + cp_msg_drv_sta_set_key_type_t *type, cp_nid_t *nid, + cp_security_level_t *sl) __attribute__((weak)); +bool +cp_msg_drv_sta_set_key_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_key_t *nmk, + cp_msg_drv_sta_set_key_type_t *type, cp_nid_t *nid, + cp_security_level_t *sl) { return true; } +bool +cp_msg_drv_sta_set_config_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, + char config[HPAV_MME_PAYLOAD_MAX_SIZE]) __attribute__((weak)); +bool +cp_msg_drv_sta_set_config_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, + char config[HPAV_MME_PAYLOAD_MAX_SIZE]) +{ + return true; +} + +void +cp_msg_drv_sta_set_key_ind_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_key_t nmk, + cp_msg_drv_sta_set_key_type_t type, cp_nid_t nid, + cp_security_level_t sl) __attribute__((weak)); +void +cp_msg_drv_sta_set_key_ind_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_key_t nmk, + cp_msg_drv_sta_set_key_type_t type, cp_nid_t nid, + cp_security_level_t sl) +{ +} + +bool +cp_msg_drv_sta_set_dak_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_key_t *dak) __attribute__((weak)); +bool +cp_msg_drv_sta_set_dak_req_receive (cp_t *ctx, cp_mme_rx_t *mme, + cp_key_t *dak) +{ + return true; +} + +bool +cp_msg_drv_sta_get_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_drv_sta_get_key_req_receive (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} + +void +cp_msg_drv_sta_get_key_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, + const cp_msg_drv_sta_get_key_t *data) + __attribute__((weak)); +void +cp_msg_drv_sta_get_key_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, + const cp_msg_drv_sta_get_key_t *data) +{ +} + +bool +cp_msg_drv_sta_status_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_drv_sta_status_req_receive (cp_t *ctx, cp_mme_rx_t *mme) +{ + return true; +} + +void +cp_msg_drv_sta_status_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, + const cp_msg_drv_sta_status_cnf_t *data) + __attribute__((weak)); +void +cp_msg_drv_sta_status_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, + const cp_msg_drv_sta_status_cnf_t *data) +{ +} + +void +cp_msg_drv_sta_status_ind_send (cp_t *ctx, cp_mme_peer_t *peer, + const cp_msg_drv_sta_status_t *data) + __attribute__((weak)); +void +cp_msg_drv_sta_status_ind_send (cp_t *ctx, cp_mme_peer_t *peer, + const cp_msg_drv_sta_status_t *data) +{ +} + +void +cp_msg_drv_any_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, cp_mmtype_t mmtype, + cp_msg_drv_result_t result) __attribute__((weak)); void cp_msg_drv_any_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, cp_mmtype_t mmtype, cp_msg_drv_result_t result) @@ -190,10 +266,36 @@ cp_msg_drv_any_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, cp_mmtype_t mmtype, } void -cp_msg_drv_sta_set_key_ind_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_key_t nmk, - enum cp_msg_drv_sta_set_key_type_t type, - cp_nid_t nid, - cp_security_level_t sl) +cp_msg_drv_sta_set_u_sta_hfid_ind_send (cp_t *ctx, cp_mme_peer_t *peer, + const char *u_sta_hfid) + __attribute__((weak)); +void +cp_msg_drv_sta_set_u_sta_hfid_ind_send (cp_t *ctx, cp_mme_peer_t *peer, + const char *u_sta_hfid) { } + +void +cp_msg_drv_sta_set_avln_hfid_ind_send (cp_t *ctx, cp_mme_peer_t *peer, + const char *avln_hfid) + __attribute__((weak)); +void +cp_msg_drv_sta_set_avln_hfid_ind_send (cp_t *ctx, cp_mme_peer_t *peer, + const char *avln_hfid) +{ +} + +bool +cp_msg_drv_mcast_set_list_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, uint *nb_groups, + mac_t groups[MCAST_GROUP_MAX_NB], uint nb_members[MCAST_GROUP_MAX_NB], + mac_t members[MCAST_GROUP_MAX_NB][MCAST_MEMBER_MAX_NB]) + __attribute__((weak)); +bool +cp_msg_drv_mcast_set_list_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, uint *nb_groups, + mac_t groups[MCAST_GROUP_MAX_NB], uint nb_members[MCAST_GROUP_MAX_NB], + mac_t members[MCAST_GROUP_MAX_NB][MCAST_MEMBER_MAX_NB]) +{ + return true; +} diff --git a/cesar/cp/msg/stub/src/msg_vs.c b/cesar/cp/msg/stub/src/msg_vs.c index 45dff754af..b8b9e1b20f 100644 --- a/cesar/cp/msg/stub/src/msg_vs.c +++ b/cesar/cp/msg/stub/src/msg_vs.c @@ -6,9 +6,9 @@ * * }}} */ /** - * \file src/msg_vs.c + * \file cesar/cp/msg/stun/src/msg_vs.c * \brief « brief description » - * \ingroup « module » + * \ingroup cesar_cp_msg_stun * * « long description » */ @@ -26,181 +26,243 @@ #include "lib/stats.h" bool -cp_msg_vs_get_tonemap_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - mac_t *mac_addr, - cp_msg_vs_get_tonemap_tmi_t *tmi, - u8 *int_id, - cp_msg_vs_get_tonemap_req_dir_t *dir) +cp_msg_vs_get_tonemap_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac_addr, + cp_msg_vs_get_tonemap_tmi_t *tmi, u8 *int_id, + cp_msg_vs_get_tonemap_req_dir_t *dir) __attribute__((weak)); - - bool -cp_msg_vs_get_tonemap_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - mac_t *mac_addr, - cp_msg_vs_get_tonemap_tmi_t *tmi, - u8 *int_id, - cp_msg_vs_get_tonemap_req_dir_t *dir) +cp_msg_vs_get_tonemap_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac_addr, + cp_msg_vs_get_tonemap_tmi_t *tmi, u8 *int_id, + cp_msg_vs_get_tonemap_req_dir_t *dir) { return true; } void -cp_msg_vs_get_tonemap_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_vs_get_tonemap_cnf_result_t - result, - uint beacon_delta, u8 int_id, - tonemaps_t *tms, - cp_msg_vs_get_tonemap_tmi_t tmi) - __attribute__((weak)); +cp_msg_vs_get_tonemap_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_msg_vs_get_tonemap_cnf_result_t result, + uint beacon_delta, u8 int_id,tonemaps_t *tms, + cp_msg_vs_get_tonemap_tmi_t tmi) __attribute__((weak)); void -cp_msg_vs_get_tonemap_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_vs_get_tonemap_cnf_result_t - result, - uint beacon_delta, u8 int_id, - tonemaps_t *tms, - cp_msg_vs_get_tonemap_tmi_t tmi) -{} +cp_msg_vs_get_tonemap_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, cp_msg_vs_get_tonemap_cnf_result_t result, + uint beacon_delta, u8 int_id,tonemaps_t *tms, + cp_msg_vs_get_tonemap_tmi_t tmi) +{ +} bool -cp_msg_vs_get_spectrum_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - mac_t *mac_addr, - cp_msg_vs_get_spectrum_req_carrier_gr_t - *carrier_gr) +cp_msg_vs_get_snr_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac_addr, + cp_msg_vs_get_snr_req_int_t *tm_int_i, u8 *int_id, u8 *carrier_gr) __attribute__((weak)); +bool +cp_msg_vs_get_snr_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac_addr, + cp_msg_vs_get_snr_req_int_t *tm_int_i, u8 *int_id, u8 *carrier_gr) +{ + return true; +} +void +cp_msg_vs_get_snr_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_msg_vs_get_snr_cnf_t *data) + __attribute__((weak)); +void +cp_msg_vs_get_snr_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, const cp_msg_vs_get_snr_cnf_t *data) +{ +} bool -cp_msg_vs_get_spectrum_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - mac_t *mac_addr, - cp_msg_vs_get_spectrum_req_carrier_gr_t - *carrier_gr) +cp_msg_vs_get_spectrum_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac_addr, + cp_msg_vs_get_spectrum_req_carrier_gr_t *carrier_gr) + __attribute__((weak)); +bool +cp_msg_vs_get_spectrum_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac_addr, + cp_msg_vs_get_spectrum_req_carrier_gr_t *carrier_gr) { return true; } cp_mme_tx_t * -cp_msg_vs_get_spectrum_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_vs_get_spectrum_cnf_result_t - result, u8 AvgAGC) +cp_msg_vs_get_spectrum_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, + cp_msg_vs_get_spectrum_cnf_result_t result, u8 AvgAGC) __attribute__((weak)); - - cp_mme_tx_t * -cp_msg_vs_get_spectrum_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_vs_get_spectrum_cnf_result_t - result, u8 AvgAGC) +cp_msg_vs_get_spectrum_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, + cp_msg_vs_get_spectrum_cnf_result_t result, u8 AvgAGC) { return NULL; } void -cp_msg_vs_get_spectrum_cnf_send_spectrum (cp_t *ctx, cp_mme_tx_t *mme, - cp_msg_vs_get_spectrum_cnf_spec_t - *spectrum) +cp_msg_vs_get_spectrum_cnf_send_spectrum ( + cp_t *ctx, cp_mme_tx_t *mme, + cp_msg_vs_get_spectrum_cnf_spec_t *spectrum) __attribute__((weak)); - - void -cp_msg_vs_get_spectrum_cnf_send_spectrum (cp_t *ctx, cp_mme_tx_t *mme, - cp_msg_vs_get_spectrum_cnf_spec_t - *spectrum) {} +cp_msg_vs_get_spectrum_cnf_send_spectrum ( + cp_t *ctx, cp_mme_tx_t *mme, + cp_msg_vs_get_spectrum_cnf_spec_t *spectrum) +{ +} void cp_msg_vs_get_spectrum_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); - void -cp_msg_vs_get_spectrum_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} - +cp_msg_vs_get_spectrum_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} bool -cp_msg_vs_get_link_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_vs_get_link_stats_req_t *data) +cp_msg_vs_get_link_stats_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_vs_get_link_stats_req_t *data) __attribute__((weak)); - bool -cp_msg_vs_get_link_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_msg_vs_get_link_stats_req_t *data) +cp_msg_vs_get_link_stats_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_msg_vs_get_link_stats_req_t *data) { return true; } void -cp_msg_vs_get_link_stats_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - u8 ReqID, - cp_msg_vs_get_link_stats_cnf_result_t - result, - u32 Bad_CRC) +cp_msg_vs_get_link_stats_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, u8 ReqID, + cp_msg_vs_get_link_stats_cnf_result_t result, u32 Bad_CRC) __attribute__((weak)); - void -cp_msg_vs_get_link_stats_cnf_send (cp_t *ctx, cp_mme_peer_t *peer, - u8 ReqID, - cp_msg_vs_get_link_stats_cnf_result_t - result, - u32 Bad_CRC) {} - +cp_msg_vs_get_link_stats_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, u8 ReqID, + cp_msg_vs_get_link_stats_cnf_result_t result, u32 Bad_CRC) +{ +} cp_mme_tx_t * -cp_msg_vs_get_amp_map_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_vs_get_amp_map_cnf_result_t - result, u16 amlen) +cp_msg_vs_get_amp_map_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, + cp_msg_vs_get_amp_map_cnf_result_t result, u16 amlen) __attribute__((weak)); - - cp_mme_tx_t * -cp_msg_vs_get_amp_map_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - cp_msg_vs_get_amp_map_cnf_result_t - result, u16 amlen) +cp_msg_vs_get_amp_map_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, + cp_msg_vs_get_amp_map_cnf_result_t result, u16 amlen) { return NULL; } void -cp_msg_vs_get_amp_map_cnf_send_ampmap (cp_t *ctx, cp_mme_tx_t *mme, - u8 ampmap) - __attribute__((weak)); - - +cp_msg_vs_get_amp_map_cnf_send_ampmap ( + cp_t *ctx, cp_mme_tx_t *mme, u8 ampmap) __attribute__((weak)); void -cp_msg_vs_get_amp_map_cnf_send_ampmap (cp_t *ctx, cp_mme_tx_t *mme, - u8 ampmap) {} +cp_msg_vs_get_amp_map_cnf_send_ampmap ( + cp_t *ctx, cp_mme_tx_t *mme, u8 ampmap) +{ +} void cp_msg_vs_get_amp_map_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); +void +cp_msg_vs_get_amp_map_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} + +bool +cp_msg_vs_get_stats_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, u8 *page_number, u8* level) + __attribute__((weak)); +bool +cp_msg_vs_get_stats_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, u8 *page_number, u8* level) +{ + return true; +} + +cp_mme_tx_t * +cp_msg_vs_get_stats_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer) + __attribute__((weak)); +cp_mme_tx_t * +cp_msg_vs_get_stats_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer) +{ + return NULL; +} +void +cp_msg_vs_get_stats_cnf_send ( + cp_t *ctx, cp_mme_tx_t *mme, u8 page, u8 nb_pages, + lib_stats_level_t level, cp_msg_vs_get_stats_cnf_result_t result) + __attribute__((weak)); +void +cp_msg_vs_get_stats_cnf_send ( + cp_t *ctx, cp_mme_tx_t *mme, u8 page, u8 nb_pages, + lib_stats_level_t level, cp_msg_vs_get_stats_cnf_result_t result) +{ +} void -cp_msg_vs_get_amp_map_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} +cp_msg_vs_get_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); +void +cp_msg_vs_get_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} + bool -cp_msg_vs_get_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - u8 *page_number, u8* level) +cp_msg_imac_get_discover_list_req_receive (cp_t *ctx, cp_mme_rx_t *mme) + __attribute__((weak)); +bool +cp_msg_imac_get_discover_list_req_receive (cp_t *ctx, cp_mme_rx_t *mme) { return true; } cp_mme_tx_t * -cp_msg_vs_get_stats_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer) +cp_msg_imac_get_discover_list_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, + cp_msg_imac_get_discover_list_cnf_result_t result, u8 version, + u8 num_stations) __attribute__((weak)); +cp_mme_tx_t * +cp_msg_imac_get_discover_list_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, + cp_msg_imac_get_discover_list_cnf_result_t result, u8 version, + u8 num_stations) { return NULL; } void -cp_msg_vs_get_stats_cnf_send (cp_t *ctx, cp_mme_tx_t *mme, u8 page, - u8 nb_pages, lib_stats_level_t level, - cp_msg_vs_get_stats_cnf_result_t result){} +cp_msg_imac_get_discover_list_cnf_send ( + cp_t *ctx, cp_mme_tx_t *mme, + const cp_msg_imac_discover_list_sta_info_t *data) __attribute__((weak)); +void +cp_msg_imac_get_discover_list_cnf_send ( + cp_t *ctx, cp_mme_tx_t *mme, + const cp_msg_imac_discover_list_sta_info_t *data) +{ +} void -cp_msg_vs_get_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme){} +cp_msg_imac_get_discover_list_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) + __attribute__((weak)); +void +cp_msg_imac_get_discover_list_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} bool cp_msg_vs_get_ce_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac_addr) __attribute__((weak)); - bool cp_msg_vs_get_ce_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme, mac_t *mac_addr) @@ -208,84 +270,88 @@ cp_msg_vs_get_ce_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme, return true; } -bool -cp_msg_vs_get_pb_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_tei_t *stei_filter) - __attribute__((weak)); +void +cp_msg_vs_get_ce_stats_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, u8 version, u8 result, sta_t *sta, + tonemask_info_t *ti) __attribute__((weak)); +void +cp_msg_vs_get_ce_stats_cnf_send ( + cp_t *ctx, cp_mme_peer_t *peer, u8 version, u8 result, sta_t *sta, + tonemask_info_t *ti) +{ +} bool -cp_msg_vs_get_pb_stats_req_receive (cp_t *ctx, cp_mme_rx_t *mme, - cp_tei_t *stei_filter) +cp_msg_vs_get_pb_stats_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_tei_t *stei_filter) __attribute__((weak)); +bool +cp_msg_vs_get_pb_stats_req_receive ( + cp_t *ctx, cp_mme_rx_t *mme, cp_tei_t *stei_filter) { return true; } - cp_mme_tx_t * -cp_msg_vs_get_pb_stats_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - int nb_measures) - __attribute__((weak)); - +cp_msg_vs_get_pb_stats_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, int nb_measures) __attribute__((weak)); cp_mme_tx_t * -cp_msg_vs_get_pb_stats_cnf_send_begin ( cp_t *ctx, cp_mme_peer_t *peer, - int nb_measures) +cp_msg_vs_get_pb_stats_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, int nb_measures) { return NULL; } void -cp_msg_vs_get_pb_stats_cnf_send_measure (cp_t *ctx, cp_mme_tx_t *mme, - int start_to_read, int nb_entries) - __attribute__((weak)); - +cp_msg_vs_get_pb_stats_cnf_send_measure ( + cp_t *ctx, cp_mme_tx_t *mme, int start_to_read, int nb_entries) + __attribute__((weak)); void -cp_msg_vs_get_pb_stats_cnf_send_measure (cp_t *ctx, cp_mme_tx_t *mme, - int start_to_read, int nb_entries) -{} +cp_msg_vs_get_pb_stats_cnf_send_measure ( + cp_t *ctx, cp_mme_tx_t *mme, int start_to_read, int nb_entries) +{ +} void cp_msg_vs_get_pb_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); - void -cp_msg_vs_get_pb_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} +cp_msg_vs_get_pb_stats_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} bool cp_msg_vs_get_mactotei_req_receive (cp_t *ctx, cp_mme_rx_t *mme) __attribute__((weak)); - bool cp_msg_vs_get_mactotei_req_receive (cp_t *ctx, cp_mme_rx_t *mme) { return true; } - cp_mme_tx_t * -cp_msg_vs_get_mactotei_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - uint nb_entry) - __attribute__((weak)); - +cp_msg_vs_get_mactotei_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, uint nb_entry) __attribute__((weak)); cp_mme_tx_t * -cp_msg_vs_get_mactotei_cnf_send_begin (cp_t *ctx, cp_mme_peer_t *peer, - uint nb_entry) +cp_msg_vs_get_mactotei_cnf_send_begin ( + cp_t *ctx, cp_mme_peer_t *peer, uint nb_entry) { return NULL; } void -cp_msg_vs_get_mactotei_cnf_send_entry (cp_t *ctx, cp_mme_tx_t *mme_tx, - mac_t mac, cp_tei_t tei, u8 tag) +cp_msg_vs_get_mactotei_cnf_send_entry ( + cp_t *ctx, cp_mme_tx_t *mme_tx, mac_t mac, cp_tei_t tei, u8 tag) __attribute__((weak)); - void -cp_msg_vs_get_mactotei_cnf_send_entry (cp_t *ctx, cp_mme_tx_t *mme_tx, - mac_t mac, cp_tei_t tei, u8 tag) -{} +cp_msg_vs_get_mactotei_cnf_send_entry ( + cp_t *ctx, cp_mme_tx_t *mme_tx, mac_t mac, cp_tei_t tei, u8 tag) +{ +} void cp_msg_vs_get_mactotei_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) __attribute__((weak)); - void -cp_msg_vs_get_mactotei_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) {} +cp_msg_vs_get_mactotei_cnf_send_end (cp_t *ctx, cp_mme_tx_t *mme) +{ +} -- cgit v1.2.3