Re: [PATCH 0/3] Ensure resolving and setting of proper ISO3166 code
Marcel Holtmann <[email protected]>
| Newsgroups | dev.linux.lists.connman |
|---|---|
| Message-ID | <[email protected]> |
Hi Jussi, > This patch set amends the functionality added in commit > bce73f1bdbf1aa6fc28d2f75b7780f4f1d8b0e3a by making sure that the ISO3166 code: > - is resolved in every case using both zone1970.tab and zone.tab > - gets set for the technology when it powers up > - and, is kept in sync between technology and device(s) > > Technology now stores the regulatory domain as an internal value which is > changed whenever a change is detected. Similarly each device ensures that the > value is being kept in sync with technology as it is set always when the device > gets powered. Technology gets the change notifification via Ofono or via the > Localtime setting watched by timezone. > > In order to always resolve, or attempt to resolve, the correct ISO3166 code in > every country sub-region both zone1970.tab and the deprecated zone.tab files > are used. Initially the ISO3166 code is retrieved from zone1970.tab but if not > found then the deprecated timezone map is used to get the correct iso ISO3166 > which is used as a search parameter to again search from the zone1970.tab but > this time searching from the string lists. This is needed in special cases, > such as Ålands and Pacific/Midway regions to name but a few, to have the > ISO3166 code set. Otherwise in these regions WiFi plugin, for instance, is > told to use the default region, resulting in some channels being inaccessible. > > > Jussi Laakkonen (3): > technology: Add global regdom and regdom getter > device: Setup regdom when powering up to maintain consistency > timezone: Fix resolving of proper ISO3166 code from tz data > > src/connman.h | 1 + > src/device.c | 11 +++ > src/technology.c | 27 +++++++ > src/timezone.c | 178 ++++++++++++++++++++++++++++++++++++++++------- > 4 files changed, 191 insertions(+), 26 deletions(-) all 3 patches have been applied. Regards Marcel