summaryrefslogtreecommitdiff
path: root/cesar/mac
diff options
context:
space:
mode:
authorschodet2009-09-24 09:29:56 +0000
committerNicolas Schodet2009-10-08 22:51:53 +0200
commit0e340b68ea04bc76a2c27e634e1efd186e77ab5e (patch)
tree8200b9f5af104e1442dad75de85c8be0c990422f /cesar/mac
parent42c86881fab11f70a9d6aa6a1c561082ff4e2ea8 (diff)
* mac/pbproc/test/pbproc_eoc:
- port av changes.
Diffstat (limited to 'cesar/mac')
-rw-r--r--cesar/mac/pbproc/test/pbproc_eoc/inc/scenario_defs.h1
-rw-r--r--cesar/mac/pbproc/test/pbproc_eoc/src/phy.c3
-rw-r--r--cesar/mac/pbproc/test/pbproc_eoc/src/tx_data.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/cesar/mac/pbproc/test/pbproc_eoc/inc/scenario_defs.h b/cesar/mac/pbproc/test/pbproc_eoc/inc/scenario_defs.h
index 1875aaa878..9a707a4f82 100644
--- a/cesar/mac/pbproc/test/pbproc_eoc/inc/scenario_defs.h
+++ b/cesar/mac/pbproc/test/pbproc_eoc/inc/scenario_defs.h
@@ -121,6 +121,7 @@ typedef struct
typedef struct
{
+ u32 date;
u32 fc10;
} scenario_event_phy_tx_fc10_t;
diff --git a/cesar/mac/pbproc/test/pbproc_eoc/src/phy.c b/cesar/mac/pbproc/test/pbproc_eoc/src/phy.c
index 92addbfda8..cc3487279f 100644
--- a/cesar/mac/pbproc/test/pbproc_eoc/src/phy.c
+++ b/cesar/mac/pbproc/test/pbproc_eoc/src/phy.c
@@ -71,9 +71,10 @@ phy_set_tonemap (phy_t *ctx, uint tonemap_index, blk_t *tonemap)
}
void
-phy_tx_fc10 (phy_t *ctx, u32 fc_10)
+phy_tx_fc10 (phy_t *ctx, u32 date, u32 fc_10)
{
scenario_event (phy_tx_fc10, params);
+ test_fail_unless (date == params->date);
test_fail_unless (fc_10 == params->fc10);
}
diff --git a/cesar/mac/pbproc/test/pbproc_eoc/src/tx_data.c b/cesar/mac/pbproc/test/pbproc_eoc/src/tx_data.c
index 4811ad346f..d49a5458fc 100644
--- a/cesar/mac/pbproc/test/pbproc_eoc/src/tx_data.c
+++ b/cesar/mac/pbproc/test/pbproc_eoc/src/tx_data.c
@@ -269,7 +269,7 @@ tx_data_beacon_test (test_t t, test_pbproc_t *tp, u32 date, uint duration_tck,
SCENARIO_ACTION (phy_access, .access_param = &access,
.prp_won = true, .slot_count = 0),
SCENARIO_EVENT (ca_access_hold),
- SCENARIO_EVENT (phy_tx_fc10, .fc10 = 0x2f00),
+ SCENARIO_EVENT (phy_tx_fc10, .date = date, .fc10 = 0x2f00),
SCENARIO_EVENT (phy_pbdma_start, .bypass_aes = true, .nb_total = 1,
.nb_ready = 1, .nb_pb_it = 1, .chandata = false,
.now = false),