wifi: Return -EBUSY when tethering
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 24 Jul 2012 13:28:02 +0000 (16:28 +0300)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 24 Jul 2012 13:50:33 +0000 (15:50 +0200)
Fixes BMC#25561

plugins/wifi.c

index a6da298..8f3fc6c 100644 (file)
@@ -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;