projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caa6922
)
Set device scanning state to false from the scan callback
author
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 27 Sep 2010 22:59:52 +0000
(
00:59
+0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 27 Sep 2010 22:59:52 +0000
(
00:59
+0200)
If scan fails, the scan callback is called.
When scan results are available, it is called as well.
In both cases, the device is no longer scanning when it's called.
plugins/wifi.c
patch
|
blob
|
history
diff --git
a/plugins/wifi.c
b/plugins/wifi.c
index
a5c10db
..
8dafe9f
100644
(file)
--- a/
plugins/wifi.c
+++ b/
plugins/wifi.c
@@
-231,12
+231,7
@@
static void scan_callback(int result, GSupplicantInterface *interface,
DBG("result %d", result);
- if (result < 0) {
- connman_device_set_scanning(device, FALSE);
- return;
- }
-
- connman_device_set_scanning(device, TRUE);
+ connman_device_set_scanning(device, FALSE);
}
static int wifi_scan(struct connman_device *device)