class FakeAp

Defined at line 34 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

To simulate an AP. Only keep minimum information for sim-fw to generate

response for driver.

Public Methods

void SetChannel (const fuchsia_wlan_ieee80211::wire::ChannelNumber & primary, const fuchsia_wlan_ieee80211::wire::ChannelBandwidth & bandwidth, const fuchsia_wlan_ieee80211::wire::ChannelNumber & vht_secondary_80_channel)

Defined at line 15 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void SetBssid (const wlan::common::MacAddr & bssid)

Defined at line 62 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void FakeAp ()

Defined at line 64 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

void FakeAp (Environment * environ)

Defined at line 66 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

void SetSsid (const fuchsia_wlan_ieee80211::Ssid & ssid)

Defined at line 67 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void FakeAp (Environment * environ, const wlan::common::MacAddr & bssid, const fuchsia_wlan_ieee80211::Ssid & ssid, const fuchsia_wlan_ieee80211::wire::ChannelNumber primary_channel, fuchsia_wlan_ieee80211::wire::ChannelBandwidth bandwidth, fuchsia_wlan_ieee80211::wire::ChannelNumber vht_secondary_80_channel)

Defined at line 68 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

void SetCsaBeaconInterval (zx::duration interval)

Defined at line 72 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

zx_status_t SetSecurity (struct Security sec)

When this is not called, the default is open network.

Defined at line 78 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void FakeAp (Environment * environ, const wlan::common::MacAddr & bssid, const fuchsia_wlan_ieee80211::Ssid & ssid, const fuchsia_wlan_ieee80211::wire::ChannelNumber primary, fuchsia_wlan_ieee80211::wire::ChannelBandwidth bandwidth, uint8_t vht_secondary_80_channel_num)

Defined at line 90 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

void ~FakeAp ()

Defined at line 99 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

void EnableBeacon (zx::duration beacon_period)

Start beaconing. Sends first beacon immediately and schedules beacons to occur every

beacon_period until disabled.

Defined at line 101 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void SetChannel (const fuchsia_wlan_ieee80211::wire::ChannelNumber & primary, const fuchsia_wlan_ieee80211::wire::ChannelBandwidth & bandwidth, const uint8_t & vht_secondary_80_channel_num)

Defined at line 105 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

fuchsia_wlan_ieee80211::wire::ChannelNumber GetChannel ()

Defined at line 117 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

fuchsia_wlan_ieee80211::wire::ChannelBandwidth GetChannelBandwidth ()

Defined at line 118 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

fuchsia_wlan_ieee80211::wire::ChannelNumber GetSecondary80 ()

Defined at line 119 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

void DisableBeacon ()

Stop beaconing.

Defined at line 121 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

wlan::common::MacAddr GetBssid ()

Defined at line 123 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

fuchsia_wlan_ieee80211::Ssid GetSsid ()

Defined at line 124 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

uint32_t GetNumAssociatedClient ()

Defined at line 174 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

bool CanReceiveChannel (const fuchsia_wlan_ieee80211::wire::ChannelNumber & channel)

Will we receive a message sent on the specified channel?

void SetAssocHandling (enum AssocHandling mode)

Specify how to handle association requests

Defined at line 644 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

zx_status_t DisassocSta (const wlan::common::MacAddr & sta_mac, wlan_ieee80211::ReasonCode reason)

Disassociate a Station

Defined at line 538 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

zx_status_t DeauthSta (const wlan::common::MacAddr & sta_mac, wlan_ieee80211::ReasonCode reason)

Deauthenticate a Station

Defined at line 553 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void SendBtmReq (const simulation::SimBtmReqFrame & btm_req)

Send a BSS Transition Management request.

Defined at line 568 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void AddErrInjBeacon (std::function<SimBeaconFrame (const SimBeaconFrame &)> beacon_mutator)

Beacon-specific error injection.

The beacon_mutator functor will be applied to each beacon frame before transmission.

Defined at line 594 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void DelErrInjBeacon ()

Defined at line 598 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

bool CheckIfErrInjBeaconEnabled ()

Defined at line 600 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void Rx (std::shared_ptr<const SimFrame> frame, std::shared_ptr<const WlanRxInfo> info)

StationIfc operations - these are the functions that allow the simulated AP to be used

inside of a sim-env environment.

Defined at line 224 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

Enumerations

enum AssocHandling
Name Value
ASSOC_ALLOWED 0
ASSOC_IGNORED 1
ASSOC_REFUSED_TEMPORARILY 2
ASSOC_REFUSED 3

How to handle an association request

Defined at line 37 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

Records