|
@@ -341,8 +341,10 @@ void usb_port_location(USBPort *downstream, USBPort *upstream, int portnr)
|
|
if (upstream) {
|
|
if (upstream) {
|
|
snprintf(downstream->path, sizeof(downstream->path), "%s.%d",
|
|
snprintf(downstream->path, sizeof(downstream->path), "%s.%d",
|
|
upstream->path, portnr);
|
|
upstream->path, portnr);
|
|
|
|
+ downstream->hubcount = upstream->hubcount + 1;
|
|
} else {
|
|
} else {
|
|
snprintf(downstream->path, sizeof(downstream->path), "%d", portnr);
|
|
snprintf(downstream->path, sizeof(downstream->path), "%d", portnr);
|
|
|
|
+ downstream->hubcount = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|