Chromium Code Reviews| Index: chromeos/network/onc/onc_translator_onc_to_shill.cc |
| diff --git a/chromeos/network/onc/onc_translator_onc_to_shill.cc b/chromeos/network/onc/onc_translator_onc_to_shill.cc |
| index f399d8b48f755fdc182de0b14a2199cbf1de537d..28edfe1afe7c48fd19e7730c549c47df4124198e 100644 |
| --- a/chromeos/network/onc/onc_translator_onc_to_shill.cc |
| +++ b/chromeos/network/onc/onc_translator_onc_to_shill.cc |
| @@ -29,6 +29,8 @@ namespace onc { |
| namespace { |
| +const char kKeyManagementIEEE8021X[] = "IEEE8021X"; |
|
stevenjb
2015/11/04 18:36:00
nit: Add a TODO here to use the value in service_c
|
| + |
| scoped_ptr<base::StringValue> ConvertValueToString(const base::Value& value) { |
| std::string str; |
| if (!value.GetAsString(&str)) |
| @@ -220,6 +222,10 @@ void LocalTranslator::TranslateWiFi() { |
| &security)) { |
| TranslateWithTableAndSet(security, kWiFiSecurityTable, |
| shill::kSecurityClassProperty); |
| + if (security == ::onc::wifi::kWEP_8021X) { |
| + shill_dictionary_->SetStringWithoutPathExpansion( |
| + shill::kEapKeyMgmtProperty, kKeyManagementIEEE8021X); |
| + } |
| } |
| // We currently only support managed and no adhoc networks. |