summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-07-24 13:28:02 (GMT)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-07-24 13:50:33 (GMT)
commit70f1c941bd5790963cd56e3b3bd183432a2faf52 (patch)
tree1306656d4f4fd0eb459f9b14e0a46f539ac7e7ed
parent6d7e38423da380990cbb57cdbb09cb3e1cd2422e (diff)
downloadconnman-70f1c941bd5790963cd56e3b3bd183432a2faf52.zip
connman-70f1c941bd5790963cd56e3b3bd183432a2faf52.tar.gz
connman-70f1c941bd5790963cd56e3b3bd183432a2faf52.tar.bz2
wifi: Return -EBUSY when tethering
Fixes BMC#25561
-rw-r--r--plugins/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index a6da298..8f3fc6c 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;