TianoCore EDK2 master
|
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) |
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.
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.
[in] | Nic | Pointer to the device data of the selected NIC. |
[in] | Profile | The target network to be connected. |
EFI_SUCCESS | The operation is completed. |
EFI_ALREADY_STARTED | Already in "connected" state, need to perform a disconnect operation first. |
EFI_INVALID_PARAMETER | One or more parameters are invalid. |
EFI_OUT_OF_RESOURCES | Failed to allocate memory. |
Other | Errors Return errors when connecting network on low layer. |
Definition at line 1207 of file WifiConnectionMgrImpl.c.
EFI_STATUS WifiMgrDisconnectToNetwork | ( | IN WIFI_MGR_DEVICE_DATA * | Nic | ) |
Start disconnect operation, and send out a token to disconnect from current connected network.
[in] | Nic | Pointer to the device data of the selected NIC. |
EFI_SUCCESS | The operation is completed. |
EFI_OUT_OF_RESOURCES | Failed to allocate memory. |
Other | Errors Return errors when disconnecting a network on low layer. |
Start disconnect operation, and send out a token to disconnect from current connected network.
[in] | Nic | Pointer to the device data of the selected NIC. |
EFI_SUCCESS | The operation is completed. |
EFI_OUT_OF_RESOURCES | Failed to allocate memory. |
EFI_INVALID_PARAMETER | One or more parameters are invalid. |
Other | Errors Return errors when disconnecting a network on low layer. |
Definition at line 1387 of file WifiConnectionMgrImpl.c.
EFI_STATUS WifiMgrGetLinkState | ( | IN WIFI_MGR_DEVICE_DATA * | Nic, |
OUT EFI_ADAPTER_INFO_MEDIA_STATE * | LinkState | ||
) |
Get current link state from low layer.
[in] | Nic | Pointer to the device data of the selected NIC. |
[out] | LinkState | The pointer to buffer to retrieve link state. |
EFI_SUCCESS | The operation is completed. |
EFI_INVALID_PARAMETER | One or more parameters are invalid. |
EFI_UNSUPPORTED | Adapter information protocol is not supported. |
Other | Errors Returned errors when retrieving link state from low layer. |
Definition at line 791 of file WifiConnectionMgrImpl.c.
The state machine of the connection manager, periodically check the state and perform a corresponding operation.
[in] | Event | The timer event to be triggered. |
[in] | Context | The context of the Nic device data. |
Definition at line 1477 of file WifiConnectionMgrImpl.c.
EFI_STATUS WifiMgrStartScan | ( | IN WIFI_MGR_DEVICE_DATA * | Nic | ) |
Start scan operation, and send out a token to collect available networks.
[in] | Nic | Pointer to the device data of the selected NIC. |
EFI_SUCCESS | The operation is completed. |
EFI_ALREADY_STARTED | A former scan operation is already ongoing. |
EFI_INVALID_PARAMETER | One or more parameters are invalid. |
EFI_OUT_OF_RESOURCES | Failed to allocate memory. |
Other | Errors Return errors when getting networks from low layer. |
Definition at line 246 of file WifiConnectionMgrImpl.c.