summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-15 14:13:52 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-18 11:00:27 +0300
commita96a316731f4728cc42e119b43e938de1a6514f0 (patch)
tree235d1fb3396af1e1e2f201197177401d018f6aab /plugins/wifi.c
parentb76a52923d8155e45fb544e701f7328cbb8ab832 (diff)
downloadconnman-a96a316731f4728cc42e119b43e938de1a6514f0.tar.gz
connman-a96a316731f4728cc42e119b43e938de1a6514f0.tar.bz2
connman-a96a316731f4728cc42e119b43e938de1a6514f0.zip
wifi: Do a hidden WiFi network scan also for user scans
Rename the callback function since it's not used only for autoscan.
Diffstat (limited to 'plugins/wifi.c')
-rw-r--r--plugins/wifi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index f9ca1b57..205fb956 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -454,7 +454,7 @@ static void scan_callback(int result, GSupplicantInterface *interface,
connman_device_unref(device);
}
-static void autoscan_scan_callback(int result,
+static void scan_callback_hidden(int result,
GSupplicantInterface *interface, void *user_data)
{
struct connman_device *device = user_data;
@@ -514,7 +514,7 @@ static gboolean autoscan_timeout(gpointer data)
if (autoscan->interval >= autoscan->limit)
interval = autoscan->limit;
- throw_wifi_scan(wifi->device, autoscan_scan_callback);
+ throw_wifi_scan(wifi->device, scan_callback_hidden);
set_interval:
DBG("interval %d", interval);
@@ -809,7 +809,7 @@ static int wifi_scan(struct connman_device *device)
{
reset_autoscan(device);
- return throw_wifi_scan(device, scan_callback);
+ return throw_wifi_scan(device, scan_callback_hidden);
}
static int wifi_scan_fast(struct connman_device *device)