summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index a6da2981..8f3fc6cf 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -456,7 +456,7 @@ static int throw_wifi_scan(struct connman_device *device,
DBG("device %p %p", device, wifi->interface);
if (wifi->tethering == TRUE)
- return 0;
+ return -EBUSY;
if (connman_device_get_scanning(device) == TRUE)
return -EALREADY;