summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-01-15 01:38:00 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-02-02 18:45:36 +0100
commit4bbbe466e57df7fce82de4b38b29cd70d2a56ec3 (patch)
treeac797f2f2657fe0db39aee90ec54015550a5bb50
parent27724d297b0a11d12f46a121a1982617c9ccf7af (diff)
downloadconnman-4bbbe466e57df7fce82de4b38b29cd70d2a56ec3.tar.gz
connman-4bbbe466e57df7fce82de4b38b29cd70d2a56ec3.tar.bz2
connman-4bbbe466e57df7fce82de4b38b29cd70d2a56ec3.zip
gsupplicant: Add network channel setting
-rw-r--r--gsupplicant/gsupplicant.h1
-rw-r--r--gsupplicant/supplicant.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h
index 2ed8af66..0b956d7d 100644
--- a/gsupplicant/gsupplicant.h
+++ b/gsupplicant/gsupplicant.h
@@ -109,6 +109,7 @@ struct _GSupplicantSSID {
unsigned int ssid_len;
GSupplicantMode mode;
GSupplicantSecurity security;
+ unsigned int freq;
const char *eap;
const char *passphrase;
const char *identity;
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 48a176a0..52f33af3 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -2694,6 +2694,10 @@ static void interface_add_network_params(DBusMessageIter *iter, void *user_data)
supplicant_dbus_dict_append_basic(&dict, "scan_ssid",
DBUS_TYPE_UINT32, &scan_ssid);
+ if (ssid->freq)
+ supplicant_dbus_dict_append_basic(&dict, "frequency",
+ DBUS_TYPE_UINT32, &ssid->freq);
+
add_network_mode(&dict, ssid);
add_network_security(&dict, ssid);