From: Patrik Flykt Date: Wed, 1 Feb 2012 14:43:54 +0000 (+0200) Subject: device: Return -EOPNOTSUPP if the device does not support scanning X-Git-Tag: 2.0_alpha~637 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9117fc54fe370eac7f575f0fee44e469ad897a44;p=framework%2Fconnectivity%2Fconnman.git device: Return -EOPNOTSUPP if the device does not support scanning --- diff --git a/src/device.c b/src/device.c index 30b7589..55a6d8e 100644 --- a/src/device.c +++ b/src/device.c @@ -1171,7 +1171,7 @@ int __connman_device_request_scan(enum connman_service_type type) case CONNMAN_SERVICE_TYPE_GPS: case CONNMAN_SERVICE_TYPE_VPN: case CONNMAN_SERVICE_TYPE_GADGET: - return 0; + return -EOPNOTSUPP; case CONNMAN_SERVICE_TYPE_WIFI: case CONNMAN_SERVICE_TYPE_WIMAX: break;