diff --git a/openair-cn/NAS/EURECOM-NAS/src/emm/IdleMode.c b/openair-cn/NAS/EURECOM-NAS/src/emm/IdleMode.c index 2251c4a8202eb5fcb8b6a5e8d836f47e399a1986..64b21821555891b24a85f6efd1d709d14b82b41d 100644 --- a/openair-cn/NAS/EURECOM-NAS/src/emm/IdleMode.c +++ b/openair-cn/NAS/EURECOM-NAS/src/emm/IdleMode.c @@ -889,7 +889,7 @@ int emm_proc_plmn_selection_end(int found, tac_t tac, ci_t ci, AcT_t rat) * Or terminate the PLMN selection procedure */ if (!select_next_plmn) { - if (!(_emm_plmn_list.fplmn) < 0) { + if (!(_emm_plmn_list.fplmn) < 0) { // FIXME this comparison makes no sense (bool < 0) /* There were one or more PLMNs which were available and allowable, * but an LR failure made registration on those PLMNs unsuccessful * or an entry in any of the forbidden area lists prevented a diff --git a/openair2/LAYER2/PDCP_v10.1.0/pdcp_primitives.c b/openair2/LAYER2/PDCP_v10.1.0/pdcp_primitives.c index 7f2fa739d6b041639c1b468acd5b3dea66867628..214c1d966eee4c43a2234e12887c3f3cc12af000 100755 --- a/openair2/LAYER2/PDCP_v10.1.0/pdcp_primitives.c +++ b/openair2/LAYER2/PDCP_v10.1.0/pdcp_primitives.c @@ -57,7 +57,7 @@ uint8_t pdcp_get_dc_filed(unsigned char* pdu_buffer) return 0; dc = (uint8_t)pdu_buffer[0] & 0xF0; // Reset D/C field - dc >>= 8; + dc >>= 8; // FIXME this is broken!!! returns 0 all the time return dc; }