View | Details | Raw Unified | Return to bug 585802
Collapse All | Expand All

(-)a/src/supplicant-manager/nm-supplicant-interface.c (-1 / +5 lines)
Lines 852-860 nm_supplicant_interface_add_to_supplicant (NMSupplicantInterface * self, Link Here
852
		GHashTable *hash = g_hash_table_new (g_str_hash, g_str_equal);
852
		GHashTable *hash = g_hash_table_new (g_str_hash, g_str_equal);
853
		GValue *driver;
853
		GValue *driver;
854
854
855
		gchar *wifi_driver = g_strdup (g_getenv ("WIRELESS_WPA_DRIVER"));
856
		if (wifi_driver == NULL) 
857
			wifi_driver = g_strdup ("wext");
855
		driver = g_new0 (GValue, 1);
858
		driver = g_new0 (GValue, 1);
856
		g_value_init (driver, G_TYPE_STRING);
859
		g_value_init (driver, G_TYPE_STRING);
857
		g_value_set_string (driver, priv->is_wireless ? "wext" : "wired");
860
		g_value_set_string (driver, priv->is_wireless ? wifi_driver : "wired");
858
		g_hash_table_insert (hash, "driver", driver);
861
		g_hash_table_insert (hash, "driver", driver);
859
862
860
		call = dbus_g_proxy_begin_call (proxy, "addInterface",
863
		call = dbus_g_proxy_begin_call (proxy, "addInterface",
Lines 867-872 nm_supplicant_interface_add_to_supplicant (NMSupplicantInterface * self, Link Here
867
870
868
		g_value_unset (driver);
871
		g_value_unset (driver);
869
		g_free (driver);
872
		g_free (driver);
873
		g_free (wifi_driver);
870
		g_hash_table_destroy (hash);
874
		g_hash_table_destroy (hash);
871
	}
875
	}
872
876

Return to bug 585802