summaryrefslogtreecommitdiff
path: root/cesar/cl/src/cl.c
diff options
context:
space:
mode:
authorMilenko Jelisavcic2012-03-26 11:48:25 +0200
committerMilenko Jelisavcic2012-03-27 11:25:51 +0200
commitd5a976919870e0034eb177376d859bcc140c7498 (patch)
tree784f0c22cc7dd42eaadfdcf9cad0a0a088286186 /cesar/cl/src/cl.c
parentae1b91b52d33f88de0ba50d045ae74f6cd3c90df (diff)
cesar/cl/test/functional[eoc]: fix functional test, no refs
Use stat config. Force blk initialization.
Diffstat (limited to 'cesar/cl/src/cl.c')
-rw-r--r--cesar/cl/src/cl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cesar/cl/src/cl.c b/cesar/cl/src/cl.c
index fc6629e90b..98ac03afd2 100644
--- a/cesar/cl/src/cl.c
+++ b/cesar/cl/src/cl.c
@@ -42,6 +42,7 @@ static struct cl_t cl_global;
* Initialise CL stats.
* \param ctx cl context
*/
+#if CONFIG_STATS
static void
cl_stats_init (cl_t *ctx)
{
@@ -59,6 +60,7 @@ cl_stats_init (cl_t *ctx)
CL_STAT (tx_data_multicast);
CL_STAT (tx_mme);
}
+#endif
cl_t *
cl_init (mac_store_t *mac_store, sar_t *sar, mac_config_t *mac_config,
@@ -120,9 +122,10 @@ cl_init (mac_store_t *mac_store, sar_t *sar, mac_config_t *mac_config,
lib_seq_check_init (&ctx->seq_check_rx_ctx, cl_lib_seq_check_rx_cb, ctx);
lib_seq_check_init (&ctx->seq_check_tx_ctx, cl_lib_seq_check_tx_cb, ctx);
+#if CONFIG_STATS
/* Register statistics. */
cl_stats_init (ctx);
-
+#endif
/* Debug LEDs. */
GPIO_SETUP (LED_CL_RX, GPIO_DIRECTION_OUT);
GPIO_SET (LED_CL_RX, 0);