1. 20 Jan, 2017 7 commits
    • Cedric Roux's avatar
      add a LOG in RA · acddbc52
      Cedric Roux authored
      acddbc52
    • Cedric Roux's avatar
      fix: better creation of RNTI · 26245897
      Cedric Roux authored
      The previous version was calling taus(), which
      may return any value in [0..65535].
      
      The new version restricts it to [1024..59999]
      (arbitrary values, big enough, and in the valid range).
      
      It also checks that the new RNTI is not already present
      in the MAC.
      
      I think we should also check that it's not used by a RA
      process.
      
      The "loop" thing may not be the best solution either.
      
      To be refined.
      26245897
    • Cedric Roux's avatar
      RA: fix allocation of RA process · 9011cf6b
      Cedric Roux authored
      A RA process is not available if
      and RA_template[i].wait_ack_Msg4 != 0
      
      We can have RA_active==FALSE and wait_ack_Msg4==1,
      in which case the RA process is in use and cannot
      be reassigned.
      9011cf6b
    • Cedric Roux's avatar
      "fix" handling of UE_id in RA. · 6bc8231e
      Cedric Roux authored
      What if it's -1? Is it possible?
      We catch the case and abort.
      
      We may do a proper fix if the case happen.
      I don't think it will, but who knows...
      6bc8231e
    • Cedric Roux's avatar
      attempting at fixing RRC · cfc925f3
      Cedric Roux authored
      RRC does not work very well when one UE goes away and comes
      back in some situations.
      
      This commit is an attempt at making things work better.
      
      It is probably not the end of the story.
      cfc925f3
    • Cedric Roux's avatar
      bugfix: logging was done after modification of values · face95aa
      Cedric Roux authored
      It resulted in wrong log message, leading to complicated
      debugging.
      face95aa
    • Cedric Roux's avatar
      5db89066
  2. 19 Jan, 2017 5 commits
    • Cedric Roux's avatar
      3b16a9bf
    • Cedric Roux's avatar
      remove printing of UE capabilities on stdout · 367ce527
      Cedric Roux authored
      Modern UEs have very long UE capabilities.
      It disrupts realtime behaviour of the modem.
      
      Let's put a simple log message indicating we got the
      UE capabilities.
      367ce527
    • Cedric Roux's avatar
      hack to avoid zombie UEs in the MAC layer · 9b0e843a
      Cedric Roux authored
      Here is the problem:
          Sometimes the UE has no PHY context but
          is still present in the MAC with 'ul_failure_timer' = 0 and
          'ul_out_of_sync' = 0. It seems wrong and the UE stays there forever. Let's
          start an UL out of sync procedure in this case.
          The root cause of this problem has to be found and corrected.
          In the meantime, this hack...
      
      This has to be redone at some point.
      9b0e843a
    • Cedric Roux's avatar
      hack in RLC AM to avoid a race · 487fa0ea
      Cedric Roux authored
      Here is the problem:
          UE comes. SRB2 is configured via message to RRC.
          At some point the RLC AM is created but not configured yet.
          At this moment (I think) MAC calls mac_rlc_status_ind
          which calls this function. But the init was not finished yet
          and we have a crash below when testing mem_block != NULL.
      
      The "solution" is to test if rlc->input_sdus is NULL.
      This is a very dirty hack. I would say the solution
      is to use proper locking mechanism because RLC is used
      by two threads: PHY/MAC on one hand and RRC on another
      hand (I think).
      487fa0ea
    • Cedric Roux's avatar
      remove annoying logging (dump_CCE_table) · b7b7e45e
      Cedric Roux authored
      b7b7e45e
  3. 18 Jan, 2017 1 commit
    • Cedric Roux's avatar
      bugfix: reset DCI count before adding one · 80b47ac4
      Cedric Roux authored
      The management of uplink failure generates a DCI to send
      a RA PDCCH order. It calls add_ue_spec_dci which increases
      DCI_pdu[CC_id]->Num_ue_spec_dci, but this was reset to 0
      *after* the DCI generation. Let's reset *before*.
      
      Bug reported by Liang Yong on openair5g-user mailing list.
      80b47ac4
  4. 16 Jan, 2017 3 commits
  5. 13 Jan, 2017 8 commits
  6. 12 Jan, 2017 6 commits
  7. 11 Jan, 2017 9 commits
  8. 10 Jan, 2017 1 commit
    • Cedric Roux's avatar
      include init_nas_s1 in the repository · 8eded93c
      Cedric Roux authored
      init_nas_s1 may not work properly, but many people complain
      about this file, so let's put it in the repository.
      
      We'll fix it at some point if it's not properly usable.
      8eded93c