From 3e6ad5f0ee1bb1bfe4261c9c7d3e9bd5fda2008e Mon Sep 17 00:00:00 2001 From: Mohsen Ahadi Date: Thu, 28 Oct 2021 14:38:17 +0000 Subject: [PATCH] Update nr_gold.c --- openair1/PHY/NR_REFSIG/nr_gold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair1/PHY/NR_REFSIG/nr_gold.c b/openair1/PHY/NR_REFSIG/nr_gold.c index 94a450905e..dc860a5f67 100644 --- a/openair1/PHY/NR_REFSIG/nr_gold.c +++ b/openair1/PHY/NR_REFSIG/nr_gold.c @@ -174,7 +174,7 @@ void nr_init_prs(PHY_VARS_gNB* gNB) uint32_t pow22=1<<22; uint32_t pow10=1<<10; c_init1 = pow22*ceil(Nid/1024); - c_init2 = pow10*(slotnum+symNum+1)*(2*(Nid%1024)+1); + c_init2 = pow10*(slotNum+symNum+1)*(2*(Nid%1024)+1); c_init3 = Nid%1024; x2 = c_init1 + c_init2 + c_init3; for (uint8_t n=0; n