2005-06-19 Dan Williams <dcbw@redhat.com>

* src/NetworkManagerDevice.c
        - (nm_device_wireless_process_scan_results): scan every 20s when
            disconnected and scanning is ALWAYS_SCAN or WHEN_UNASSOCIATED


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@722 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2005-06-19 19:15:26 +00:00
parent e3da8cdab7
commit 4e5b7f341e
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-06-19 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.c
- (nm_device_wireless_process_scan_results): scan every 20s when
disconnected and scanning is ALWAYS_SCAN or WHEN_UNASSOCIATED
2005-06-19 Dan Williams <dcbw@redhat.com>
* WEXT_DEBUG->IOCTL_DEBUG, extend checking to all ioctl() calls

View file

@ -3873,8 +3873,8 @@ static gboolean nm_device_wireless_process_scan_results (gpointer user_data)
g_slist_free (outdated_list);
}
/* If the list changed, decrease our wireless scanning interval */
if (list_changed)
/* If the list changed or we are unassociated, decrease our wireless scanning interval */
if (list_changed || !nm_device_is_activated (dev))
dev->options.wireless.scan_interval = 20;
else
dev->options.wireless.scan_interval = MIN (60, dev->options.wireless.scan_interval + 10);