Namespaces

Records

Functions

  • uint8_t Get80211UserPriority (const uint8_t * data, size_t size)

    Get the user priority from the DSCP field in an IP header based on RFC 8325. The incoming data

    points to an ethernet header and if it contains an IPv4 or IPv6 payload the DSCP field is

    inspected and the priority code point is retrieved from it. Payloads other than IP or unknown

    code points in the DSCP field result in the lowest possible priority. Payloads that do not meet

    the minimum required size also receive the lowest possible priority. It is therefore safe to use

    this function on any data as long as the the size parameter correctly represents the amount of

    available data. This translation is based on RFC-8325 Section 4.3

    https://datatracker.ietf.org/doc/html/rfc8325#section-4.3

    Defined at line 41 of file ../../src/connectivity/wlan/drivers/lib/components/cpp/include/wlan/drivers/components/priority.h

  • uint32_t UserPriorityToPrecedence (uint8_t priority)

    Convert a user priority (as retrieved with the function above for example) to an ordered

    precedence index. A higher value indicates a higher priority. This ensures that even though the

    user priority of background traffic is higher than best effort the precedence of best effort is

    higher than background traffic. Based on IEEE 802.11-2016 Section 10.2.4.2.

    Defined at line 91 of file ../../src/connectivity/wlan/drivers/lib/components/cpp/include/wlan/drivers/components/priority.h