2007-08-14 Dan Williams <dcbw@redhat.com>

* src/NetworkManagerUtils.c
		- (nm_utils_escape_ssid): add "ignore_trailing_null" parameter which
			ignores trailing nulls in the SSID to work around mismatches in
			expectations between WEXT and what the info-daemon passes back.  The
			info-daemon would pass back the correct length, but due to the
			ESSID length issues with WEXT 22 and greater and wpa_supplicant,
			the device would always have an SSID + 1 depending on what versions
			of wpa_supplicant, the kernel, and NM you have.  This was most often
			visible by just quitting the applet and relaunching, which caused
			NM to reassociated to the same network over again when reloading
			the save networks.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2685 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2007-08-15 01:56:02 +00:00
parent 66c11dd988
commit ccb13f0bdd
5 changed files with 29 additions and 13 deletions

View File

@@ -322,7 +322,7 @@ nm_policy_device_change_check (gpointer user_data)
* link to the old access point. We don't switch away
* from Ad-Hoc APs either.
*/
gboolean same_ssid = nm_utils_same_ssid (old_ssid, new_ssid);
gboolean same_ssid = nm_utils_same_ssid (old_ssid, new_ssid, TRUE);
/* If the "best" AP's SSID is the same as the current activation
* request's SSID, but the current activation request isn't