TianoCore EDK2 master
Loading...
Searching...
No Matches
WifiConnectionMgrImpl.h File Reference

Go to the source code of this file.

Functions

EFI_STATUS WifiMgrStartScan (IN WIFI_MGR_DEVICE_DATA *Nic)
 
EFI_STATUS WifiMgrGetLinkState (IN WIFI_MGR_DEVICE_DATA *Nic, OUT EFI_ADAPTER_INFO_MEDIA_STATE *LinkState)
 
EFI_STATUS WifiMgrConnectToNetwork (IN WIFI_MGR_DEVICE_DATA *Nic, IN WIFI_MGR_NETWORK_PROFILE *Profile)
 
EFI_STATUS WifiMgrDisconnectToNetwork (IN WIFI_MGR_DEVICE_DATA *Nic)
 
VOID EFIAPI WifiMgrOnTimerTick (IN EFI_EVENT Event, IN VOID *Context)
 

Detailed Description

The Mac Connection2 Protocol adapter functions for WiFi Connection Manager.

Copyright (c) 2019, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file WifiConnectionMgrImpl.h.

Function Documentation

◆ WifiMgrConnectToNetwork()

EFI_STATUS WifiMgrConnectToNetwork ( IN WIFI_MGR_DEVICE_DATA Nic,
IN WIFI_MGR_NETWORK_PROFILE Profile 
)

Start connect operation, and send out a token to connect to a target network.

Parameters
[in]NicPointer to the device data of the selected NIC.
[in]ProfileThe target network to be connected.
Return values
EFI_SUCCESSThe operation is completed.
EFI_ALREADY_STARTEDAlready in "connected" state, need to perform a disconnect operation first.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_OUT_OF_RESOURCESFailed to allocate memory.
OtherErrors Return errors when connecting network on low layer.

Definition at line 1207 of file WifiConnectionMgrImpl.c.

◆ WifiMgrDisconnectToNetwork()

EFI_STATUS WifiMgrDisconnectToNetwork ( IN WIFI_MGR_DEVICE_DATA Nic)

Start disconnect operation, and send out a token to disconnect from current connected network.

Parameters
[in]NicPointer to the device data of the selected NIC.
Return values
EFI_SUCCESSThe operation is completed.
EFI_OUT_OF_RESOURCESFailed to allocate memory.
OtherErrors Return errors when disconnecting a network on low layer.

Start disconnect operation, and send out a token to disconnect from current connected network.

Parameters
[in]NicPointer to the device data of the selected NIC.
Return values
EFI_SUCCESSThe operation is completed.
EFI_OUT_OF_RESOURCESFailed to allocate memory.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
OtherErrors Return errors when disconnecting a network on low layer.

Definition at line 1387 of file WifiConnectionMgrImpl.c.

◆ WifiMgrGetLinkState()

EFI_STATUS WifiMgrGetLinkState ( IN WIFI_MGR_DEVICE_DATA Nic,
OUT EFI_ADAPTER_INFO_MEDIA_STATE LinkState 
)

Get current link state from low layer.

Parameters
[in]NicPointer to the device data of the selected NIC.
[out]LinkStateThe pointer to buffer to retrieve link state.
Return values
EFI_SUCCESSThe operation is completed.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_UNSUPPORTEDAdapter information protocol is not supported.
OtherErrors Returned errors when retrieving link state from low layer.

Definition at line 791 of file WifiConnectionMgrImpl.c.

◆ WifiMgrOnTimerTick()

VOID EFIAPI WifiMgrOnTimerTick ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

The state machine of the connection manager, periodically check the state and perform a corresponding operation.

Parameters
[in]EventThe timer event to be triggered.
[in]ContextThe context of the Nic device data.

Definition at line 1477 of file WifiConnectionMgrImpl.c.

◆ WifiMgrStartScan()

EFI_STATUS WifiMgrStartScan ( IN WIFI_MGR_DEVICE_DATA Nic)

Start scan operation, and send out a token to collect available networks.

Parameters
[in]NicPointer to the device data of the selected NIC.
Return values
EFI_SUCCESSThe operation is completed.
EFI_ALREADY_STARTEDA former scan operation is already ongoing.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_OUT_OF_RESOURCESFailed to allocate memory.
OtherErrors Return errors when getting networks from low layer.

Definition at line 246 of file WifiConnectionMgrImpl.c.