Skip to content
Snippets Groups Projects
  1. Feb 16, 2017
  2. Feb 15, 2017
    • Cédric Roux's avatar
      bugfix: fix PDCP inst · 7d9945e8
      Cédric Roux authored
      This commit is a continuation of 614d6bbe
      (ue_ip: use correct instance).
      
      Now in openair2/NETWORK_DRIVER/UE_IP/common.c the 'inst' is not
      forced to 1 anymore, we take the value 'pdcph_p->inst'.
      
      It turns out that 'pdcph_p->inst' is 0 instead of 1 when we
      run lte-softmodem as an UE.
      
      So let's modify PDCP to set 'inst' to 1 where it was set to 0 for
      the UE softmodem case, and skip the places where it is reset to 0,
      still for the UE softmodem case.
      
      This may break things, I am not sure.
      7d9945e8
  3. Feb 14, 2017
    • Thomas Laurent's avatar
      gcc warning fix · d65d91dd
      Thomas Laurent authored
      d65d91dd
    • Cédric Roux's avatar
      minor: add a comment · 6c789a36
      Cédric Roux authored
      6c789a36
    • Cédric Roux's avatar
      ue_ip: use correct instance · 614d6bbe
      Cédric Roux authored
      The problem was the following.
      
      Run oaisim with two UEs:
      
          sudo ../cmake_targets/oaisim_build_oai/build/oaisim -O enb.conf -u2 -s15 -AAWGN -y1 -b1 -Q0
      
      Then wait for both UEs to be connected. The interfaces "oip1" and "oip2" are
      activated, with IP addresses 192.172.0.2 for the first UE and 192.172.0.3 for
      the second.
      
      Then on the EPC machine, do:
      
          ping 192.172.0.3
      
      No reply.
      On the oaisim machine, we see that the packets are sent to "oip1" instead
      of "oip2".
      
      The fix may break softmodem UE. The inst was forced to "1" for some reason.
      To be checked.
      614d6bbe
  4. Feb 13, 2017
  5. Feb 09, 2017
  6. Feb 08, 2017
  7. Feb 07, 2017
  8. Feb 05, 2017
  9. Feb 03, 2017
  10. Feb 02, 2017
  11. Jan 31, 2017
  12. Jan 30, 2017
  13. Jan 27, 2017
  14. Jan 26, 2017
  15. Jan 25, 2017
  16. Jan 24, 2017
  17. Jan 20, 2017
    • Cédric Roux's avatar
      add some printf for debug purpose (to be remove at some point) · a0f19a72
      Cédric Roux authored
      this commit is here to help debug the previous ones.
      
      It has to be reverted at some point.
      a0f19a72
    • Cédric Roux's avatar
      check (to be reworked at some point) · a6219153
      Cédric Roux authored
      We put an abort() at this point in the code, because
      if the previous commit is correct, the program will
      never comme here.
      a6219153
    • Cédric Roux's avatar
      rewrite sort_UE for UL and DL and adapt the rest to the change · da75a078
      Cédric Roux authored
      The previous version did not seem to work properly with
      several UEs. I too often ended up with a list 'next' where
      next[i] = i, leading to an infinite loop, crashing the
      processing.
      
      The sorting functions were hard to understand and too slow
      anyway (O(n*n)).
      
      We now use qsort_r and comparison functions, that should
      define the same order as the previous version.
      
      One important point is that the "next" lists and the "head"
      variable are now considered invalid before calling sort_UE.
      
      So all the code (coming before sort_UE) that looped using those
      variables has been rewritten to loop over all possible UEs and
      the first instruction of the loop is to exit the loop if the UE
      is not 'active'. There is room for improvement here. We will
      reintroduce a list of some kind at some point. Let's first
      have something that works and then optimize. Today NUMBER_OF_UE_MAX
      is 16, that's not a big deal.
      
      Consequently, the add_new_ue and rrc_mac_remove_ue have also
      been rewritten, hopefully for the better.
      
      This commit is not a basic work and may introduce some
      problems.
      da75a078
    • Cédric Roux's avatar
      better (maybe) freeing of RA process when an UE is removed from MAC · c824eea0
      Cédric Roux authored
      The RA process may be in the state:
      RA_active == FALSE and wait_ack_Msg4 == 1
      
      Testing only the rnti should be enough, if everything else works
      properly.
      
      Also, don't break, just in case. (Not sure it makes a
      difference.)
      c824eea0
    • Cédric Roux's avatar
      c3c2b774
    • Cédric Roux's avatar
      add a LOG in RA · 0d3fa211
      Cédric Roux authored
      0d3fa211
    • Cédric Roux's avatar
      fix: better creation of RNTI · 428c2212
      Cédric 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.
      428c2212
    • Cédric Roux's avatar
      RA: fix allocation of RA process · c1fee624
      Cédric 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.
      c1fee624
    • Cédric Roux's avatar
      "fix" handling of UE_id in RA. · a5d5a21d
      Cédric 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...
      a5d5a21d
Loading