Revision: 18354
          http://sourceforge.net/p/edk2/code/18354
Author:   hwu1225
Date:     2015-08-28 07:41:08 +0000 (Fri, 28 Aug 2015)
Log Message:
-----------
MdePkg: Modify string expression of Wi-Fi device path to follow UEFI spec

According to UEFI 2.5 spec, the string expression of a Wi-Fi device node
should be displayed as: Wi-Fi(SSID). However, current code displays it as:
WiFi(SSID).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <[email protected]>
Reviewed-by: Feng Tian <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c
    trunk/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c

Modified: trunk/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c
===================================================================
--- trunk/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c    
2015-08-28 07:36:55 UTC (rev 18353)
+++ trunk/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c    
2015-08-28 07:41:08 UTC (rev 18354)
@@ -3519,7 +3519,7 @@
   {L"Vlan",                    DevPathFromTextVlan                    },
   {L"Uri",                     DevPathFromTextUri                     },
   {L"Bluetooth",               DevPathFromTextBluetooth               },
-  {L"WiFi",                    DevPathFromTextWiFi                    },
+  {L"Wi-Fi",                   DevPathFromTextWiFi                    },
   {L"MediaPath",               DevPathFromTextMediaPath               },
   {L"HD",                      DevPathFromTextHD                      },
   {L"CDROM",                   DevPathFromTextCDROM                   },

Modified: trunk/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c
===================================================================
--- trunk/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c      
2015-08-28 07:36:55 UTC (rev 18353)
+++ trunk/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c      
2015-08-28 07:41:08 UTC (rev 18354)
@@ -1618,7 +1618,7 @@
   WIFI_DEVICE_PATH      *WiFi;
 
   WiFi = DevPath;
-  UefiDevicePathLibCatPrint (Str, L"WiFi(%a)", WiFi->SSId);
+  UefiDevicePathLibCatPrint (Str, L"Wi-Fi(%a)", WiFi->SSId);
 }
 
 /**


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to