summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaranjeiro2008-01-23 06:55:38 +0000
committerlaranjeiro2008-01-23 06:55:38 +0000
commitdb34effd77cab65fc918bcb533c05dbf27df0cbf (patch)
treecb8c4f34b7bd0366711fa6c4ead03eedbfd1ae7c
parenta253652c89ca1698483fe536b26d3318d0bc98fd (diff)
Added agrs in the Maximus.py to launch automatically the station executable.
Replace the sar_get_ntb in the sar-pbproc.c source file. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1314 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--test_general/integration/ipmbox-hle-cl-sar-pbproc/src/Maximus.py4
-rw-r--r--test_general/integration/sar-pbproc/src/sar-pbproc.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/test_general/integration/ipmbox-hle-cl-sar-pbproc/src/Maximus.py b/test_general/integration/ipmbox-hle-cl-sar-pbproc/src/Maximus.py
index d6fb4e4d59..786fd76ba7 100644
--- a/test_general/integration/ipmbox-hle-cl-sar-pbproc/src/Maximus.py
+++ b/test_general/integration/ipmbox-hle-cl-sar-pbproc/src/Maximus.py
@@ -16,11 +16,11 @@ def my_eth_filter(eth):
return False
maximus = Maximus()
-maximus.init (sys.argv)
+maximus.init (sys.argv + ['-e', './obj/ipmbox-hle-cl-sar-pbproc.elf'])
# TEI of station 1 will be 1
station1 = maximus.create_sta()
-station1.debug()
+#station1.debug()
# TEI of station 2 will be 2
station2 = maximus.create_sta()
diff --git a/test_general/integration/sar-pbproc/src/sar-pbproc.c b/test_general/integration/sar-pbproc/src/sar-pbproc.c
index ec49452eca..5f4edd0ca2 100644
--- a/test_general/integration/sar-pbproc/src/sar-pbproc.c
+++ b/test_general/integration/sar-pbproc/src/sar-pbproc.c
@@ -18,6 +18,7 @@
#include "lib/test.h"
#include "mac/sar/sar.h"
+#include "mac/common/ntb.h"
#include "test_general/station/int_station.h"
#include "test_general/station/int_station_fc.h"
@@ -212,7 +213,7 @@ int fc_sar_msdu_add (fcall_ctx_t *fcall, fcall_param_t **param,
mfs = mac_store_mfs_get_tx (my_sta->mac_store, bcast, mme, lid, tei);
dbg_assert (mfs);
- sar_msdu_add (my_sta->sar, buffer, length, sar_get_ntb (my_sta->sar), mfs);
+ sar_msdu_add (my_sta->sar, buffer, length, mac_ntb(), mfs);
blk_release (mfs);