mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 02:52:36 +03:00
[pxe] Fix interoperability with the Intel DOS UNDI driver
The Intel DOS UNDI driver fails when run on top of gPXE because we do not fill in the ServiceFlags field in PXENV_UNDI_GET_IFACE_INFO. Fix by filling in the ServiceFlags field with reasonable values indicating our approximate feature capabilities.
This commit is contained in:
@@ -534,7 +534,10 @@ PXENV_EXIT_t pxenv_undi_get_iface_info ( struct s_PXENV_UNDI_GET_IFACE_INFO
|
||||
snprintf ( ( char * ) undi_get_iface_info->IfaceType,
|
||||
sizeof ( undi_get_iface_info->IfaceType ), "gPXE" );
|
||||
undi_get_iface_info->LinkSpeed = 10000000; /* 10 Mbps */
|
||||
undi_get_iface_info->ServiceFlags = 0;
|
||||
undi_get_iface_info->ServiceFlags =
|
||||
( SUPPORTED_BROADCAST | SUPPORTED_MULTICAST |
|
||||
SUPPORTED_SET_STATION_ADDRESS | SUPPORTED_RESET |
|
||||
SUPPORTED_OPEN_CLOSE | SUPPORTED_IRQ );
|
||||
memset ( undi_get_iface_info->Reserved, 0,
|
||||
sizeof(undi_get_iface_info->Reserved) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user