summaryrefslogtreecommitdiff
path: root/mac/sar/test/unit_test/ecos
diff options
context:
space:
mode:
authorlaranjeiro2007-11-29 16:01:45 +0000
committerlaranjeiro2007-11-29 16:01:45 +0000
commit62d1d82e0c3a7b550c3ddade96434bf5271fd3cc (patch)
tree4b254a4295a46c0c81010a707122215431ed1fea /mac/sar/test/unit_test/ecos
parenta9f912a5f8211f36112d6bb13cb3dae751b46b10 (diff)
Update the SAR with the modification of the pbproc. Cesar init function.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1068 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'mac/sar/test/unit_test/ecos')
-rw-r--r--mac/sar/test/unit_test/ecos/src/reassembly_complete.c16
-rw-r--r--mac/sar/test/unit_test/ecos/src/reassembly_create_mfs.c8
-rw-r--r--mac/sar/test/unit_test/ecos/src/reassembly_measurement.c8
-rw-r--r--mac/sar/test/unit_test/ecos/src/reassembly_mfs_update_expiration_date.c8
-rw-r--r--mac/sar/test/unit_test/ecos/src/reassembly_two_jobs.c6
-rw-r--r--mac/sar/test/unit_test/ecos/src/sar_buffer_address.c10
-rw-r--r--mac/sar/test/unit_test/ecos/src/sar_call_back_ul.c16
-rw-r--r--mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c77
-rw-r--r--mac/sar/test/unit_test/ecos/src/sar_mfs_resising.c28
-rw-r--r--mac/sar/test/unit_test/ecos/src/segmentation_complete.c33
10 files changed, 133 insertions, 77 deletions
diff --git a/mac/sar/test/unit_test/ecos/src/reassembly_complete.c b/mac/sar/test/unit_test/ecos/src/reassembly_complete.c
index dc49b9e538..f7a7ede0b1 100644
--- a/mac/sar/test/unit_test/ecos/src/reassembly_complete.c
+++ b/mac/sar/test/unit_test/ecos/src/reassembly_complete.c
@@ -31,6 +31,8 @@ uint cpt;
test_t test;
mac_store_t *mac_store;
sar_t *sar_ctx;
+pbproc_t *pbproc;
+mac_config_t *mac_config;
bool bool_test;
@@ -50,8 +52,10 @@ void rea_comp_sar_rea_done (void *user, u8* buffer, uint length,
void this_test_init (void)
{
+ mac_config = blk_alloc ();
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
+ pbproc = pbproc_init (mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
bool_test = false;
cpt = 0;
@@ -71,7 +75,9 @@ void this_test_init (void)
void this_test_uninit (void)
{
sar_uninit (sar_ctx);
- dbg_check(mac_store_sta_remove (mac_store, 0x1));
+ pbproc_uninit (pbproc);
+ blk_release (mac_config);
+ dbg_check (mac_store_sta_remove (mac_store, 0x1));
mac_store_uninit (mac_store);
}
@@ -262,9 +268,9 @@ int main (void)
{
test_init (test, 0, NULL);
-// this_test_init ();
-// this_test_data_rx_with_one_pb ();
-// this_test_uninit ();
+ // this_test_init ();
+ // this_test_data_rx_with_one_pb ();
+ // this_test_uninit ();
this_test_init ();
this_test_data_rx ();
diff --git a/mac/sar/test/unit_test/ecos/src/reassembly_create_mfs.c b/mac/sar/test/unit_test/ecos/src/reassembly_create_mfs.c
index 1aab3d52c3..3754b62708 100644
--- a/mac/sar/test/unit_test/ecos/src/reassembly_create_mfs.c
+++ b/mac/sar/test/unit_test/ecos/src/reassembly_create_mfs.c
@@ -34,13 +34,17 @@ void test_without_mfs (uint lid, bool mme, bool bcast)
{
mfs_rx_t *mfs;
pbproc_rx_params_t rx_params;
+ pbproc_t *pbproc;
+ mac_config_t *mac_config;
pb_t *pb_first;
sar_t *sar_ctx;
mac_store_t *mac_store;
// init the store and the sar
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init(mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
sar_init_measure_context (sar_ctx, &sar_ctx);
@@ -94,6 +98,8 @@ void test_without_mfs (uint lid, bool mme, bool bcast)
}
dbg_check(mac_store_sta_remove (mac_store, 0x1));
+ pbproc_uninit(pbproc);
+ blk_release (mac_config);
mac_store_uninit(mac_store);
sar_uninit (sar_ctx);
ce_uninit ();
diff --git a/mac/sar/test/unit_test/ecos/src/reassembly_measurement.c b/mac/sar/test/unit_test/ecos/src/reassembly_measurement.c
index 2e65135c31..4c43a4552f 100644
--- a/mac/sar/test/unit_test/ecos/src/reassembly_measurement.c
+++ b/mac/sar/test/unit_test/ecos/src/reassembly_measurement.c
@@ -32,6 +32,8 @@ int main (void)
pbproc_rx_params_t rx_params;
sar_t *sar_ctx;
mac_store_t *mac_store;
+ mac_config_t *mac_config;
+ pbproc_t *pbproc;
blk_t *blk_curr;
uint blk_offset;
@@ -39,7 +41,9 @@ int main (void)
test_init (test, 0, NULL);
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init(mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
sar_init_measure_context (sar_ctx, sar_ctx);
sar_init_measurement_cb (sar_ctx, ce_measurements);
@@ -87,6 +91,8 @@ int main (void)
mac_store_uninit (mac_store);
+ blk_release(mac_config);
+ pbproc_uninit(pbproc);
sar_uninit (sar_ctx);
ce_uninit ();
diff --git a/mac/sar/test/unit_test/ecos/src/reassembly_mfs_update_expiration_date.c b/mac/sar/test/unit_test/ecos/src/reassembly_mfs_update_expiration_date.c
index e583f097d4..7418b9bbce 100644
--- a/mac/sar/test/unit_test/ecos/src/reassembly_mfs_update_expiration_date.c
+++ b/mac/sar/test/unit_test/ecos/src/reassembly_mfs_update_expiration_date.c
@@ -28,13 +28,17 @@ int main (void)
sar_t *sar_ctx;
mac_store_t *mac_store;
bool added;
+ mac_config_t *mac_config;
+ pbproc_t *pbproc;
rx = (sar_mpdu_t *) blk_alloc ();
mac_store = mac_store_init ();
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init (mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
rx->mfs = mac_store_mfs_add_rx (mac_store, false, false, 1, 1, &added);
dbg_assert (added);
@@ -63,6 +67,8 @@ int main (void)
blk_release (rx->mfs);
blk_release (rx);
+ blk_release (mac_config);
+ pbproc_uninit (pbproc);
test_begin (test, "Memory test")
{
diff --git a/mac/sar/test/unit_test/ecos/src/reassembly_two_jobs.c b/mac/sar/test/unit_test/ecos/src/reassembly_two_jobs.c
index e22d6b6017..bb408e60fa 100644
--- a/mac/sar/test/unit_test/ecos/src/reassembly_two_jobs.c
+++ b/mac/sar/test/unit_test/ecos/src/reassembly_two_jobs.c
@@ -36,6 +36,8 @@ int main (void)
{
sar_t *sar_ctx;
mac_store_t *mac_store;
+ mac_config_t *mac_config;
+ pbproc_t *pbproc;
u32 header1;
pb_t *pb_head;
pb_t *pb_tail;
@@ -43,7 +45,9 @@ int main (void)
u8 buffer [2048];
mac_store = mac_store_init();
- sar_ctx = sar_init (mac_store);
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init(mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
sar_init_measure_context (sar_ctx, &sar_ctx);
sar_init_measurement_cb (sar_ctx, ce_measurements);
diff --git a/mac/sar/test/unit_test/ecos/src/sar_buffer_address.c b/mac/sar/test/unit_test/ecos/src/sar_buffer_address.c
index 4daf78e035..e6264b03ff 100644
--- a/mac/sar/test/unit_test/ecos/src/sar_buffer_address.c
+++ b/mac/sar/test/unit_test/ecos/src/sar_buffer_address.c
@@ -32,10 +32,14 @@ int main (void)
mac_store_t *mac_store;
bool added;
u8 buffer [1024];
+ mac_config_t *mac_config;
+ pbproc_t *pbproc;
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
-
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init (mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
+
sar_init_mme_context (sar_ctx, &sar_ctx);
sar_init_reassembly_mme_cb (sar_ctx, NULL);
sar_ctx->data_ctx.number_of_slots = SAR_NUMBER_OF_SLOTS_DATA;
@@ -77,6 +81,8 @@ int main (void)
sar_uninit (sar_ctx);
blk_release (mfs);
+ blk_release (mac_config);
+ pbproc_uninit (pbproc);
test_begin (test, "Memory test")
{
diff --git a/mac/sar/test/unit_test/ecos/src/sar_call_back_ul.c b/mac/sar/test/unit_test/ecos/src/sar_call_back_ul.c
index 5ab16fafca..dfa6903bc3 100644
--- a/mac/sar/test/unit_test/ecos/src/sar_call_back_ul.c
+++ b/mac/sar/test/unit_test/ecos/src/sar_call_back_ul.c
@@ -57,9 +57,13 @@ test_t test;
int main (void)
{
mac_store_t *mac_store;
-
+ mac_config_t *mac_config;
+ pbproc_t *pbproc;
+
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init (mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
sar_init_data_context (sar_ctx, &sar_ctx);
sar_init_mme_context (sar_ctx, &sar_ctx);
@@ -98,22 +102,24 @@ int main (void)
test_end;
bool_beacon_test = false;
- sar_beacon_add (sar_ctx, blk_alloc(), blk_alloc ());
+ sar_beacon_add (sar_ctx, blk_alloc (), blk_alloc ());
test_begin(test, "sar_beacon_call_back")
{
test_fail_if (bool_beacon_test != true, "beacon call back failed");
}
test_end;
+ blk_release (mac_config);
+ pbproc_uninit (pbproc);
sar_uninit (sar_ctx);
- mac_store_uninit(mac_store);
+ mac_store_uninit (mac_store);
test_begin (test, "Memory test")
{
test_fail_if (blk_check_memory() == false, "Memory not freed");
}
test_end;
-
+
test_result (test);
HAL_PLATFORM_EXIT (test_nb_failed (test) == 0 ? 0 : 1);
return test_nb_failed (test) == 0 ? 0 : 1;
diff --git a/mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c b/mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c
index a4f3f78fc0..232f91bc4d 100644
--- a/mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c
+++ b/mac/sar/test/unit_test/ecos/src/sar_manage_expiration.c
@@ -33,6 +33,8 @@ test_t test;
bool ul_prevent;
sar_t *sar_ctx;
mac_store_t *mac_store;
+mac_config_t *mac_config;
+pbproc_t *pbproc;
void sar_mfs_expired_cb (void *user, mfs_t *mfs)
{
@@ -170,10 +172,12 @@ int cyg_user_start (void)
test_init (test, 0, NULL);
// init the sar and the store
- mac_store = mac_store_init();
- sar_ctx = sar_init (mac_store);
- sar_init_mme_context(sar_ctx, &sar_ctx);
-
+ mac_store = mac_store_init ();
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init (mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
+ sar_init_mme_context (sar_ctx, &sar_ctx);
+
// add a sta to the store.
mac_store_sta_add (mac_store, 0x1);
@@ -196,17 +200,19 @@ int cyg_user_start (void)
mfs_rx_plid_epiration ();
mfs_rx_not_plid_epiration ();
- sar_uninit(sar_ctx);
-
- dbg_check(mac_store_sta_remove(mac_store, 1));
- mac_store_uninit(mac_store);
-
+ sar_uninit (sar_ctx);
+
+ dbg_check (mac_store_sta_remove (mac_store, 1));
+ mac_store_uninit (mac_store);
+ blk_release (mac_config);
+ pbproc_uninit (pbproc);
+
test_begin (test, "Memory test")
{
test_fail_if (blk_check_memory() == false, "Memory not freed");
}
test_end;
-
+
test_result (test);
HAL_PLATFORM_EXIT (test_nb_failed (test) == 0 ? 0 : 1);
return test_nb_failed (test) == 0 ? 0 : 1;
@@ -228,8 +234,7 @@ void mfs_tx_expiration_go_to_release_state (void)
mfs_t *mfs;
// add a tx mfs
- mfs = mac_store_mfs_add (mac_store, true, false,
- false, 0x1, 0x1, &added);
+ mfs = mac_store_mfs_add (mac_store, true, false, false, 0x1, 0x1, &added);
dbg_assert (added);
@@ -255,7 +260,7 @@ void mfs_tx_expiration_go_to_release_state (void)
"The expiration of the PBs had not been done");
}
test_end;
-
+
blk_release (mfs);
}
@@ -273,8 +278,7 @@ void mfs_tx_in_release_state_go_to_destroy (void)
// Launch the sar expiration process.
sar_expiration_mfs (&sar_ctx->expiration, 500);
- mfs = mac_store_mfs_get (mac_store, true, false,
- false, 0x1, 0x1);
+ mfs = mac_store_mfs_get (mac_store, true, false, false, 0x1, 0x1);
test_begin(test, "mfs_tx_expiration_destroy_the_mfs")
{
@@ -305,8 +309,7 @@ void mfs_tx_glid_go_to_release_state (void)
mfs_t *mfs;
// add a tx mfs
- mfs = mac_store_mfs_add (mac_store, true, false,
- false, 0xA, 0x1, &added);
+ mfs = mac_store_mfs_add (mac_store, true, false, false, 0xA, 0x1, &added);
dbg_assert (added);
@@ -333,7 +336,7 @@ void mfs_tx_glid_go_to_release_state (void)
test_fail_if (ul_prevent != true, "The upper layer had not been prevent");
}
test_end;
-
+
blk_release (mfs);
}
@@ -351,8 +354,7 @@ void mfs_tx_glid_to_destroy (void)
// Launch the sar expiration process.
sar_expiration_mfs (&sar_ctx->expiration, 500);
- mfs = mac_store_mfs_get (mac_store, true, false,
- false, 0xA, 0x1);
+ mfs = mac_store_mfs_get (mac_store, true, false, false, 0xA, 0x1);
test_begin(test, "mfs_tx_glid_to_destroy")
{
@@ -377,8 +379,7 @@ void mfs_tx_remove_request (void)
mfs_t *mfs;
bool added;
- mfs = mac_store_mfs_add (mac_store, true, false,
- false, 0x1, 0x1, &added);
+ mfs = mac_store_mfs_add (mac_store, true, false, false, 0x1, 0x1, &added);
dbg_assert (added);
@@ -403,7 +404,7 @@ void mfs_tx_remove_request (void)
"The expiration of the PBs had not been done");
}
test_end;
-
+
blk_release (mfs);
}
@@ -422,8 +423,7 @@ void mfs_tx_remove_request_go_to_destroy (void)
// Launch the sar expiration process.
sar_expiration_mfs (&sar_ctx->expiration, 500);
- mfs = mac_store_mfs_get (mac_store, true, false,
- false, 0x1, 0x1);
+ mfs = mac_store_mfs_get (mac_store, true, false, false, 0x1, 0x1);
test_begin(test, "mfs_tx_remove_request_go_to_destroy")
{
@@ -449,8 +449,9 @@ void mfs_rx_plid_epiration (void)
mfs_t *mfs;
// add a tx mfs
- mfs = mac_store_mfs_add (mac_store, false, false,
- false, 0x1, 0x1, &added);
+ mfs
+ = mac_store_mfs_add (mac_store, false, false, false, 0x1, 0x1,
+ &added);
dbg_assert (added);
@@ -463,15 +464,14 @@ void mfs_rx_plid_epiration (void)
// Add the mfs in to the sar expiration.
sar_mfs_add (sar_ctx, mfs);
-
+
// remove the reference provided on the mfs by the store.
blk_release (mfs);
// Launch the sar expiration process.
sar_expiration_mfs (&sar_ctx->expiration, 120);
- mfs = mac_store_mfs_get (mac_store, false, false,
- false, 0x1, 0x1);
+ mfs = mac_store_mfs_get (mac_store, false, false, false, 0x1, 0x1);
test_begin(test, "mfs_rx_epiration_go_to_release_state")
{
@@ -503,8 +503,8 @@ void mfs_rx_not_plid_epiration (void)
ul_prevent = false;
// add a tx mfs
- mfs = mac_store_mfs_add (mac_store, false, false,
- false, 0x80, 0x1, &added);
+ mfs = mac_store_mfs_add (mac_store, false, false, false, 0x80, 0x1,
+ &added);
dbg_assert (added);
@@ -517,15 +517,14 @@ void mfs_rx_not_plid_epiration (void)
// Add the mfs in to the sar expiration.
sar_mfs_add (sar_ctx, mfs);
-
+
// remove the reference provided by the store on the mfs.
blk_release (mfs);
// Launch the sar expiration process.
sar_expiration_mfs (&sar_ctx->expiration, 120);
- mfs = mac_store_mfs_get (mac_store, false, false,
- false, 0x1, 0x1);
+ mfs = mac_store_mfs_get (mac_store, false, false, false, 0x1, 0x1);
test_begin(test, "mfs_rx_not_plid_epiration")
{
@@ -555,8 +554,9 @@ void mfs_rx_expired_on_request (void)
mfs_t *mfs;
// add a tx mfs
- mfs = mac_store_mfs_add (mac_store, false, false,
- false, 0x1, 0x1, &added);
+ mfs
+ = mac_store_mfs_add (mac_store, false, false, false, 0x1, 0x1,
+ &added);
dbg_assert (added);
@@ -572,8 +572,7 @@ void mfs_rx_expired_on_request (void)
sar_mfs_remove (sar_ctx, mfs);
- mfs = mac_store_mfs_get (mac_store, false, false,
- false, 0x1, 0x1);
+ mfs = mac_store_mfs_get (mac_store, false, false, false, 0x1, 0x1);
test_begin(test, "mfs_rx_expired_on_request")
{
diff --git a/mac/sar/test/unit_test/ecos/src/sar_mfs_resising.c b/mac/sar/test/unit_test/ecos/src/sar_mfs_resising.c
index 74f5c24931..bea59140be 100644
--- a/mac/sar/test/unit_test/ecos/src/sar_mfs_resising.c
+++ b/mac/sar/test/unit_test/ecos/src/sar_mfs_resising.c
@@ -101,12 +101,14 @@ void add_one_pb_to_resize (test_t test)
bool added;
sar_t *sar_ctx;
mac_store_t *mac_store;
+ mac_config_t *mac_config;
+ pbproc_t *pbproc;
-
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
-
- ce_init();
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init (mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
+ ce_init ();
sar_init_measure_context (sar_ctx, &sar_ctx);
sar_init_measurement_cb (sar_ctx, ce_measurements);
@@ -144,11 +146,13 @@ void add_one_pb_to_resize (test_t test)
// release the mfs from the sar and the store.
sar_mfs_remove (sar_ctx, (mfs_t *) mfs);
- dbg_check(mac_store_sta_remove (mac_store, 1));
+ dbg_check (mac_store_sta_remove (mac_store, 1));
mac_store_uninit (mac_store);
sar_uninit (sar_ctx);
-
+ blk_release (mac_config);
+ pbproc_uninit (pbproc);
+
blk_release (mfs);
}
@@ -179,11 +183,15 @@ void add_severals_pb_to_resize (test_t test)
bool added;
sar_t *sar_ctx;
mac_store_t *mac_store;
+ mac_config_t *mac_config;
+ pbproc_t *pbproc;
+
+ ce_init ();
- ce_init();
-
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init (mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
sar_init_measure_context (sar_ctx, &sar_ctx);
sar_init_measurement_cb (sar_ctx, ce_measurements);
@@ -232,6 +240,8 @@ void add_severals_pb_to_resize (test_t test)
sar_mfs_remove (sar_ctx, (mfs_t *) mfs);
sar_uninit (sar_ctx);
+ blk_release (mac_config);
+ pbproc_uninit (pbproc);
dbg_assert (mac_store_sta_remove (mac_store, 1));
mac_store_uninit (mac_store);
diff --git a/mac/sar/test/unit_test/ecos/src/segmentation_complete.c b/mac/sar/test/unit_test/ecos/src/segmentation_complete.c
index 90295620cf..2bc61e0383 100644
--- a/mac/sar/test/unit_test/ecos/src/segmentation_complete.c
+++ b/mac/sar/test/unit_test/ecos/src/segmentation_complete.c
@@ -36,11 +36,15 @@ void sar_segmentation_done (void *user, u8* buffer)
sar_t *sar_ctx;
mac_store_t *mac_store;
+mac_config_t *mac_config;
+pbproc_t *pbproc;
void this_test_init (void)
{
mac_store = mac_store_init ();
- sar_ctx = sar_init (mac_store);
+ mac_config = blk_alloc ();
+ pbproc = pbproc_init (mac_config, mac_store);
+ sar_ctx = sar_init (mac_store, pbproc, NULL);
/* Data */
sar_init_data_context (sar_ctx, sar_ctx);
@@ -55,8 +59,10 @@ void this_test_init (void)
void this_test_uninit (void)
{
sar_uninit (sar_ctx);
- dbg_check(mac_store_sta_remove (mac_store, 0x1));
+ dbg_check (mac_store_sta_remove (mac_store, 0x1));
mac_store_uninit (mac_store);
+ blk_release (mac_config);
+ pbproc_uninit (pbproc);
}
void mfs_type1 (test_t test)
@@ -76,7 +82,8 @@ void mfs_type1 (test_t test)
/**The test starts here*/
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) (u8 *) packet3, packet3_len, 0x12345678,
+ data_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
@@ -127,7 +134,7 @@ void mfs_type2 (test_t test)
/**The test starts here*/
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
@@ -176,7 +183,7 @@ void mfs_type3 (test_t test)
/**The test starts here*/
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, mme_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, mme_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
@@ -223,12 +230,12 @@ void mfs_type1_two_MF (test_t test)
/**The test starts here*/
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
@@ -284,12 +291,12 @@ void mfs_type2_two_MF (test_t test)
/**The test starts here*/
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, data_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
@@ -342,11 +349,11 @@ void mfs_type3_two_MF (test_t test)
/**The test starts here*/
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, mme_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, mme_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
/** Add the msdu to the sar. */
- sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, mme_mfs);
+ sar_msdu_add (sar_ctx, (u8 *) packet3, packet3_len, 0x12345678, mme_mfs);
/** Launch the sar with this msdu. */
sar_launch (sar_ctx);
@@ -365,8 +372,8 @@ void mfs_type3_two_MF (test_t test)
}
test_end;
- pb_free_range(mme_mfs->head);
-
+ pb_free_range (mme_mfs->head);
+
/** Remove the mfs from the test. */
mac_store_mfs_remove (mac_store, (mfs_t *) mme_mfs);
blk_release (mme_mfs);