summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-02-14 11:06:26 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-24 23:29:47 +0100
commitb5200f239dd56f76415cdb71e4d52586db938702 (patch)
tree0f1f5763d09729782b393c80f8ec1f815bab163b /gsupplicant
parentb50839b1bbbb53a91fc32f35d4289560744e3461 (diff)
downloadconnman-b5200f239dd56f76415cdb71e4d52586db938702.tar.gz
connman-b5200f239dd56f76415cdb71e4d52586db938702.tar.bz2
connman-b5200f239dd56f76415cdb71e4d52586db938702.zip
gsupplicant: Add support for background scanning parameters
Diffstat (limited to 'gsupplicant')
-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 8e96e02c..03df6ca8 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 3e61f741..5db1fcdf 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);