summaryrefslogtreecommitdiffstats
path: root/components/onc
diff options
context:
space:
mode:
authorstevenjb <stevenjb@chromium.org>2015-03-26 10:23:14 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-26 17:23:54 +0000
commit634eb9966e649e0bdf79901078befac59a4b937e (patch)
treef389fbb427a7167d57fed3d86cf08bb4de1e351f /components/onc
parent751416e1cab41302b8fecf1512764e266314cf8d (diff)
downloadchromium_src-634eb9966e649e0bdf79901078befac59a4b937e.zip
chromium_src-634eb9966e649e0bdf79901078befac59a4b937e.tar.gz
chromium_src-634eb9966e649e0bdf79901078befac59a4b937e.tar.bz2
Add NetworkTechnology types to ONC
This also adds the network technology 1x badge to cr_network_icon BUG=470282 Review URL: https://codereview.chromium.org/1033843003 Cr-Commit-Position: refs/heads/master@{#322409}
Diffstat (limited to 'components/onc')
-rw-r--r--components/onc/docs/onc_spec.html27
-rw-r--r--components/onc/onc_constants.cc10
-rw-r--r--components/onc/onc_constants.h10
3 files changed, 36 insertions, 11 deletions
diff --git a/components/onc/docs/onc_spec.html b/components/onc/docs/onc_spec.html
index 7c6c553..a0b89ab 100644
--- a/components/onc/docs/onc_spec.html
+++ b/components/onc/docs/onc_spec.html
@@ -20,7 +20,7 @@
<h1>Objective</h1>
<p>
We would like to create a simple, open, but complete format to describe
- multiple network configurations for Wi-Fi, Ethernet, Cellular,
+ multiple network configurations for WiFi, Ethernet, Cellular,
Bluetooth/WiFi-Direct, and VPN connections in a single file format, in order
to simplify and automate network configuration for users.
</p>
@@ -33,7 +33,7 @@
is a problem shared across desktop, laptop, tablet, and phone users of all
operating system types. It is exacerbated in business and schools which
often have complex network configurations (VPNs and 802.1X networking) that
- change often and have many connected devices. Configuration of Wi-Fi is
+ change often and have many connected devices. Configuration of WiFi is
still done manually, often by administrators physically standing next to
users working on devices. Certificate distribution is particularly painful
which often results in admins instead using passphrases to protect networks
@@ -202,7 +202,7 @@
(optional)
<span class="type">array of NetworkConfiguration</span>
</span>
- Describes Wi-Fi, Ethernet, VPN, and wireless connections.
+ Describes WiFi, Ethernet, VPN, and wireless connections.
</dd>
<dt class="field">Certificates</dt>
@@ -374,7 +374,7 @@
<span class="value">WiFi</span>, otherwise ignored)
<span class="type">WiFi</span>
</span>
- Wi-Fi settings.
+ WiFi settings.
</dd>
<dt class="field">WiMAX</dt>
@@ -649,9 +649,9 @@
</section>
<section>
- <h1>Wi-Fi networks</h1>
+ <h1>WiFi networks</h1>
<p>
- For Wi-Fi connections, <span class="field">Type</span> must be set to
+ For WiFi connections, <span class="field">Type</span> must be set to
<span class="value">WiFi</span> and the
field <span class="field">WiFi</span> must be set to an object of
type <span class="type">WiFi</span> containing the following fields:
@@ -2304,11 +2304,16 @@
network technology currently in use.
<span class="rule"><span class="rule_id"></span>
Allowed values are
- <span class="value">1xRTT</span>, <span class="value">EVDO</span>,
- <span class="value">GPRS</span>, <span class="value">EDGE</span>,
+ <span class="value">CDMA1XRTT</span>,
+ <span class="value">EDGE</span>,
+ <span class="value">EVDO</span>,
+ <span class="value">GPRS</span>,
+ <span class="value">GSM</span>,
+ <span class="value">HSPA</span>,
+ <span class="value">HSPAPlus</span>,
+ <span class="value">LTE</span>,
+ <span class="value">LTEAdvanced</span>
<span class="value">UMTS</span>,
- <span class="value">HSPA</span>, <span class="value">HSPA+</span>,
- <span class="value">LTE</span>, <span class="value">LTE Advanced</span>
</span>
</dd>
@@ -2547,7 +2552,7 @@
<section>
<h1>Bluetooth / WiFi Direct Networks</h1>
<p>
- This format will eventually also cover configuration of Bluetooth and Wi-Fi
+ This format will eventually also cover configuration of Bluetooth and WiFi
Direct network technologies, however they are currently not supported.
</p>
</section>
diff --git a/components/onc/onc_constants.cc b/components/onc/onc_constants.cc
index 8945059..41510b5 100644
--- a/components/onc/onc_constants.cc
+++ b/components/onc/onc_constants.cc
@@ -124,6 +124,16 @@ const char kSIMLockStatus[] = "SIMLockStatus";
const char kSIMPresent[] = "SIMPresent";
const char kSupportedCarriers[] = "SupportedCarriers";
const char kSupportNetworkScan[] = "SupportNetworkScan";
+const char kTechnologyCdma1Xrtt[] = "CDMA1XRTT";
+const char kTechnologyEdge[] = "EDGE";
+const char kTechnologyEvdo[] = "EVDO";
+const char kTechnologyGprs[] = "GPRS";
+const char kTechnologyGsm[] = "GSM";
+const char kTechnologyHspa[] = "HSPA";
+const char kTechnologyHspaPlus[] = "HSPAPlus";
+const char kTechnologyLte[] = "LTE";
+const char kTechnologyLteAdvanced[] = "LTEAdvanced";
+const char kTechnologyUmts[] = "UMTS";
} // namespace cellular
namespace cellular_provider {
diff --git a/components/onc/onc_constants.h b/components/onc/onc_constants.h
index e3b6594..779003d 100644
--- a/components/onc/onc_constants.h
+++ b/components/onc/onc_constants.h
@@ -142,6 +142,16 @@ ONC_EXPORT extern const char kSIMLockStatus[];
ONC_EXPORT extern const char kSIMPresent[];
ONC_EXPORT extern const char kSupportedCarriers[];
ONC_EXPORT extern const char kSupportNetworkScan[];
+ONC_EXPORT extern const char kTechnologyCdma1Xrtt[];
+ONC_EXPORT extern const char kTechnologyEdge[];
+ONC_EXPORT extern const char kTechnologyEvdo[];
+ONC_EXPORT extern const char kTechnologyGprs[];
+ONC_EXPORT extern const char kTechnologyGsm[];
+ONC_EXPORT extern const char kTechnologyHspa[];
+ONC_EXPORT extern const char kTechnologyHspaPlus[];
+ONC_EXPORT extern const char kTechnologyLte[];
+ONC_EXPORT extern const char kTechnologyLteAdvanced[];
+ONC_EXPORT extern const char kTechnologyUmts[];
} // namespace cellular
namespace cellular_provider {