diff options
Diffstat (limited to 'hardinfo2')
| -rw-r--r-- | hardinfo2/arch/linux/common/net.h | 1 | ||||
| -rw-r--r-- | hardinfo2/arch/linux/common/usb.h | 13 | 
2 files changed, 10 insertions, 4 deletions
| diff --git a/hardinfo2/arch/linux/common/net.h b/hardinfo2/arch/linux/common/net.h index dd3928f1..9c3e3cf2 100644 --- a/hardinfo2/arch/linux/common/net.h +++ b/hardinfo2/arch/linux/common/net.h @@ -181,6 +181,7 @@ void get_net_info(char *if_name, NetInfo * netinfo)      }  #ifdef HAS_LINUX_WE +    netinfo->is_wireless = FALSE;      get_wireless_info(fd, netinfo);  #endif diff --git a/hardinfo2/arch/linux/common/usb.h b/hardinfo2/arch/linux/common/usb.h index f7886cb6..f6556755 100644 --- a/hardinfo2/arch/linux/common/usb.h +++ b/hardinfo2/arch/linux/common/usb.h @@ -15,7 +15,10 @@   *    along with this program; if not, write to the Free Software   *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA   */ - +/* + * FIXME: + * - listing with sysfs does not generate device hierarchy + */  static gboolean  remove_usb_devices(gpointer key, gpointer value, gpointer data)  { @@ -46,9 +49,11 @@ void __scan_usb_sysfs_add_device(gchar * endpoint, int n)      }      if (!(product = h_sysfs_read_string(endpoint, "product"))) { -    	product =  -	    g_strdup_printf("Unknown USB %.2f device (class %d)", version, -			    classid); +	if (classid == 9) { +	    product = g_strdup_printf("USB %.2f Hub", version); +	} else { +	    product = g_strdup_printf("Unknown USB %.2f Device (class %d)", version, classid); +	}      }      const gchar *url = vendor_get_url(manufacturer); | 
