summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-02-14 11:06:27 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-24 23:29:47 +0100
commit631bcaaed6848e45b182703979550ca2b5b04ffc (patch)
treef66acf269388b6966106c32007772c493cabd921 /plugins/wifi.c
parentb5200f239dd56f76415cdb71e4d52586db938702 (diff)
downloadconnman-631bcaaed6848e45b182703979550ca2b5b04ffc.tar.gz
connman-631bcaaed6848e45b182703979550ca2b5b04ffc.tar.bz2
connman-631bcaaed6848e45b182703979550ca2b5b04ffc.zip
wifi: Add support for default background scanning parameters
Diffstat (limited to 'plugins/wifi.c')
-rw-r--r--plugins/wifi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index f89222da..912e1eed 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -57,6 +57,8 @@
#define INACTIVE_TIMEOUT 12 /* in seconds */
#define MAXIMUM_RETRIES 4
+#define BGSCAN_DEFAULT "simple:30:-45:300"
+
struct connman_technology *wifi_technology = NULL;
struct hidden_params {
@@ -733,6 +735,7 @@ static void ssid_init(GSupplicantSSID *ssid, struct connman_network *network)
ssid->use_wps = connman_network_get_bool(network, "WiFi.UseWPS");
ssid->pin_wps = connman_network_get_string(network, "WiFi.PinWPS");
+ ssid->bgscan = BGSCAN_DEFAULT;
}
static int network_connect(struct connman_network *network)