/* Converts a text device path node to Bluetooth device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextBluetooth(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to Bluetooth device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextBluetooth(IN CHAR16 *TextDeviceNode)
{
  CHAR16                 *BluetoothStr;
  BLUETOOTH_DEVICE_PATH  *BluetoothDp;
  BluetoothStr = GetNextParamStr (&TextDeviceNode);
  BluetoothDp  = (BLUETOOTH_DEVICE_PATH *)CreateDeviceNode (
                                            MESSAGING_DEVICE_PATH,
                                            MSG_BLUETOOTH_DP,
                                            (UINT16)sizeof (BLUETOOTH_DEVICE_PATH)
                                            );
  StrHexToBytes (
    BluetoothStr,
    sizeof (BLUETOOTH_ADDRESS) * 2,
    BluetoothDp->BD_ADDR.Address,
    sizeof (BLUETOOTH_ADDRESS)
    );
  return (EFI_DEVICE_PATH_PROTOCOL *)BluetoothDp;
}