bugfix: use rnti 0 to mean "unused" instead of -1

-1 does not work
This commit is contained in:
Cedric Roux
2017-10-11 16:44:27 +02:00
parent b49fd36c15
commit c407cdba2d
+2 -2
View File
@@ -818,7 +818,7 @@ int8_t find_dlsch(uint16_t rnti, PHY_VARS_eNB *eNB,find_type_t type)
}
if (type == SEARCH_EXIST) return -1;
if (first_free_index != -1)
eNB->dlsch[first_free_index][0]->rnti = -1;
eNB->dlsch[first_free_index][0]->rnti = 0;
return first_free_index;
}
@@ -836,7 +836,7 @@ int8_t find_ulsch(uint16_t rnti, PHY_VARS_eNB *eNB,find_type_t type)
}
if (type == SEARCH_EXIST) return -1;
if (first_free_index != -1)
eNB->ulsch[first_free_index]->rnti = -1;
eNB->ulsch[first_free_index]->rnti = 0;
return first_free_index;
}