projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44ed8df
)
Don't attempt scanning if device is switched off
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 4 Jan 2009 19:52:07 +0000
(20:52 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 4 Jan 2009 19:52:07 +0000
(20:52 +0100)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
e63b8d2
..
f481175
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-393,6
+393,9
@@
static DBusMessage *propose_scan(DBusConnection *conn,
if (!device->driver || !device->driver->scan)
return __connman_error_not_supported(msg);
+ if (device->powered == FALSE)
+ return __connman_error_failed(msg);
+
err = device->driver->scan(device);
if (err < 0)
return __connman_error_failed(msg);