Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "shill/wimax_service.h" |
| 6 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 7 | #include <algorithm> |
| 8 | |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 9 | #include <base/string_number_conversions.h> |
Darin Petkov | e4b2702 | 2012-05-16 13:28:50 +0200 | [diff] [blame] | 10 | #include <base/string_util.h> |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 11 | #include <base/stringprintf.h> |
Darin Petkov | e4b2702 | 2012-05-16 13:28:50 +0200 | [diff] [blame] | 12 | #include <chromeos/dbus/service_constants.h> |
| 13 | |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 14 | #include "shill/dbus_adaptor.h" |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 15 | #include "shill/eap_credentials.h" |
Darin Petkov | 25665aa | 2012-05-21 14:08:12 +0200 | [diff] [blame] | 16 | #include "shill/key_value_store.h" |
Christopher Wiley | b691efd | 2012-08-09 13:51:51 -0700 | [diff] [blame] | 17 | #include "shill/logging.h" |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 18 | #include "shill/manager.h" |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 19 | #include "shill/store_interface.h" |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 20 | #include "shill/technology.h" |
| 21 | #include "shill/wimax.h" |
| 22 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 23 | using std::replace_if; |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 24 | using std::string; |
| 25 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 26 | namespace shill { |
| 27 | |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 28 | const char WiMaxService::kStorageNetworkId[] = "NetworkId"; |
| 29 | const char WiMaxService::kNetworkIdProperty[] = "NetworkId"; |
Darin Petkov | 6b9b2e1 | 2012-07-10 15:51:42 +0200 | [diff] [blame] | 30 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 31 | WiMaxService::WiMaxService(ControlInterface *control, |
| 32 | EventDispatcher *dispatcher, |
| 33 | Metrics *metrics, |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 34 | Manager *manager) |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 35 | : Service(control, dispatcher, metrics, manager, Technology::kWiMax), |
Darin Petkov | c1e5273 | 2012-05-25 15:23:45 +0200 | [diff] [blame] | 36 | need_passphrase_(true), |
| 37 | is_default_(false) { |
Ben Chan | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 38 | PropertyStore *store = this->mutable_store(); |
| 39 | // TODO(benchan): Support networks that require no user credentials or |
| 40 | // implicitly defined credentials. |
Ben Chan | 4276cca | 2013-09-20 10:07:04 -0700 | [diff] [blame] | 41 | store->RegisterBool(kPassphraseRequiredProperty, &need_passphrase_); |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 42 | store->RegisterConstString(kNetworkIdProperty, &network_id_); |
| 43 | |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 44 | SetEapCredentials(new EapCredentials()); |
| 45 | |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 46 | IgnoreParameterForConfigure(kNetworkIdProperty); |
Darin Petkov | c1e5273 | 2012-05-25 15:23:45 +0200 | [diff] [blame] | 47 | |
| 48 | // Initialize a default storage identifier based on the service's unique |
| 49 | // name. The identifier most likely needs to be reinitialized by the caller |
| 50 | // when its components have been set. |
| 51 | InitStorageIdentifier(); |
Ben Chan | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 52 | } |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 53 | |
| 54 | WiMaxService::~WiMaxService() {} |
| 55 | |
Darin Petkov | 25665aa | 2012-05-21 14:08:12 +0200 | [diff] [blame] | 56 | void WiMaxService::GetConnectParameters(KeyValueStore *parameters) const { |
Ben Chan | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 57 | CHECK(parameters); |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 58 | eap()->PopulateWiMaxProperties(parameters); |
Ben Chan | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 59 | } |
| 60 | |
Darin Petkov | 1e52a1b | 2012-05-21 10:35:56 +0200 | [diff] [blame] | 61 | RpcIdentifier WiMaxService::GetNetworkObjectPath() const { |
Ben Chan | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 62 | CHECK(proxy_.get()); |
Darin Petkov | 1e52a1b | 2012-05-21 10:35:56 +0200 | [diff] [blame] | 63 | return proxy_->path(); |
Ben Chan | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 64 | } |
| 65 | |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 66 | void WiMaxService::Stop() { |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 67 | if (!IsStarted()) { |
| 68 | return; |
| 69 | } |
| 70 | LOG(INFO) << "Stopping WiMAX service: " << GetStorageIdentifier(); |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 71 | proxy_.reset(); |
| 72 | SetStrength(0); |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 73 | if (device_) { |
| 74 | device_->OnServiceStopped(this); |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 75 | SetDevice(NULL); |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 76 | } |
Darin Petkov | c1e5273 | 2012-05-25 15:23:45 +0200 | [diff] [blame] | 77 | UpdateConnectable(); |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 78 | } |
| 79 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 80 | bool WiMaxService::Start(WiMaxNetworkProxyInterface *proxy) { |
| 81 | SLOG(WiMax, 2) << __func__; |
Darin Petkov | 1e52a1b | 2012-05-21 10:35:56 +0200 | [diff] [blame] | 82 | CHECK(proxy); |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 83 | scoped_ptr<WiMaxNetworkProxyInterface> local_proxy(proxy); |
| 84 | if (IsStarted()) { |
| 85 | return true; |
| 86 | } |
| 87 | if (friendly_name().empty()) { |
| 88 | LOG(ERROR) << "Empty service name."; |
| 89 | return false; |
| 90 | } |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 91 | Error error; |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 92 | network_name_ = proxy->Name(&error); |
| 93 | if (error.IsFailure()) { |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 94 | return false; |
| 95 | } |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 96 | uint32 identifier = proxy->Identifier(&error); |
| 97 | if (error.IsFailure()) { |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 98 | return false; |
| 99 | } |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 100 | WiMaxNetworkId id = ConvertIdentifierToNetworkId(identifier); |
| 101 | if (id != network_id_) { |
| 102 | LOG(ERROR) << "Network identifiers don't match: " |
| 103 | << id << " != " << network_id_; |
| 104 | return false; |
| 105 | } |
| 106 | int signal_strength = proxy->SignalStrength(&error); |
| 107 | if (error.IsFailure()) { |
Ben Chan | ac6e836 | 2012-05-20 00:39:58 -0700 | [diff] [blame] | 108 | return false; |
| 109 | } |
| 110 | SetStrength(signal_strength); |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 111 | proxy->set_signal_strength_changed_callback( |
Darin Petkov | 1e52a1b | 2012-05-21 10:35:56 +0200 | [diff] [blame] | 112 | Bind(&WiMaxService::OnSignalStrengthChanged, Unretained(this))); |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 113 | proxy_.reset(local_proxy.release()); |
Darin Petkov | a3f9f77 | 2012-05-31 12:11:28 +0200 | [diff] [blame] | 114 | UpdateConnectable(); |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 115 | LOG(INFO) << "WiMAX service started: " << GetStorageIdentifier(); |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 116 | return true; |
| 117 | } |
| 118 | |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 119 | bool WiMaxService::IsStarted() const { |
| 120 | return proxy_.get(); |
| 121 | } |
| 122 | |
mukesh agrawal | dc7b844 | 2012-09-27 13:48:14 -0700 | [diff] [blame] | 123 | void WiMaxService::Connect(Error *error, const char *reason) { |
Ben Chan | e494e31 | 2013-08-23 12:56:05 -0700 | [diff] [blame] | 124 | SLOG(WiMax, 2) << __func__; |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 125 | if (device_) { |
Ben Chan | b5310a1 | 2012-06-15 13:53:29 -0700 | [diff] [blame] | 126 | // TODO(benchan): Populate error again after changing the way that |
| 127 | // Chrome handles Error::kAlreadyConnected situation. |
| 128 | LOG(WARNING) << "Service " << GetStorageIdentifier() |
| 129 | << " is already being connected or already connected."; |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 130 | return; |
| 131 | } |
Darin Petkov | a3f9f77 | 2012-05-31 12:11:28 +0200 | [diff] [blame] | 132 | if (!connectable()) { |
| 133 | LOG(ERROR) << "Can't connect. Service " << GetStorageIdentifier() |
| 134 | << " is not connectable."; |
| 135 | Error::PopulateAndLog(error, Error::kOperationFailed, |
| 136 | Error::GetDefaultMessage(Error::kOperationFailed)); |
| 137 | return; |
| 138 | } |
Darin Petkov | 8ea0eaf | 2012-05-29 11:21:33 +0200 | [diff] [blame] | 139 | WiMaxRefPtr carrier = manager()->wimax_provider()->SelectCarrier(this); |
| 140 | if (!carrier) { |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 141 | Error::PopulateAndLog( |
| 142 | error, Error::kNoCarrier, "No suitable WiMAX device available."); |
| 143 | return; |
| 144 | } |
mukesh agrawal | dc7b844 | 2012-09-27 13:48:14 -0700 | [diff] [blame] | 145 | Service::Connect(error, reason); |
Darin Petkov | 8ea0eaf | 2012-05-29 11:21:33 +0200 | [diff] [blame] | 146 | carrier->ConnectTo(this, error); |
| 147 | if (error->IsSuccess()) { |
| 148 | // Associate with the carrier device if the connection process has been |
| 149 | // initiated successfully. |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 150 | SetDevice(carrier); |
Darin Petkov | 8ea0eaf | 2012-05-29 11:21:33 +0200 | [diff] [blame] | 151 | } |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 152 | } |
| 153 | |
| 154 | void WiMaxService::Disconnect(Error *error) { |
Ben Chan | e494e31 | 2013-08-23 12:56:05 -0700 | [diff] [blame] | 155 | SLOG(WiMax, 2) << __func__; |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 156 | if (!device_) { |
| 157 | Error::PopulateAndLog( |
| 158 | error, Error::kNotConnected, "Not connected."); |
| 159 | return; |
| 160 | } |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 161 | Service::Disconnect(error); |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 162 | device_->DisconnectFrom(this, error); |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 163 | SetDevice(NULL); |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 164 | } |
| 165 | |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 166 | string WiMaxService::GetStorageIdentifier() const { |
Darin Petkov | e4b2702 | 2012-05-16 13:28:50 +0200 | [diff] [blame] | 167 | return storage_id_; |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 168 | } |
| 169 | |
Paul Stewart | 1cf7eb8 | 2013-12-03 19:34:36 -0800 | [diff] [blame^] | 170 | string WiMaxService::GetDeviceRpcId(Error *error) const { |
mukesh agrawal | d4dc083 | 2013-03-25 14:38:26 -0700 | [diff] [blame] | 171 | if (!device_) { |
| 172 | error->Populate(Error::kNotFound, "Not associated with a device"); |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 173 | return DBusAdaptor::kNullPath; |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 174 | } |
mukesh agrawal | d4dc083 | 2013-03-25 14:38:26 -0700 | [diff] [blame] | 175 | return device_->GetRpcIdentifier(); |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 176 | } |
| 177 | |
Darin Petkov | 6b9b2e1 | 2012-07-10 15:51:42 +0200 | [diff] [blame] | 178 | bool WiMaxService::IsAutoConnectable(const char **reason) const { |
| 179 | if (!Service::IsAutoConnectable(reason)) { |
| 180 | return false; |
| 181 | } |
| 182 | WiMaxRefPtr device = manager()->wimax_provider()->SelectCarrier(this); |
| 183 | DCHECK(device); |
| 184 | if (!device->IsIdle()) { |
| 185 | *reason = kAutoConnBusy; |
| 186 | return false; |
| 187 | } |
| 188 | return true; |
| 189 | } |
| 190 | |
Darin Petkov | 8021e7f | 2012-05-21 12:15:00 +0200 | [diff] [blame] | 191 | bool WiMaxService::Is8021x() const { |
| 192 | return true; |
| 193 | } |
| 194 | |
Ben Chan | f4647d4 | 2013-05-02 22:01:01 -0700 | [diff] [blame] | 195 | bool WiMaxService::IsVisible() const { |
| 196 | // WiMAX services should be displayed only if they are in range (i.e. |
| 197 | // a corresponding network is exposed by WiMAX manager). |
| 198 | return IsStarted(); |
| 199 | } |
| 200 | |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 201 | void WiMaxService::OnEapCredentialsChanged() { |
| 202 | need_passphrase_ = !eap()->IsConnectableUsingPassphrase(); |
Darin Petkov | 8021e7f | 2012-05-21 12:15:00 +0200 | [diff] [blame] | 203 | UpdateConnectable(); |
| 204 | } |
| 205 | |
| 206 | void WiMaxService::UpdateConnectable() { |
Ben Chan | e494e31 | 2013-08-23 12:56:05 -0700 | [diff] [blame] | 207 | SLOG(WiMax, 2) << __func__ << "(started: " << IsStarted() |
| 208 | << ", need passphrase: " << need_passphrase_ << ")"; |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 209 | SetConnectableFull(IsStarted() && !need_passphrase_); |
Darin Petkov | 8021e7f | 2012-05-21 12:15:00 +0200 | [diff] [blame] | 210 | } |
| 211 | |
Darin Petkov | 1e52a1b | 2012-05-21 10:35:56 +0200 | [diff] [blame] | 212 | void WiMaxService::OnSignalStrengthChanged(int strength) { |
| 213 | SLOG(WiMax, 2) << __func__ << "(" << strength << ")"; |
| 214 | SetStrength(strength); |
| 215 | } |
| 216 | |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 217 | void WiMaxService::SetDevice(WiMaxRefPtr new_device) { |
| 218 | if (device_ == new_device) |
| 219 | return; |
| 220 | if (new_device) { |
Ben Chan | 4276cca | 2013-09-20 10:07:04 -0700 | [diff] [blame] | 221 | adaptor()->EmitRpcIdentifierChanged(kDeviceProperty, |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 222 | new_device->GetRpcIdentifier()); |
| 223 | } else { |
Ben Chan | 4276cca | 2013-09-20 10:07:04 -0700 | [diff] [blame] | 224 | adaptor()->EmitRpcIdentifierChanged(kDeviceProperty, |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 225 | DBusAdaptor::kNullPath); |
| 226 | } |
| 227 | device_ = new_device; |
| 228 | } |
| 229 | |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 230 | bool WiMaxService::Save(StoreInterface *storage) { |
| 231 | SLOG(WiMax, 2) << __func__; |
| 232 | if (!Service::Save(storage)) { |
| 233 | return false; |
| 234 | } |
| 235 | const string id = GetStorageIdentifier(); |
| 236 | storage->SetString(id, kStorageNetworkId, network_id_); |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 237 | |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 238 | return true; |
| 239 | } |
| 240 | |
Darin Petkov | c1e5273 | 2012-05-25 15:23:45 +0200 | [diff] [blame] | 241 | bool WiMaxService::Unload() { |
Ben Chan | e494e31 | 2013-08-23 12:56:05 -0700 | [diff] [blame] | 242 | SLOG(WiMax, 2) << __func__; |
Darin Petkov | c1e5273 | 2012-05-25 15:23:45 +0200 | [diff] [blame] | 243 | // The base method also disconnects the service. |
| 244 | Service::Unload(); |
Darin Petkov | a3f9f77 | 2012-05-31 12:11:28 +0200 | [diff] [blame] | 245 | ClearPassphrase(); |
Darin Petkov | c1e5273 | 2012-05-25 15:23:45 +0200 | [diff] [blame] | 246 | // Notify the WiMAX provider that this service has been unloaded. If the |
| 247 | // provider releases ownership of this service, it needs to be deregistered. |
| 248 | return manager()->wimax_provider()->OnServiceUnloaded(this); |
| 249 | } |
| 250 | |
Darin Petkov | 8ea0eaf | 2012-05-29 11:21:33 +0200 | [diff] [blame] | 251 | void WiMaxService::SetState(ConnectState state) { |
| 252 | Service::SetState(state); |
| 253 | if (!IsConnecting() && !IsConnected()) { |
| 254 | // Disassociate from any carrier device if it's not connected anymore. |
mukesh agrawal | cbfb34e | 2013-04-17 19:33:25 -0700 | [diff] [blame] | 255 | SetDevice(NULL); |
Darin Petkov | 8ea0eaf | 2012-05-29 11:21:33 +0200 | [diff] [blame] | 256 | } |
| 257 | } |
| 258 | |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 259 | // static |
| 260 | WiMaxNetworkId WiMaxService::ConvertIdentifierToNetworkId(uint32 identifier) { |
| 261 | return base::StringPrintf("%08x", identifier); |
| 262 | } |
| 263 | |
| 264 | void WiMaxService::InitStorageIdentifier() { |
| 265 | storage_id_ = CreateStorageIdentifier(network_id_, friendly_name()); |
| 266 | } |
| 267 | |
| 268 | // static |
| 269 | string WiMaxService::CreateStorageIdentifier(const WiMaxNetworkId &id, |
| 270 | const string &name) { |
| 271 | string storage_id = |
| 272 | base::StringPrintf("%s_%s_%s", |
Ben Chan | 4276cca | 2013-09-20 10:07:04 -0700 | [diff] [blame] | 273 | kTypeWimax, name.c_str(), id.c_str()); |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 274 | StringToLowerASCII(&storage_id); |
| 275 | replace_if(storage_id.begin(), storage_id.end(), &Service::IllegalChar, '_'); |
| 276 | return storage_id; |
| 277 | } |
| 278 | |
Darin Petkov | a3f9f77 | 2012-05-31 12:11:28 +0200 | [diff] [blame] | 279 | void WiMaxService::ClearPassphrase() { |
Ben Chan | e494e31 | 2013-08-23 12:56:05 -0700 | [diff] [blame] | 280 | SLOG(WiMax, 2) << __func__; |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 281 | mutable_eap()->set_password(""); |
| 282 | OnEapCredentialsChanged(); |
Darin Petkov | a3f9f77 | 2012-05-31 12:11:28 +0200 | [diff] [blame] | 283 | } |
| 284 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 285 | } // namespace shill |