diff options
author | Michael Brown | 2010-03-23 01:46:23 +0100 |
---|---|---|
committer | Michael Brown | 2010-03-23 01:46:35 +0100 |
commit | 88e436376cbdedee73483a9b57203c60a34316ac (patch) | |
tree | 4b23f51f32be9190621b44e497ef392510f1fd69 /src/arch | |
parent | [phantom] Update interrupt support to match current firmware (diff) | |
download | ipxe-88e436376cbdedee73483a9b57203c60a34316ac.tar.gz ipxe-88e436376cbdedee73483a9b57203c60a34316ac.tar.xz ipxe-88e436376cbdedee73483a9b57203c60a34316ac.zip |
[netdevice] Add netdev_is_open() wrapper function
Signed-off-by: Michael Brown <mcb30@etherboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/i386/hci/commands/pxe_cmd.c | 2 | ||||
-rw-r--r-- | src/arch/i386/interface/pxe/pxe_undi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/hci/commands/pxe_cmd.c b/src/arch/i386/hci/commands/pxe_cmd.c index b5df2d1b..76c49bb9 100644 --- a/src/arch/i386/hci/commands/pxe_cmd.c +++ b/src/arch/i386/hci/commands/pxe_cmd.c @@ -6,7 +6,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); static int startpxe_payload ( struct net_device *netdev ) { - if ( netdev->state & NETDEV_OPEN ) + if ( netdev_is_open ( netdev ) ) pxe_activate ( netdev ); return 0; } diff --git a/src/arch/i386/interface/pxe/pxe_undi.c b/src/arch/i386/interface/pxe/pxe_undi.c index c9b67c06..2f66c779 100644 --- a/src/arch/i386/interface/pxe/pxe_undi.c +++ b/src/arch/i386/interface/pxe/pxe_undi.c @@ -366,7 +366,7 @@ pxenv_undi_set_station_address ( struct s_PXENV_UNDI_SET_STATION_ADDRESS /* If adapter is open, the change will have no effect; return * an error */ - if ( pxe_netdev->state & NETDEV_OPEN ) { + if ( netdev_is_open ( pxe_netdev ) ) { DBG ( " failed: netdev is open\n" ); undi_set_station_address->Status = PXENV_STATUS_UNDI_INVALID_STATE; |