Hi Tomasz,

> This specific file, installed in /etc/connman/, can be used to set
> specific values related to wifi plugin only.
> ---
> Makefile.plugins  |  1 +
> plugins/wifi.conf | 16 ++++++++++++++++
> 2 files changed, 17 insertions(+)
> create mode 100644 plugins/wifi.conf
> 
> diff --git a/Makefile.plugins b/Makefile.plugins
> index e90ad19..140332b 100644
> --- a/Makefile.plugins
> +++ b/Makefile.plugins
> @@ -24,6 +24,7 @@ gsupplicant_sources = gsupplicant/gsupplicant.h 
> gsupplicant/dbus.h \
> if WIFI
> builtin_modules += wifi
> builtin_sources += plugins/wifi.c $(gsupplicant_sources)
> +EXTRA_DIST += plugins/wifi.conf
> endif
> 
> if BLUETOOTH
> diff --git a/plugins/wifi.conf b/plugins/wifi.conf
> new file mode 100644
> index 0000000..0072443
> --- /dev/null
> +++ b/plugins/wifi.conf
> @@ -0,0 +1,16 @@
> +# This is an EXPERIMENTAL configuration file
> +
> +[General]
> +
> +# Set the P2P primary device type. It follows such format:
> +# <categ><OUI><subcateg>
> +# Where all elements are expressed in hexadecimal.
> +# Category and subcategory are in network byte order.
> +# For the OUI, follow the WSC specification.
> +# Default setting is set to category comupter, and sub-category
> +# PC.
> +PrimaryDeviceType = 01000050F2040100
> +
> +# Set the P2P secondary device types. Same format as PrimaryDeviceType
> +# but you can pile a maximum of 5 types here separated by a space.
> +# SecondaryDeviceTypes =

why would we do such a thing? Integrate with systemd-hostnamed to read a proper 
value and follow changes from systemd-hostnamed via hostnamectl utility. BlueZ 
is happily doing it this way and so can ConnMan.

Regards

Marcel

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to