summaryrefslogtreecommitdiff
path: root/cesar/interface/src
diff options
context:
space:
mode:
authorlaranjeiro2008-10-24 11:43:33 +0000
committerlaranjeiro2008-10-24 11:43:33 +0000
commit171d14cfef3c8d5e113a33c14d59daded7e20596 (patch)
treeba1907108ac0c9d5165c2ccd7deb42313ba193db /cesar/interface/src
parentec04e4c14d8bf616c589e3ab32ea91b31a42f658 (diff)
interface: Update the interface communication with the CL. (see ticket #139)
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@3349 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/interface/src')
-rw-r--r--cesar/interface/src/interface.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/cesar/interface/src/interface.c b/cesar/interface/src/interface.c
index 8bdb6c5959..1530c9b8ca 100644
--- a/cesar/interface/src/interface.c
+++ b/cesar/interface/src/interface.c
@@ -205,7 +205,7 @@ interface_callback_beacon_init (interface_t *ctx,
/** Receives an MME from the PWL or the HLE.
* \param ctx the interface context
- * \param mfs the mfs from the one the MF comes if it comes from the PWL.
+ * \param tei the station's source TEI.
* \param buffer the buffer containing the MME.
* \param length the MME length
* \param mme_data data use by the CL.
@@ -213,7 +213,7 @@ interface_callback_beacon_init (interface_t *ctx,
* crypted.
*/
void
-interface_mme_recv (interface_t *ctx, mfs_rx_t *mfs, u8 *buffer, uint length,
+interface_mme_recv (interface_t *ctx, uint tei, u8 *buffer, uint length,
cl_mme_recv_t *mme_data, bool encrypted)
{
u8 *copy_buffer;
@@ -236,7 +236,7 @@ interface_mme_recv (interface_t *ctx, mfs_rx_t *mfs, u8 *buffer, uint length,
// Call the actor callback.
dbg_assert (ctx->mme_recv_cb);
- (*ctx->mme_recv_cb) (ctx->interface_mme_user_data, mfs, buffer,
+ (*ctx->mme_recv_cb) (ctx->interface_mme_user_data, tei, buffer,
length, mme_data, encrypted);
}
@@ -260,11 +260,10 @@ interface_mme_recv_done (interface_t *ctx, void *mme_recv)
* \param ctx the interface context.
* \param buffer the buffer containing the MME.
* \param length the length of the MME.
- * \param mfs the MFS to send the MME if the mme is to be sent over the PWL,
- * otherwise this pointer is NULL.
+ * \param tei the destination TEI.
*/
void
-interface_mme_send (interface_t *ctx, u8* buffer, uint length, mfs_tx_t *mfs)
+interface_mme_send (interface_t *ctx, u8* buffer, uint length, uint tei)
{
u8 *copy_buffer;
@@ -285,7 +284,7 @@ interface_mme_send (interface_t *ctx, u8* buffer, uint length, mfs_tx_t *mfs)
}
dbg_assert (ctx->cl);
- cl_mme_send (ctx->cl, buffer, length, mfs);
+ cl_mme_send (ctx->cl, buffer, length, tei);
}