patches13/0013-not-sure-how-to-fix-this-correctly.patch

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7059 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Lionel Gauthier
2015-04-09 09:16:59 +00:00
parent 39afdcb61f
commit fb9f84c3b6
2 changed files with 2 additions and 2 deletions
@@ -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
@@ -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;
}