Browse Source

[pxe] Report SUPPORTED_IRQ only if device supports interrupts

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
025b1cb3f8
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/arch/i386/interface/pxe/pxe_undi.c

+ 3
- 1
src/arch/i386/interface/pxe/pxe_undi.c View File

@@ -615,7 +615,9 @@ PXENV_EXIT_t pxenv_undi_get_iface_info ( struct s_PXENV_UNDI_GET_IFACE_INFO
615 615
 	undi_get_iface_info->ServiceFlags =
616 616
 		( SUPPORTED_BROADCAST | SUPPORTED_MULTICAST |
617 617
 		  SUPPORTED_SET_STATION_ADDRESS | SUPPORTED_RESET |
618
-		  SUPPORTED_OPEN_CLOSE | SUPPORTED_IRQ );
618
+		  SUPPORTED_OPEN_CLOSE );
619
+	if ( netdev_irq_supported ( pxe_netdev ) )
620
+		undi_get_iface_info->ServiceFlags |= SUPPORTED_IRQ;
619 621
 	memset ( undi_get_iface_info->Reserved, 0,
620 622
 		 sizeof(undi_get_iface_info->Reserved) );
621 623
 

Loading…
Cancel
Save