mirror of https://github.com/PentHertz/srsLTE.git
Removed unused nof_tb variable
This commit is contained in:
parent
cb6adba46a
commit
1d095b006a
|
@ -942,7 +942,8 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
/* Configure pmch_cfg parameters */
|
||||
srslte_ra_dl_grant_t grant;
|
||||
grant.nof_tb = 1;
|
||||
grant.tb_en[0] = true;
|
||||
grant.tb_en[1] = false;
|
||||
grant.mcs[0].idx = 2;
|
||||
grant.mcs[0].mod = SRSLTE_MOD_QPSK;
|
||||
grant.nof_prb = cell.nof_prb;
|
||||
|
|
|
@ -104,7 +104,6 @@ typedef struct SRSLTE_API {
|
|||
uint32_t nof_prb;
|
||||
uint32_t Qm[SRSLTE_MAX_CODEWORDS];
|
||||
srslte_ra_mcs_t mcs[SRSLTE_MAX_CODEWORDS];
|
||||
uint32_t nof_tb;
|
||||
srslte_sf_t sf_type;
|
||||
bool tb_en[SRSLTE_MAX_CODEWORDS];
|
||||
uint32_t pinfo;
|
||||
|
|
|
@ -526,11 +526,9 @@ static int dl_dci_to_grant_mcs(srslte_ra_dl_dci_t *dci, srslte_ra_dl_grant_t *gr
|
|||
grant->mcs[0].tbs = (uint32_t) tbs;
|
||||
} else {
|
||||
n_prb = grant->nof_prb;
|
||||
grant->nof_tb = 0;
|
||||
if (dci->tb_en[0]) {
|
||||
grant->mcs[0].idx = dci->mcs_idx;
|
||||
grant->mcs[0].tbs = srslte_dl_fill_ra_mcs(&grant->mcs[0], n_prb);
|
||||
grant->nof_tb++;
|
||||
} else {
|
||||
grant->mcs[0].tbs = 0;
|
||||
}
|
||||
|
|
|
@ -167,7 +167,6 @@ int main(int argc, char **argv) {
|
|||
/* If transport block 0 is enabled */
|
||||
grant.tb_en[0] = true;
|
||||
grant.tb_en[1] = false;
|
||||
grant.nof_tb = 1;
|
||||
grant.mcs[0].idx = mcs_idx;
|
||||
|
||||
grant.nof_prb = cell.nof_prb;
|
||||
|
|
|
@ -608,7 +608,6 @@ int srslte_ue_dl_decode_mbsfn(srslte_ue_dl_t * q,
|
|||
//float noise_estimate = 0;
|
||||
|
||||
grant.sf_type = SRSLTE_SF_MBSFN;
|
||||
grant.nof_tb = 1;
|
||||
grant.mcs[0].idx = 2;
|
||||
grant.tb_en[0] = true;
|
||||
grant.tb_en[1] = false;
|
||||
|
|
Loading…
Reference in New Issue