summaryrefslogtreecommitdiff
path: root/cesar/cl/src/cl.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cl/src/cl.c')
-rw-r--r--cesar/cl/src/cl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cesar/cl/src/cl.c b/cesar/cl/src/cl.c
index e106929d4e..78c55aa74c 100644
--- a/cesar/cl/src/cl.c
+++ b/cesar/cl/src/cl.c
@@ -16,6 +16,7 @@
#include "common/defs/ethernet.h"
#include "lib/bitstream.h"
+#include "config/cl.h"
#include "cl/cl.h"
#include "cl/data_rate.h"
#include "mac/sar/sar.h"
@@ -142,7 +143,7 @@ cl_data_send_with_tei (cl_t *ctx, u8 *buffer, uint length, uint tei,
/* update data rate informations associated to the TX
* from the local sta to the associated sta */
- if (MAC_TEI_IS_STA (tei))
+ if (MAC_TEI_IS_STA (tei) && CONFIG_CL_DATA_RATE)
{
sta = mac_store_sta_get (ctx->mac_store, tei);
if (sta)
@@ -851,7 +852,7 @@ void cl_data_recv (cl_t *ctx, u8 *buffer, uint length, mfs_rx_t *mfs)
* from the associated sta to the local sta */
tei = mfs->common.tei;
- if (MAC_TEI_IS_STA (tei))
+ if (MAC_TEI_IS_STA (tei) && CONFIG_CL_DATA_RATE)
{
sta = mac_store_sta_get (ctx->mac_store, tei);
if (sta)