From 281d2f71fd304b03b09f48bb4ff4c6ce83e07245 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 21 Aug 2007 01:50:29 +0000 Subject: [PATCH] 2007-08-20 Dan Williams * src/nm-device-802-11-wireless.c - (nm_device_802_11_wireless_get_ssid): don't traceback and die when the SSID isn't available; this can happen when the card is pulled or the module unloaded, during the post-removal deactivation paths, when the ioctl returns ENODEV git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2718 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 8 ++++++++ src/nm-device-802-11-wireless.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 72f34f2d20..3ebf7caf9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-08-20 Dan Williams + + * src/nm-device-802-11-wireless.c + - (nm_device_802_11_wireless_get_ssid): don't traceback and die when + the SSID isn't available; this can happen when the card is pulled + or the module unloaded, during the post-removal deactivation + paths, when the ioctl returns ENODEV + 2007-08-20 Dan Williams * src/nm-device-802-11-wireless.c diff --git a/src/nm-device-802-11-wireless.c b/src/nm-device-802-11-wireless.c index 0c610c16e1..bd0ef7db1f 100644 --- a/src/nm-device-802-11-wireless.c +++ b/src/nm-device-802-11-wireless.c @@ -1433,7 +1433,7 @@ nm_device_802_11_wireless_get_ssid (NMDevice80211Wireless *self) wrq.u.essid.length = sizeof (ssid); wrq.u.essid.flags = 0; if (iw_get_ext (sk, iface, SIOCGIWESSID, &wrq) < 0) { - nm_error ("Couldn't get SSID: %d", errno); + nm_warning ("Couldn't get SSID: %d", errno); goto out; }