summaryrefslogtreecommitdiff
path: root/cesar/mac/pbproc/src
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/pbproc/src')
-rw-r--r--cesar/mac/pbproc/src/fsm_tx_data.c2
-rw-r--r--cesar/mac/pbproc/src/prep_mpdu.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/cesar/mac/pbproc/src/fsm_tx_data.c b/cesar/mac/pbproc/src/fsm_tx_data.c
index 17ba865b9e..b63a9c42c2 100644
--- a/cesar/mac/pbproc/src/fsm_tx_data.c
+++ b/cesar/mac/pbproc/src/fsm_tx_data.c
@@ -52,7 +52,7 @@ pbproc_ftda__handle (pbproc_t *ctx)
ctx->prep_mpdu.nek, ctx->prep_mpdu.pb_nb_total,
ctx->prep_mpdu.wack ? 0 : ctx->prep_mpdu.pb_nb_total,
&ctx->prep_mpdu.main_head->phy_pb, NULL, false);
- if (ctx->prep_mpdu.mod == PHY_MOD_TM)
+ if (ctx->prep_mpdu.tmi >= PHY_MOD_ROBO_NB)
phy_set_tonemap (ctx->phy, ctx->prep_mpdu.tonemap);
phy_tx_param (ctx->phy, ctx->prep_mpdu.fc_mode,
ctx->prep_mpdu.phy_combo_params, ctx->prep_mpdu.gil);
diff --git a/cesar/mac/pbproc/src/prep_mpdu.c b/cesar/mac/pbproc/src/prep_mpdu.c
index c2dd319a56..8753367f64 100644
--- a/cesar/mac/pbproc/src/prep_mpdu.c
+++ b/cesar/mac/pbproc/src/prep_mpdu.c
@@ -100,7 +100,6 @@ pbproc_prep_beacon (pbproc_t *ctx, mfs_tx_t *mfs)
prep->bypass_aes = true;
/* Modulation. */
prep->tmi = PHY_MOD_MINI_ROBO;
- prep->mod = PHY_MOD_MINI_ROBO;
tonemap_t *tm;
tm = &ctx->config->tonemask_info.tonemap_robo[PHY_MOD_MINI_ROBO];
prep->phy_combo_params = tm->phy_combo_params[PHY_PB_SIZE_136];
@@ -306,7 +305,6 @@ pbproc_prep_mpdu (pbproc_t *ctx, mfs_tx_t *mfs)
sound_reason_code = TONEMAP_SRC_NULL;
/* Prepare parameters. */
prep->tmi = tmi;
- prep->mod = tmi < PHY_MOD_ROBO_NB ? tmi : PHY_MOD_TM;
prep->phy_combo_params = tm->phy_combo_params[PHY_PB_SIZE_520];
prep->gil = tm->gil;
prep->tonemap = tm->tmdma_desc_head;