summaryrefslogtreecommitdiff
path: root/ce/test/rx/maximus/src/test_rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ce/test/rx/maximus/src/test_rx.c')
-rw-r--r--ce/test/rx/maximus/src/test_rx.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ce/test/rx/maximus/src/test_rx.c b/ce/test/rx/maximus/src/test_rx.c
index 32a6544359..a6785deb5a 100644
--- a/ce/test/rx/maximus/src/test_rx.c
+++ b/ce/test/rx/maximus/src/test_rx.c
@@ -68,12 +68,6 @@ local_sar_mpdu_measurement_cb (void *user, pbproc_rx_params_t *rx_params,
void
sar_start (void)
{
- pbproc_t *pbproc_ctx = pbproc_init (&mac_config_ctx, mac_store_ctx);
- ca = blk_alloc();
- sar_ctx = sar_init (mac_store_ctx, pbproc_ctx, ca);
- sar_init_measure_context (sar_ctx, rxce_ctx);
- //sar_init_measurement_cb (sar_ctx, &local_sar_mpdu_measurement_cb);
- sar_init_measurement_cb (sar_ctx, &sar_mpdu_measurement_cb);
mac_store_sta_add (mac_store_ctx, 1);
sta = mac_store_sta_get (mac_store_ctx, 1);
cyg_thread_create (SAR_PRIORITY, &sar_process, (cyg_addrword_t)sar_ctx, "sar_test",
@@ -94,7 +88,10 @@ sar_end (void)
void
ce_init (void)
{
- rxce_ctx = rxce_init (mac_store_ctx, &mac_config_ctx);
+ pbproc_t *pbproc_ctx = pbproc_init (&mac_config_ctx, mac_store_ctx);
+ ca = blk_alloc();
+ sar_ctx = sar_init (mac_store_ctx, pbproc_ctx, ca);
+ rxce_ctx = rxce_init (sar_ctx, mac_store_ctx, &mac_config_ctx);
cyg_thread_create (RXCE_PRIORITY, &rxce_process, (cyg_addrword_t) rxce_ctx, "rxce",
rxce_stack, CYGNUM_HAL_STACK_SIZE_TYPICAL,
&rxce_handle, &rxce_thread);