Hi Tomasz,
> include/device.h | 5 +++++
> src/device.c | 17 +++++++++++++++++
> 2 files changed, 22 insertions(+), 0 deletions(-)
>
> diff --git a/include/device.h b/include/device.h
> index f787cf4..f4e802e 100644
> --- a/include/device.h
> +++ b/include/device.h
> @@ -108,6 +108,9 @@ void connman_device_unregister(struct connman_device
> *device);
> void *connman_device_get_data(struct connman_device *device);
> void connman_device_set_data(struct connman_device *device, void *data);
>
> +int connman_device_set_regdom(struct connman_device *device,
> + const char *alpha2);
> +
> struct connman_device_driver {
> const char *name;
> enum connman_device_type type;
> @@ -122,6 +125,8 @@ struct connman_device_driver {
> const char *ssid, unsigned int ssid_len,
> const char *identity, const char* passphrase,
> void *user_data);
> + int (*set_regdom) (struct connman_device *device,
> + const char *alpha2);
> };
>
> int connman_device_driver_register(struct connman_device_driver *driver);
> diff --git a/src/device.c b/src/device.c
> index f2f3ce5..065262d 100644
> --- a/src/device.c
> +++ b/src/device.c
> @@ -1045,6 +1045,23 @@ 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);
> +}
> +
> +
remove the second empty line.
Regards
Marcel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman