Files
openairinterface5g/nfapi
hsumandRúben Soares Silva 195b23bdc4 Refactor is_nr_p7_request_in_window function for clarity and efficiency
The function now utilizes simpler variable names and logic to determine
if a given NR P7 request falls within the timing window.

The logic for determining if a request is within the timing window is as follows:
- The function calculates the absolute difference between the current
  and received SFN slots, taking into account the possibility of
  wraparound.
- If the absolute difference is greater than half of the maximum SFN
  slot value, it subtracts this difference from the maximum SFN slot
  value to get the actual difference.
- The function then checks if this difference is less than or equal to
  the specified timing window. If it is, the request is considered to be
  within the window.

Additionally, the commit updates the function signature to return a
boolean value for better readability and consistency.

Changes made:
- Simplified variable names for readability
- Improved logic for handling wraparound scenarios
- Updated function signature to return a boolean value

Co-authored-by: Rúben Soares Silva <rsilva@allbesmart.pt>
2025-01-27 10:59:19 +01:00
..
2021-02-12 16:36:58 +05:30
2018-01-15 15:24:50 +01:00

This directory contains the NFAPI code.

It comes in two parts:

1 - open-nFAPI

    This is a clone of the github repository
    (https://github.com/cisco/open-nFAPI,
     commit b3bc579b1697eab829d5d8a2de59c93a61b88fa4).
    The patch open-nfapi.oai.patch has then been applied.

2 - oai_integration

    This is code written by David Price from Cisco to integrate
    open-nFAPI into OpenAirInterface.