]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Supplicant.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Supplicant.h
index 9cd63f82d18cadc11cb86f19ea0b49a5e53cae33..d7862211258323501541c2c53815eaffa453a84a 100644 (file)
@@ -2,13 +2,7 @@
   This file defines the EFI Supplicant Protocol.\r
 \r
   Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution. The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
   @par Revision Reference:\r
   This Protocol is introduced in UEFI Specification 2.6\r
@@ -218,10 +212,10 @@ typedef struct {
   // If TRUE, indicates GTK is just refreshed after a successful call to\r
   // EFI_SUPPLICANT_PROTOCOL.BuildResponsePacket().\r
   //\r
-  BOOLEAN                                 GTKRefresh;\r
+  BOOLEAN    GTKRefresh;\r
 } EFI_SUPPLICANT_KEY_REFRESH;\r
 \r
-#define EFI_MAX_KEY_LEN 64\r
+#define EFI_MAX_KEY_LEN  64\r
 \r
 ///\r
 /// EFI_SUPPLICANT_KEY\r
@@ -230,45 +224,45 @@ typedef struct {
   //\r
   // The key value.\r
   //\r
-  UINT8                                   Key[EFI_MAX_KEY_LEN];\r
+  UINT8                           Key[EFI_MAX_KEY_LEN];\r
   //\r
   // Length in bytes of the Key. Should be up to EFI_MAX_KEY_LEN.\r
   //\r
-  UINT8                                   KeyLen;\r
+  UINT8                           KeyLen;\r
   //\r
   // The key identifier.\r
   //\r
-  UINT8                                   KeyId;\r
+  UINT8                           KeyId;\r
   //\r
   // Defines whether this key is a group key, pairwise key, PeerKey, or\r
   // Integrity Group.\r
   //\r
-  EFI_SUPPLICANT_KEY_TYPE                 KeyType;\r
+  EFI_SUPPLICANT_KEY_TYPE         KeyType;\r
   //\r
   // The value is set according to the KeyType.\r
   //\r
-  EFI_80211_MAC_ADDRESS                   Addr;\r
+  EFI_80211_MAC_ADDRESS           Addr;\r
   //\r
   // The Receive Sequence Count value.\r
   //\r
-  UINT8                                   Rsc[8];\r
+  UINT8                           Rsc[8];\r
   //\r
   // Length in bytes of the Rsc. Should be up to 8.\r
   //\r
-  UINT8                                   RscLen;\r
+  UINT8                           RscLen;\r
   //\r
   // Indicates whether the key is configured by the Authenticator or\r
   // Supplicant. The value true indicates Authenticator.\r
   //\r
-  BOOLEAN                                 IsAuthenticator;\r
+  BOOLEAN                         IsAuthenticator;\r
   //\r
   // The cipher suite required for this association.\r
   //\r
-  EFI_80211_SUITE_SELECTOR                CipherSuite;\r
+  EFI_80211_SUITE_SELECTOR        CipherSuite;\r
   //\r
   // Indicates the direction for which the keys are to be installed.\r
   //\r
-  EFI_SUPPLICANT_KEY_DIRECTION            Direction;\r
+  EFI_SUPPLICANT_KEY_DIRECTION    Direction;\r
 } EFI_SUPPLICANT_KEY;\r
 \r
 ///\r
@@ -278,12 +272,12 @@ typedef struct {
   //\r
   // Indicates the number of GTKs that are contained in GTKList.\r
   //\r
-  UINT8                                   GTKCount;\r
+  UINT8                 GTKCount;\r
   //\r
   // A variable-length array of GTKs of type EFI_SUPPLICANT_KEY. The number of\r
   // entries is specified by GTKCount.\r
   //\r
-  EFI_SUPPLICANT_KEY                      GTKList[1];\r
+  EFI_SUPPLICANT_KEY    GTKList[1];\r
 } EFI_SUPPLICANT_GTK_LIST;\r
 \r
 ///\r
@@ -293,11 +287,11 @@ typedef struct {
   //\r
   // Length of data buffer in the fragment.\r
   //\r
-  UINT32                                  FragmentLength;\r
+  UINT32    FragmentLength;\r
   //\r
   // Pointer to the data buffer in the fragment.\r
   //\r
-  VOID                                    *FragmentBuffer;\r
+  VOID      *FragmentBuffer;\r
 } EFI_SUPPLICANT_FRAGMENT_DATA;\r
 \r
 /**\r
@@ -339,11 +333,11 @@ typedef struct {
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_SUPPLICANT_BUILD_RESPONSE_PACKET) (\r
+(EFIAPI *EFI_SUPPLICANT_BUILD_RESPONSE_PACKET)(\r
   IN     EFI_SUPPLICANT_PROTOCOL          *This,\r
-  IN     UINT8                            *RequestBuffer,     OPTIONAL\r
-  IN     UINTN                            RequestBufferSize,  OPTIONAL\r
-     OUT UINT8                            *Buffer,\r
+  IN     UINT8                            *RequestBuffer      OPTIONAL,\r
+  IN     UINTN                            RequestBufferSize   OPTIONAL,\r
+  OUT UINT8                            *Buffer,\r
   IN OUT UINTN                            *BufferSize\r
   );\r
 \r
@@ -373,7 +367,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_SUPPLICANT_PROCESS_PACKET) (\r
+(EFIAPI *EFI_SUPPLICANT_PROCESS_PACKET)(\r
   IN     EFI_SUPPLICANT_PROTOCOL          *This,\r
   IN OUT EFI_SUPPLICANT_FRAGMENT_DATA     **FragmentTable,\r
   IN     UINT32                           *FragmentCount,\r
@@ -401,7 +395,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_SUPPLICANT_SET_DATA) (\r
+(EFIAPI *EFI_SUPPLICANT_SET_DATA)(\r
   IN EFI_SUPPLICANT_PROTOCOL              *This,\r
   IN EFI_SUPPLICANT_DATA_TYPE             DataType,\r
   IN VOID                                 *Data,\r
@@ -438,10 +432,10 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_SUPPLICANT_GET_DATA) (\r
+(EFIAPI *EFI_SUPPLICANT_GET_DATA)(\r
   IN     EFI_SUPPLICANT_PROTOCOL          *This,\r
   IN     EFI_SUPPLICANT_DATA_TYPE         DataType,\r
-     OUT UINT8                            *Data,     OPTIONAL\r
+  OUT UINT8                            *Data      OPTIONAL,\r
   IN OUT UINTN                            *DataSize\r
   );\r
 \r
@@ -458,7 +452,7 @@ struct _EFI_SUPPLICANT_PROTOCOL {
   EFI_SUPPLICANT_GET_DATA                 GetData;\r
 };\r
 \r
-extern EFI_GUID gEfiSupplicantServiceBindingProtocolGuid;\r
-extern EFI_GUID gEfiSupplicantProtocolGuid;\r
+extern EFI_GUID  gEfiSupplicantServiceBindingProtocolGuid;\r
+extern EFI_GUID  gEfiSupplicantProtocolGuid;\r
 \r
 #endif\r