Currently, each time ConnMan removes wpa_s interfaces at runtime the
configuration indicated in that file is lost. It was because wpa_s did
not expose the configuration file path in order to allow ConnMan to
recreate interfaces with the same configuration they were initially
created. In order to solve this we proposed a patch to wpa_s community
(b44d9c760fda85797187f1d0e97be47ed0182ed6), that patch aims to expose
the configuration file path as an D-Bus interface property. It was
recently applied and now ConnMan has the possibility to recreate
interfaces with the correct configuration file path, to solve the
following issues, (If someone knows other cases please let us know):
1. Enable/Disable WiFi: All wpa_s interfaces are removed, and config
information is lost.
2. Tethering: When enabling, the selected wpa_s interface is removed
and recreated with the bridge "tether". Also when disabling, again the
tethering wpa_s interface is removed and recreated without bridge.
After the tethering enable the config information is lost.
3. ConnMan turns off: All wpa_s interfaces are removed, and config
information is lost.
We are working on a patch to use this new property in order to not
lose the wpa_s interface configuration. To do this, we definitely need
to store this value before removing the interface and use it later
when recreating. We would like to discuss here on how and where store
this information in ConnMan:
1. Enable/Disable WiFi: Neither wifi nor device structs are removed,
so the path can be easily stored in any of these two structs.
2. Tethering: Both wifi and device structs are removed. We think that
could be a good idea to use a temporal struct inside Technology's
struct where we store the interface name or index and the config file
path of the tethering interface when tethering is disabling and then
pass this info again to wifi plugin when interface is re-detected and
will be re-created. There should not be problems because there is only
one tethering interface at a time per technology: anyone can confirm?
Please any feedback is appreciated.
3. ConnMan turns off: Due to ConnMan removes all wpa_s intefaces when
turning off, wpa_s remains almost useless and wpa_s cannot be used
neither from wpa_cli, because it will not communicate to wpa_s if it
has no interface registered. One idea could be then to close also
Please everybody feel free to comment and make suggestions.
Show replies by thread