2008-01-12 Dan Williams <dcbw@redhat.com>

* src/nm-device-802-11-wireless.c
		- (activation_success_handler): if a match was found in the scan list
			and that match is a hidden AP, update that AP's SSID



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3236 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-01-11 22:09:21 +00:00
parent d4980ff5ec
commit a4c4817481
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-01-12 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
- (activation_success_handler): if a match was found in the scan list
and that match is a hidden AP, update that AP's SSID
2008-01-11 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c

View file

@ -2936,10 +2936,16 @@ activation_success_handler (NMDevice *dev)
tmp_ap = get_active_ap (self, ap, TRUE);
if (tmp_ap) {
NMActRequest *req = nm_device_get_act_request (NM_DEVICE (self));
const GByteArray *ssid = nm_ap_get_ssid (tmp_ap);
/* Found a better match in the scan list than the fake AP. Use it
* instead.
*/
/* If the better match was a hidden AP, update it's SSID */
if (!ssid || nm_utils_is_empty_ssid (ssid->data, ssid->len))
nm_ap_set_ssid (tmp_ap, nm_ap_get_ssid (ap));
nm_act_request_set_specific_object (req, nm_ap_get_dbus_path (tmp_ap));
self->priv->ap_list = g_slist_remove (self->priv->ap_list, ap);