[PATCH 0/4] Set the country code for WiFi

jmassot at aldebaran-robotics.com jmassot at aldebaran-robotics.com
Fri Feb 10 01:47:04 PST 2012

From: Julien Massot <jmassot at aldebaran-robotics.com>

The wpa_supplicant dbus API have changed in the version 1.0, the patch 1 and 2
resolve this issue. The patch 1 rename the function g_supplicant_set_country into,
g_supplicant_interface_set_country and take a gsupplicant interface as first argument.
The patch 2 adapt the tech_set_regdom of the wifi plugin to set the country on all registered gsupplicant interfaces.
The patch 3 create a new key for the regulatory domain in connman settings,
it's an alternate method than ofono to set the domain without 3g.
The patch 4 set the regulatory domain of the wifi device on interface_create_callback.

Julien Massot (4):
  gsupplicant: add interface parameter to set the country
  wifi: set the country code for each interface
  main: get the country code from connman.conf
  wifi: set the country code from connman setting

 gsupplicant/gsupplicant.h |    8 +++---
 gsupplicant/supplicant.c  |    8 ++++--
 include/setting.h         |    1 +
 plugins/wifi.c            |   55 ++++++++++++++++++++++++++++++++++++--------
 src/main.c                |   18 ++++++++++++++
 5 files changed, 73 insertions(+), 17 deletions(-)


More information about the connman mailing list