]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/remote/proxy: Categorize Wireless devices as 'Network' ones
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 26 Sep 2021 20:19:26 +0000 (22:19 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 4 Oct 2021 07:47:26 +0000 (09:47 +0200)
QEMU doesn't distinct network devices per link layer (Ethernet,
Wi-Fi, CAN, ...). Categorize PCI Wireless cards as Network
devices.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Jagannathan Raman <jag.raman@oracle.com>
Message-Id: <20210926201926.1690896-1-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/remote/proxy.c

index 499f540c947db58cdbdda15a97d0efbac070bb8d..bad164299dd453a3b1e852285e8f0eb0490890a8 100644 (file)
@@ -324,6 +324,7 @@ static void probe_pci_info(PCIDevice *dev, Error **errp)
         set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
         break;
     case PCI_BASE_CLASS_NETWORK:
+    case PCI_BASE_CLASS_WIRELESS:
         set_bit(DEVICE_CATEGORY_NETWORK, dc->categories);
         break;
     case PCI_BASE_CLASS_INPUT: