Not able to Load Protocol gEfiWiFi2Protocol (Wifi 2)


Pranay Kadam
 

Hi Team,
I'm new to Edk2 platform. I am trying to write simple program to display available Wifi network in Uefi Shell.

I'm trying to load gEfiWiFi2ProtocolGuid Protocol using *LocateProtocol* function as below.
But I can see the return status as "NOT_FOUND". I don't know what am I missing here ?


DEBUG((DEBUG_INFO, "Loafing Protocol....."));
EFI_WIRELESS_MAC_CONNECTION_II_PROTOCOL *WifiNetwork;

Status = gBS->LocateProtocol(&gEfiWiFi2ProtocolGuid, NULL, (VOID**)(&WifiNetwork));

if(EFI_ERROR(Status))
{
DEBUG((DEBUG_ERROR, "Error %r",Status));
return Status;
}

Join discuss@edk2.groups.io to automatically receive all group messages.