Revert "freebsd: Assume all devices on FreeBSD are USB 2.0 per default because"

This reverts commit fd75ad6d3d71429f9e82339bd5abdb391725923b.
This commit is contained in:
Bernhard Froehlich 2014-01-08 14:32:52 +00:00
parent c21d42e4ce
commit 727357e1bd

View file

@ -953,13 +953,8 @@ get_device_connection(const char *dev)
snprintf(path, sizeof(path), "/sys/class/%s/device/speed", dev);
if(readlinefromfile(path, l, sizeof(l))) {
#if defined(PLATFORM_FREEBSD)
// Assume USB 2.0 on FreeBSD because there are no supported PCI devices
return HOSTCONNECTION_USB480;
#else
// Unable to read speed, assume it's PCI
return HOSTCONNECTION_PCI;
#endif
} else {
speed = atoi(l);