class FakeAp

Defined at line 33 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 wlan_ieee80211::WlanChannel & channel)

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

void SetBssid (const common::MacAddr & bssid)

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

void SetSsid (const fuchsia_wlan_ieee80211::Ssid & ssid)

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

void SetCsaBeaconInterval (zx::duration interval)

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

void FakeAp ()

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

void FakeAp (Environment * environ)

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

void FakeAp (Environment * environ, const common::MacAddr & bssid, const fuchsia_wlan_ieee80211::Ssid & ssid, const wlan_ieee80211::WlanChannel channel)

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

void ~FakeAp ()

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

uint32_t GetNumAssociatedClient ()

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

bool CanReceiveChannel (const wlan_ieee80211::WlanChannel & channel)

Will we receive a message sent on the specified channel?

Defined at line 81 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 65 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

wlan_ieee80211::WlanChannel GetChannel ()

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

common::MacAddr GetBssid ()

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

fuchsia_wlan_ieee80211::Ssid GetSsid ()

Defined at line 89 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 94 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void DisableBeacon ()

Stop beaconing.

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

void SetAssocHandling (enum AssocHandling mode)

Specify how to handle association requests

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

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

Disassociate a Station

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

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

Deauthenticate a Station

Defined at line 541 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 556 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 582 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.cc

void DelErrInjBeacon ()

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

bool CheckIfErrInjBeaconEnabled ()

Defined at line 588 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 213 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 36 of file ../../src/connectivity/wlan/drivers/testing/lib/sim-fake-ap/sim-fake-ap.h

Records