summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNélio Laranjeiro2012-09-12 15:20:56 +0200
committerNélio Laranjeiro2012-12-12 12:59:22 +0100
commit822b9e010e30da1094c60a6f74080c57ea126ef5 (patch)
tree33ec8d8c11257a1fc58c0afcc1d68dcad9aa0abe
parent28abc0d81140f3c3805472683e4cd3e7b175c5f8 (diff)
cesar/mac/sar: add config to set MFS SSN min on creation, refs #3344
When the MFS is created it can be useful to store the first PB's SSN from the MPDU as MFS ssn min.
-rw-r--r--cesar/mac/sar/Config1
-rw-r--r--cesar/mac/sar/src/rx.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/cesar/mac/sar/Config b/cesar/mac/sar/Config
index 5e8a984f51..a342eed138 100644
--- a/cesar/mac/sar/Config
+++ b/cesar/mac/sar/Config
@@ -6,3 +6,4 @@ CONFIG_SAR_MFS_TX_PERMANENT=n
CONFIG_SAR_PBPOOL_SIZE=500
CONFIG_SAR_PB_STATS=y
CONFIG_SAR_SLACK_LOW_ALLOW_MME=n
+CONFIG_SAR_USE_PB_SSN_ON_MFS_CREATE=n
diff --git a/cesar/mac/sar/src/rx.c b/cesar/mac/sar/src/rx.c
index c4d1f9da97..6561185bcc 100644
--- a/cesar/mac/sar/src/rx.c
+++ b/cesar/mac/sar/src/rx.c
@@ -224,7 +224,8 @@ sar_rx_get_associated_mfs__from_mac_store (
* the first PB on the MPDU. This allow the station to receive PBs
* with a SSN higher than 0x7fff when SSN min is 0. See #2357
*/
- if (local_mfs->common.bcast)
+ if (local_mfs->common.bcast
+ || CONFIG_SAR_USE_PB_SSN_ON_MFS_CREATE)
local_mfs->ssn_min = pb->header.ssn;
}
}