aboutsummaryrefslogtreecommitdiffstats
path: root/src/usr/iwmgmt.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2010-03-23 00:46:23 +0000
committerMichael Brown <mcb30@etherboot.org>2010-03-23 00:46:35 +0000
commit88e436376cbdedee73483a9b57203c60a34316ac (patch)
tree4b23f51f32be9190621b44e497ef392510f1fd69 /src/usr/iwmgmt.c
parentb3533dd2bb3de6682ebd6c6b523c49fa6c406e92 (diff)
downloadipxe-88e436376cbdedee73483a9b57203c60a34316ac.tar.gz
[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 59ba103a1..dd456629f 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 ) {