Skip to contentSkip to conversation

hw/remote/proxy: Categorize Wireless devices as 'Network' ones

PATCH Applied Philippe Mathieu-Daudé 3 participants 3 messages Sep 26, 2021 – Sep 29, 2021

lore
Share & tools
lore
#0 lore raw

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.

---
 hw/remote/proxy.c | 1 +
 1 file changed, 1 insertion(+)
hw/remote/proxy.c +1 -0
index 499f540c947..bad164299dd 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

Quoted 19 lines

---
hw/remote/proxy.c | 1 +

1 file changed, 1 insertion(+)
hw/remote/proxy.c +1 -0
index 499f540c947..bad164299dd 100644
@@ -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
#2 lore raw
In reply to Philippe Mathieu-Daudé

Le 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.

---
 hw/remote/proxy.c | 1 +
 1 file changed, 1 insertion(+)
hw/remote/proxy.c +0 -0
index 499f540c947..bad164299dd 100644

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