summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMohamed Abbas <mohamed.abbas@intel.com>2011-09-13 09:55:13 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-09-13 10:53:00 +0200
commitf5af5715d88a0525e6bc6323d196bd78680e67d1 (patch)
tree7a2194af07467dc98d9a74376e5b2c3a665391e8 /plugins
parent434890b2816e24d5ec93ad1044fbf21eb6b10903 (diff)
downloadconnman-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 'plugins')
-rw-r--r--plugins/wifi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index db87f01d..7ab38c54 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -841,6 +841,9 @@ static void network_added(GSupplicantNetwork *supplicant_network)
calculate_strength(supplicant_network));
connman_network_set_bool(network, "WiFi.WPS", wps);
+ connman_network_set_frequency(network,
+ g_supplicant_network_get_frequency(supplicant_network));
+
connman_network_set_available(network, TRUE);
if (ssid != NULL)