diff options
author | Mohamed Abbas <mohamed.abbas@intel.com> | 2011-09-13 09:55:13 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-09-13 10:53:00 +0200 |
commit | f5af5715d88a0525e6bc6323d196bd78680e67d1 (patch) | |
tree | 7a2194af07467dc98d9a74376e5b2c3a665391e8 /src/service.c | |
parent | 434890b2816e24d5ec93ad1044fbf21eb6b10903 (diff) | |
download | connman-f5af5715d88a0525e6bc6323d196bd78680e67d1.tar.gz connman-f5af5715d88a0525e6bc6323d196bd78680e67d1.tar.bz2 connman-f5af5715d88a0525e6bc6323d196bd78680e67d1.zip |
service: Add frequency support to service
Get the frequncy of gsupplicant network on connman network
creation, and always save the frequency of the wifi service.
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 23916f74..a6c764ca 100644 --- a/src/service.c +++ b/src/service.c @@ -469,6 +469,7 @@ static int service_save(struct connman_service *service) { GKeyFile *keyfile; gchar *str; + guint freq; const char *cst_str = NULL; int err = 0; @@ -518,6 +519,10 @@ static int service_save(struct connman_service *service) g_string_free(str, TRUE); } + + freq = connman_network_get_frequency(service->network); + g_key_file_set_integer(keyfile, service->identifier, + "Frequency", freq); } /* fall through */ |