[PATCH 1/2] gsupplicant: adding support for background scanning parameters

Tomasz Bursztyka tomasz.bursztyka at linux.intel.com
Tue Feb 14 01:06:26 PST 2012


---
 gsupplicant/gsupplicant.h |    1 +
 gsupplicant/supplicant.c  |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h
index 8e96e02..03df6ca 100644
--- a/gsupplicant/gsupplicant.h
+++ b/gsupplicant/gsupplicant.h
@@ -129,6 +129,7 @@ struct _GSupplicantSSID {
 	const char *phase2_auth;
 	dbus_bool_t use_wps;
 	const char *pin_wps;
+	const char *bgscan;
 };
 
 typedef struct _GSupplicantSSID GSupplicantSSID;
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 3e61f74..5db1fcd 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -3142,6 +3142,10 @@ static void interface_add_network_params(DBusMessageIter *iter, void *user_data)
 		supplicant_dbus_dict_append_basic(&dict, "frequency",
 					 DBUS_TYPE_UINT32, &ssid->freq);
 
+	if (ssid->bgscan != NULL)
+		supplicant_dbus_dict_append_basic(&dict, "bgscan",
+					DBUS_TYPE_STRING, &ssid->bgscan);
+
 	add_network_mode(&dict, ssid);
 
 	add_network_security(&dict, ssid);
-- 
1.7.8.4




More information about the connman mailing list