hw/remote/proxy: Categorize Wireless devices as 'Network' ones
PATCH 1/1 hw/remote/proxy: Categorize Wireless devices as 'Network' ones
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é <[email protected]>
--- hw/remote/proxy.c | 1 + 1 file changed, 1 insertion(+)
hw/remote/proxy.c +1 -0
@@ -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 :
Signature · 1 line
2.31.1
Quoted 9 lines · Philippe Mathieu-Daudé
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é <[email protected]>
Reviewed-by Jagannathan Raman <[email protected]>
Quoted 19 lines
---
hw/remote/proxy.c| 1 +1 file changed, 1 insertion(+)hw/remote/proxy.c +1
-0@@ -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 :Signature · 1 line
2.31.1
Laurent Vivier
AppliedLe 26/09/2021 à 22:19, Philippe Mathieu-Daudé a écrit :
Quoted 15 lines
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é <[email protected]>--- hw/remote/proxy.c | 1 + 1 file changed, 1 insertion(+)hw/remote/proxy.c +0
-0
hw/remote/proxy.c static void probe_pci_info(PCIDevice *dev, Error **errp) · line 330
Quoted 7 lines
hw/remote/proxy.c +1
-0@@ -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 :
Applied to my trivial-patches branch.
Thanks,
Laurent