summaryrefslogtreecommitdiff
path: root/cesar/mac/common
diff options
context:
space:
mode:
authorNicolas Schodet2012-06-06 16:30:56 +0200
committerNicolas Schodet2012-06-27 11:11:53 +0200
commitd8f1797e84566c00773c75168034188c04e0c1fa (patch)
treedeeef411891f2568e8c6e026836a961d5119f299 /cesar/mac/common
parent94104a79d0801233f136db99a43455f39c2c2510 (diff)
cesar/mac/{common,sar}: add mfs_tx_max_seg_nb, refs #3087
Diffstat (limited to 'cesar/mac/common')
-rw-r--r--cesar/mac/common/mfs.h3
-rw-r--r--cesar/mac/common/src/mfs.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/cesar/mac/common/mfs.h b/cesar/mac/common/mfs.h
index 01d5baf913..a07acc0f82 100644
--- a/cesar/mac/common/mfs.h
+++ b/cesar/mac/common/mfs.h
@@ -237,6 +237,9 @@ BEGIN_DECLS
* it is included). */
extern const u16 mfs_window_size[MFS_WINDOW_SIZE_NB];
+/** Global TX MFS number of segment limit. */
+extern int mfs_tx_max_seg_nb;
+
/**
* Initialise a RX MFS, called from MAC store.
* \param mfs MFS to initialise
diff --git a/cesar/mac/common/src/mfs.c b/cesar/mac/common/src/mfs.c
index af269717cd..f28139d695 100644
--- a/cesar/mac/common/src/mfs.c
+++ b/cesar/mac/common/src/mfs.c
@@ -25,11 +25,17 @@
/** Default TX MFS DATA window size (actual value is fixed by the receiver). */
#define MFS_DEFAULT_WINDOW_SIZE_DATA_TX MFS_WINDOW_SIZE_16
+/** Default TX MFS segment limit. */
+#define MFS_TX_MAX_SEG_NB_DEFAULT 1200
+
/** Window size values table (values of the RxWSz field of the FCs in which
* it is included). */
const u16 mfs_window_size[MFS_WINDOW_SIZE_NB] = { 4, 8, 16, 24, 32, 48, 64, 80,
96, 112, 128, 144, 160, 192, 224, 256 };
+/** Global TX MFS number of segment limit. */
+int mfs_tx_max_seg_nb = MFS_TX_MAX_SEG_NB_DEFAULT;
+
static void
mfs_common_init (mfs_common_t *mfs_common, bool tx, bool bcast, bool mme, uint
lid, uint tei)