[pxe] Work around missing PXENV_UNDI_OPEN only when necessary
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
90caf71051
commit
206bd7bb64
@ -330,8 +330,10 @@ pxenv_undi_transmit ( struct s_PXENV_UNDI_TRANSMIT *undi_transmit ) {
|
|||||||
* processing at this point, to work around callers that never
|
* processing at this point, to work around callers that never
|
||||||
* call PXENV_UNDI_OPEN before attempting to use the UNDI API.
|
* call PXENV_UNDI_OPEN before attempting to use the UNDI API.
|
||||||
*/
|
*/
|
||||||
|
if ( ! netdev_rx_frozen ( pxe_netdev ) ) {
|
||||||
netdev_rx_freeze ( pxe_netdev );
|
netdev_rx_freeze ( pxe_netdev );
|
||||||
netdev_irq ( pxe_netdev, 1 );
|
netdev_irq ( pxe_netdev, 1 );
|
||||||
|
}
|
||||||
|
|
||||||
/* Identify network-layer protocol */
|
/* Identify network-layer protocol */
|
||||||
switch ( undi_transmit->Protocol ) {
|
switch ( undi_transmit->Protocol ) {
|
||||||
|
Reference in New Issue
Block a user