summaryrefslogtreecommitdiffstats
path: root/components/onc
diff options
context:
space:
mode:
authorsamueltan <samueltan@chromium.org>2015-04-16 14:21:27 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-16 21:21:44 +0000
commitf8c7616547bed21a7296d8beb3962068aa301366 (patch)
treeaa3d2687042ebdda6175b85ee64420f9409327ca /components/onc
parent274eb3202c59d4842c191e924577e81f14044af5 (diff)
downloadchromium_src-f8c7616547bed21a7296d8beb3962068aa301366.zip
chromium_src-f8c7616547bed21a7296d8beb3962068aa301366.tar.gz
chromium_src-f8c7616547bed21a7296d8beb3962068aa301366.tar.bz2
Add an ONC property for setting per-network roam threshold
This CL maps an ONC property for setting per-network roam threshold. BUG=chrome-os-partner:38681 TEST=Expanded test ONC and JSON test sets Review URL: https://codereview.chromium.org/1087353002 Cr-Commit-Position: refs/heads/master@{#325515}
Diffstat (limited to 'components/onc')
-rw-r--r--components/onc/docs/onc_spec.html11
-rw-r--r--components/onc/onc_constants.cc1
-rw-r--r--components/onc/onc_constants.h1
3 files changed, 13 insertions, 0 deletions
diff --git a/components/onc/docs/onc_spec.html b/components/onc/docs/onc_spec.html
index 0c2aa63..e791588 100644
--- a/components/onc/docs/onc_spec.html
+++ b/components/onc/docs/onc_spec.html
@@ -724,6 +724,17 @@
40, 104, 128, or 232 bits.
</dd>
+ <dt class="field">RoamThreshold</dt>
+ <dd>
+ <span class="field_meta">
+ (optional)
+ <span class="type">integer</span>
+ </span>
+ The roam threshold for this network, which is the signal-to-noise value
+ (in dB) below which we will attempt to roam to a new network. If this
+ value is not set, the default value will be used.
+ </dd>
+
<dt class="field">Security</dt>
<dd>
<span class="field_meta">
diff --git a/components/onc/onc_constants.cc b/components/onc/onc_constants.cc
index 38fe90c..3007ac5 100644
--- a/components/onc/onc_constants.cc
+++ b/components/onc/onc_constants.cc
@@ -208,6 +208,7 @@ const char kFrequencyList[] = "FrequencyList";
const char kHexSSID[] = "HexSSID";
const char kHiddenSSID[] = "HiddenSSID";
const char kPassphrase[] = "Passphrase";
+const char kRoamThreshold[] = "RoamThreshold";
const char kSSID[] = "SSID";
const char kSecurity[] = "Security";
const char kSecurityNone[] = "None";
diff --git a/components/onc/onc_constants.h b/components/onc/onc_constants.h
index 06c7ad0..2ed2434 100644
--- a/components/onc/onc_constants.h
+++ b/components/onc/onc_constants.h
@@ -226,6 +226,7 @@ ONC_EXPORT extern const char kFrequencyList[];
ONC_EXPORT extern const char kHexSSID[];
ONC_EXPORT extern const char kHiddenSSID[];
ONC_EXPORT extern const char kPassphrase[];
+ONC_EXPORT extern const char kRoamThreshold[];
ONC_EXPORT extern const char kSSID[];
ONC_EXPORT extern const char kSecurity[];
ONC_EXPORT extern const char kSecurityNone[];