NetworkManager r4244 - in trunk: . src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r4244 - in trunk: . src
- Date: Sun, 2 Nov 2008 22:56:10 +0000 (UTC)
Author: dcbw
Date: Sun Nov 2 22:56:10 2008
New Revision: 4244
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4244&view=rev
Log:
2008-11-02 Dan Williams <dcbw redhat com>
* src/NetworkManagerAP.c
- (nm_ap_new_fake_from_connection): treat only lack of a wireless security
setting as unencrypted; fixes a bug where NM wouldn't ask for new
secrets when connecting to an encrypted network failed
Modified:
trunk/ChangeLog
trunk/src/NetworkManagerAP.c
Modified: trunk/src/NetworkManagerAP.c
==============================================================================
--- trunk/src/NetworkManagerAP.c (original)
+++ trunk/src/NetworkManagerAP.c Sun Nov 2 22:56:10 2008
@@ -598,6 +598,7 @@
s_wireless_sec = NM_SETTING_WIRELESS_SECURITY (nm_connection_get_setting (connection,
NM_TYPE_SETTING_WIRELESS_SECURITY));
+ /* Assume presence of a security setting means the AP is encrypted */
if (!s_wireless_sec)
goto done;
@@ -605,15 +606,9 @@
key_mgmt = nm_setting_wireless_security_get_key_mgmt (s_wireless_sec);
- /* Static WEP or no security */
+ /* Static WEP */
if (!strcmp (key_mgmt, "none")) {
- /* static wep? */
- if ( nm_setting_wireless_security_get_wep_key (s_wireless_sec, 0)
- || nm_setting_wireless_security_get_wep_key (s_wireless_sec, 1)
- || nm_setting_wireless_security_get_wep_key (s_wireless_sec, 2)
- || nm_setting_wireless_security_get_wep_key (s_wireless_sec, 3))
- nm_ap_set_flags (ap, flags | NM_802_11_AP_FLAGS_PRIVACY);
-
+ nm_ap_set_flags (ap, flags | NM_802_11_AP_FLAGS_PRIVACY);
goto done;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]