Re: Latest Fedora 7 NM can't disable wireless



sorry attached the wrong patch.
this is the working one (also set the variable to true in this case)
diff -ru NetworkManager-0.6.5.orig/src/NetworkManager.c NetworkManager-0.6.5/src/NetworkManager.c
--- NetworkManager-0.6.5.orig/src/NetworkManager.c	2007-06-21 14:00:30.000000000 +0200
+++ NetworkManager-0.6.5/src/NetworkManager.c	2007-06-26 23:35:29.000000000 +0200
@@ -532,8 +532,11 @@
 
 	dbus_error_init (&error);
 	udis = libhal_find_device_by_capability (data->hal_ctx, "killswitch", &num_udis, &error);
-	if (!udis)
+
+	if (!udis || !num_udis) {
+		data->hw_rf_enabled = TRUE; 
 		return;
+	}
 
 	if (dbus_error_is_set (&error)) {
 		nm_warning("Could not find killswitch devices: %s", error.message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]