Functions

  • zx_status_t WriteEthernetFrame (cpp20::span<uint8_t> out, common::MacAddr dst, common::MacAddr src, uint16_t type, cpp20::span<const uint8_t> body)

    Writes an ethernet frame to `out` with the given parameters.

    Defined at line 14 of file ../../src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim/sim_utils.cc

  • std::vector<uint8_t> CreateEthernetFrame (common::MacAddr dst, common::MacAddr src, uint16_t type, cpp20::span<const uint8_t> body)

    Returns a newly allocated vector containing an ethernet frame with the given parameters.

    Defined at line 28 of file ../../src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim/sim_utils.cc

  • int8_t SnrDbFromSignalStrength (double signal_strength, double noise_level)

    Derive SNR from RSSI

    &

    Noise. Restrict it to int8_t.

    Defined at line 35 of file ../../src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim/sim_utils.cc

  • std::vector<uint8_t> CreateSsidIe (cpp20::span<const uint8_t> ssid)

    Constructs an information element for the given SSID bytes.

    802.11-2020 9.4.2.2 limits SSID data to 32 bytes; anything beyond that limit

    will be silently dropped by this function.

    Defined at line 45 of file ../../src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim/sim_utils.cc