diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2012-10-03 14:20:53 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2012-10-03 14:20:53 +0200 |
commit | 3b1332cdb4a2b9e61ca71386072e915e6f5d30ba (patch) | |
tree | 8185ce2fac4bad11907be3f9d57d90f471cdde56 /src/gprs_rlcmac.cpp | |
parent | 5f14bd941074b978ff92594544a9b62f9c366984 (diff) |
Replace switch/case construct by a structure, to define coding schemes
A new attribute at TBF instance indicates the current scheme used.
Diffstat (limited to 'src/gprs_rlcmac.cpp')
-rw-r--r-- | src/gprs_rlcmac.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gprs_rlcmac.cpp b/src/gprs_rlcmac.cpp index 64bbe75f..e434c4be 100644 --- a/src/gprs_rlcmac.cpp +++ b/src/gprs_rlcmac.cpp @@ -71,6 +71,15 @@ struct gprs_ms_multislot_class gprs_ms_multislot_class[32] = { /* N/A */ { MS_NA,MS_NA, MS_NA, MS_NA, MS_NA, MS_NA, MS_NA, MS_NA }, }; +struct gprs_rlcmac_cs gprs_rlcmac_cs[] = { +/* frame length data block max payload */ + { 0, 0, 0 }, + { 23, 23, 20 }, /* CS-1 */ + { 34, 33, 30 }, /* CS-2 */ + { 40, 39, 36 }, /* CS-3 */ + { 54, 53, 50 }, /* CS-4 */ +}; + LLIST_HEAD(gprs_rlcmac_ul_tbfs); LLIST_HEAD(gprs_rlcmac_dl_tbfs); llist_head *gprs_rlcmac_tbfs_lists[] = { |