summaryrefslogtreecommitdiffstats
path: root/src/usr/iwmgmt.c
diff options
context:
space:
mode:
authorMichael Brown2010-03-23 01:46:23 +0100
committerMichael Brown2010-03-23 01:46:35 +0100
commit88e436376cbdedee73483a9b57203c60a34316ac (patch)
tree4b23f51f32be9190621b44e497ef392510f1fd69 /src/usr/iwmgmt.c
parent[phantom] Update interrupt support to match current firmware (diff)
downloadipxe-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/usr/iwmgmt.c')
-rw-r--r--src/usr/iwmgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/iwmgmt.c b/src/usr/iwmgmt.c
index 59ba103a..dd456629 100644
--- a/src/usr/iwmgmt.c
+++ b/src/usr/iwmgmt.c
@@ -125,7 +125,7 @@ int iwlist ( struct net80211_device *dev ) {
char ssid_buf[22];
int rc;
unsigned i;
- int was_opened = dev->netdev->state & NETDEV_OPEN;
+ int was_opened = netdev_is_open ( dev->netdev );
int was_channel = dev->channels[dev->channel].channel_nr;
if ( ! was_opened ) {