mirror of https://github.com/PentHertz/srsLTE.git
Fix modulation table
This commit is contained in:
parent
93771126ed
commit
210ce0ac48
|
@ -151,6 +151,7 @@ int srslte_ra_tbs_idx_from_mcs(uint32_t mcs, bool use_tbs_index_alt, bool is_ul)
|
||||||
srslte_mod_t srslte_ra_dl_mod_from_mcs(uint32_t mcs, bool use_tbs_index_alt)
|
srslte_mod_t srslte_ra_dl_mod_from_mcs(uint32_t mcs, bool use_tbs_index_alt)
|
||||||
{
|
{
|
||||||
if (use_tbs_index_alt) {
|
if (use_tbs_index_alt) {
|
||||||
|
// 3GPP 36.213 R12 Table 7.1.7.1-1A
|
||||||
if (mcs < 5 || mcs == 28) {
|
if (mcs < 5 || mcs == 28) {
|
||||||
return SRSLTE_MOD_QPSK;
|
return SRSLTE_MOD_QPSK;
|
||||||
} else if (mcs < 11 || mcs == 29) {
|
} else if (mcs < 11 || mcs == 29) {
|
||||||
|
@ -161,9 +162,10 @@ srslte_mod_t srslte_ra_dl_mod_from_mcs(uint32_t mcs, bool use_tbs_index_alt)
|
||||||
return SRSLTE_MOD_256QAM;
|
return SRSLTE_MOD_256QAM;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mcs <= 10 || mcs == 29) {
|
// 3GPP 36.213 R12 Table 7.1.7.1-1
|
||||||
|
if (mcs < 10 || mcs == 29) {
|
||||||
return SRSLTE_MOD_QPSK;
|
return SRSLTE_MOD_QPSK;
|
||||||
} else if (mcs <= 17 || mcs == 30) {
|
} else if (mcs < 17 || mcs == 30) {
|
||||||
return SRSLTE_MOD_16QAM;
|
return SRSLTE_MOD_16QAM;
|
||||||
} else {
|
} else {
|
||||||
return SRSLTE_MOD_64QAM;
|
return SRSLTE_MOD_64QAM;
|
||||||
|
|
Loading…
Reference in New Issue