mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 06:38:11 +02:00
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:
parent
d4980ff5ec
commit
a4c4817481
2 changed files with 12 additions and 0 deletions
|
|
@ -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>
|
2008-01-11 Dan Williams <dcbw@redhat.com>
|
||||||
|
|
||||||
* src/NetworkManagerAP.c
|
* src/NetworkManagerAP.c
|
||||||
|
|
|
||||||
|
|
@ -2936,10 +2936,16 @@ activation_success_handler (NMDevice *dev)
|
||||||
tmp_ap = get_active_ap (self, ap, TRUE);
|
tmp_ap = get_active_ap (self, ap, TRUE);
|
||||||
if (tmp_ap) {
|
if (tmp_ap) {
|
||||||
NMActRequest *req = nm_device_get_act_request (NM_DEVICE (self));
|
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
|
/* Found a better match in the scan list than the fake AP. Use it
|
||||||
* instead.
|
* 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));
|
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);
|
self->priv->ap_list = g_slist_remove (self->priv->ap_list, ap);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue