\r
//\r
// The PXE device path is like:\r
- // ....../Mac(...)[/Vlan(...)]\r
- // ....../Mac(...)[/Vlan(...)]/IPv4(...)\r
- // ....../Mac(...)[/Vlan(...)]/IPv6(...)\r
+ // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]\r
+ // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)\r
+ // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)\r
//\r
// The HTTP device path is like:\r
- // ....../Mac(...)[/Vlan(...)]/IPv4(...)/Uri(...)\r
- // ....../Mac(...)[/Vlan(...)]/IPv6(...)/Uri(...)\r
+ // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)/Uri(...)\r
+ // ....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv6(...)/Uri(...)\r
//\r
while (!IsDevicePathEnd (DevicePath) &&\r
((DevicePathType (DevicePath) != MESSAGING_DEVICE_PATH) ||\r
Mac = (MAC_ADDR_DEVICE_PATH *) DevicePath;\r
DevicePath = NextDevicePathNode (DevicePath);\r
\r
+ //\r
+ // Locate the optional Vlan node\r
+ //\r
if ((DevicePathType (DevicePath) == MESSAGING_DEVICE_PATH) &&\r
(DevicePathSubType (DevicePath) == MSG_VLAN_DP)\r
) {\r
Vlan = NULL;\r
}\r
\r
+ //\r
+ // Skip the optional Wi-Fi node\r
+ //\r
+ if ((DevicePathType (DevicePath) == MESSAGING_DEVICE_PATH) &&\r
+ (DevicePathSubType (DevicePath) == MSG_WIFI_DP)\r
+ ) {\r
+ DevicePath = NextDevicePathNode (DevicePath);\r
+ }\r
+\r
+ //\r
+ // Locate the IP node\r
+ //\r
if ((DevicePathType (DevicePath) == MESSAGING_DEVICE_PATH) &&\r
((DevicePathSubType (DevicePath) == MSG_IPv4_DP) ||\r
(DevicePathSubType (DevicePath) == MSG_IPv6_DP))\r
Ip = NULL;\r
}\r
\r
+ //\r
+ // Locate the URI node\r
+ //\r
if ((DevicePathType (DevicePath) == MESSAGING_DEVICE_PATH) &&\r
(DevicePathSubType (DevicePath) == MSG_URI_DP)\r
) {\r