summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Jourdan2013-02-18 16:21:42 +0100
committerCyril Jourdan2013-05-15 12:55:26 +0200
commitbf4c7aca8e8065c5c9c27025b50993ce618163d3 (patch)
treec429477a36dea59ed7f6f02db2bdda549673d785
parente9cbaec76b80cd2a4cff33f305fc23c907a7d1b9 (diff)
cesar/mac/pbproc: minor refactoring, refs #3342
-rw-r--r--cesar/mac/pbproc/src/fsm_handle_fc.c2
-rw-r--r--cesar/mac/pbproc/src/prep_mpdu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cesar/mac/pbproc/src/fsm_handle_fc.c b/cesar/mac/pbproc/src/fsm_handle_fc.c
index bf149db18f..ece799b878 100644
--- a/cesar/mac/pbproc/src/fsm_handle_fc.c
+++ b/cesar/mac/pbproc/src/fsm_handle_fc.c
@@ -36,7 +36,7 @@ pbproc_fhfc_beacon (pbproc_t *ctx, u32 rx_date,
* Handle SOF FC.
* \param ctx pbproc context
* \param rx_date start of preamble date
- * \param fc_av frame control
+ * \param fc_av generic FC
*/
static void
pbproc_fhfc_sof (pbproc_t *ctx, u32 rx_date, const pbproc_fc_t *fc_av);
diff --git a/cesar/mac/pbproc/src/prep_mpdu.c b/cesar/mac/pbproc/src/prep_mpdu.c
index 737547a2df..b9d3a9977d 100644
--- a/cesar/mac/pbproc/src/prep_mpdu.c
+++ b/cesar/mac/pbproc/src/prep_mpdu.c
@@ -225,7 +225,7 @@ pbproc_prep_mpdu (pbproc_t *ctx, mfs_tx_t *mfs)
prep->fc_mode = PHY_FC_MODE (ctx->alloc.hybrid,
ctx->config->fc_symbols_nb);
prep->stei = (!mfs->common.bcast && prep->unassociated)
- ? 0 : ctx->config->tei;
+ ? MAC_TEI_UNASSOCIATED : ctx->config->tei;
/* Should we use RTS CTS?
* TODO: real test is more complex. */
prep->rts_cts = mfs->common.bcast && ctx->config->rts_broadcast;