wifi: Add support for autoscan request
[framework/connectivity/connman.git] / src / device.c
index 4a80b76..ec732b8 100644 (file)
@@ -1045,6 +1045,35 @@ struct connman_device *__connman_device_find_device(
        return NULL;
 }
 
+/**
+ * connman_device_set_regdom
+ * @device: device structure
+ * @alpha2: string representing regulatory domain
+ *
+ * Set regulatory domain on device basis
+ */
+int connman_device_set_regdom(struct connman_device *device,
+                                               const char *alpha2)
+{
+       if (device->driver == NULL || device->driver->set_regdom == NULL)
+               return -ENOTSUP;
+
+       return device->driver->set_regdom(device, alpha2);
+}
+
+/**
+ * connman_device_regdom_notify
+ * @device: device structure
+ * @alpha2: string representing regulatory domain
+ *
+ * Notify on setting regulatory domain on device basis
+ */
+void connman_device_regdom_notify(struct connman_device *device,
+                                       int result, const char *alpha2)
+{
+       __connman_technology_notify_regdom_by_device(device, result, alpha2);
+}
+
 int __connman_device_request_scan(enum connman_service_type type)
 {
        connman_bool_t success = FALSE;
@@ -1143,7 +1172,7 @@ nodevice:
 
 list:
        blacklisted_interfaces =
-               connman_setting_get_string_list("BlacklistedInterfaces");
+               connman_setting_get_string_list("NetworkInterfaceBlacklist");
        if (blacklisted_interfaces == NULL)
                return FALSE;