summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2015-04-14 14:43:31 +0200
committerJiří Klimeš <jklimes@redhat.com>2015-04-20 10:04:15 +0200
commit560e19514e89f8623f1132a86f620a56de448444 (patch)
tree6aa249f1b787ffc6c306df51d0de1fd0df340b5c
parent4c398ab03f70c9ba8b0fddccff4735053bd3df78 (diff)
downloadNetworkManager-560e19514e89f8623f1132a86f620a56de448444.tar.gz
core: set nm-plugin-missing device property
-rw-r--r--src/nm-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c
index c9f126215a..d4312a2084 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -2156,6 +2156,7 @@ platform_link_added (NMManager *self,
NMDevice *device = NULL;
GSList *iter;
GError *error = NULL;
+ gboolean nm_plugin_missing = FALSE;
g_return_if_fail (ifindex > 0);
@@ -2205,6 +2206,7 @@ platform_link_added (NMManager *self,
case NM_LINK_TYPE_WIFI:
nm_log_info (LOGD_HW, "(%s): '%s' plugin not available; creating generic device",
plink->name, plink->type_name);
+ nm_plugin_missing = TRUE;
/* fall through */
default:
device = nm_device_generic_new (plink);
@@ -2213,6 +2215,8 @@ platform_link_added (NMManager *self,
}
if (device) {
+ if (nm_plugin_missing)
+ nm_device_set_nm_plugin_missing (device, TRUE);
add_device (self, device, plink->type != NM_LINK_TYPE_LOOPBACK);
g_object_unref (device);
}