[PATCH v2 2/6] device: Return -EOPNOTSUPP if the device does not support scanning

patrik.flykt at linux.intel.com patrik.flykt at linux.intel.com
Wed Feb 1 06:43:54 PST 2012


From: Patrik Flykt <patrik.flykt at linux.intel.com>

---
 src/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
-- 
1.7.2.5




More information about the connman mailing list