Commit 547ef75d authored by Cedric Roux's avatar Cedric Roux

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

-1 does not work
parent fe9d05e9
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment