From 70f1c941bd5790963cd56e3b3bd183432a2faf52 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 24 Jul 2012 16:28:02 +0300 Subject: [PATCH] wifi: Return -EBUSY when tethering Fixes BMC#25561 --- plugins/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4