2 The Mac Connection2 Protocol adapter functions for WiFi Connection Manager.
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __EFI_WIFI_IMPL__
11 #define __EFI_WIFI_IMPL__
14 Start scan operation, and send out a token to collect available networks.
16 @param[in] Nic Pointer to the device data of the selected NIC.
18 @retval EFI_SUCCESS The operation is completed.
19 @retval EFI_ALREADY_STARTED A former scan operation is already ongoing.
20 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
21 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
22 @retval Other Errors Return errors when getting networks from low layer.
27 IN WIFI_MGR_DEVICE_DATA
*Nic
31 Get current link state from low layer.
33 @param[in] Nic Pointer to the device data of the selected NIC.
34 @param[out] LinkState The pointer to buffer to retrieve link state.
36 @retval EFI_SUCCESS The operation is completed.
37 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
38 @retval EFI_UNSUPPORTED Adapter information protocol is not supported.
39 @retval Other Errors Returned errors when retrieving link state from low layer.
44 IN WIFI_MGR_DEVICE_DATA
*Nic
,
45 OUT EFI_ADAPTER_INFO_MEDIA_STATE
*LinkState
49 Start connect operation, and send out a token to connect to a target network.
51 @param[in] Nic Pointer to the device data of the selected NIC.
52 @param[in] Profile The target network to be connected.
54 @retval EFI_SUCCESS The operation is completed.
55 @retval EFI_ALREADY_STARTED Already in "connected" state, need to perform a disconnect
57 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
58 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
59 @retval Other Errors Return errors when connecting network on low layer.
63 WifiMgrConnectToNetwork (
64 IN WIFI_MGR_DEVICE_DATA
*Nic
,
65 IN WIFI_MGR_NETWORK_PROFILE
*Profile
69 Start disconnect operation, and send out a token to disconnect from current connected
72 @param[in] Nic Pointer to the device data of the selected NIC.
74 @retval EFI_SUCCESS The operation is completed.
75 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
76 @retval Other Errors Return errors when disconnecting a network on low layer.
80 WifiMgrDisconnectToNetwork (
81 IN WIFI_MGR_DEVICE_DATA
*Nic
85 The state machine of the connection manager, periodically check the state and
86 perform a corresponding operation.
88 @param[in] Event The timer event to be triggered.
89 @param[in] Context The context of the Nic device data.