Chromium Code Reviews| Index: chromeos/network/network_state.cc |
| diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc |
| index c47068b719ca5f93cf4453f3001b83d6def4e2ae..915a688de3cdaa9c51afe49888bfdb6e5243b8db 100644 |
| --- a/chromeos/network/network_state.cc |
| +++ b/chromeos/network/network_state.cc |
| @@ -163,9 +163,10 @@ bool NetworkState::InitialPropertiesReceived( |
| has_ca_cert_nss_ = IsCaCertNssSet(properties); |
| changed |= had_ca_cert_nss != has_ca_cert_nss_; |
| - // By convention, all visible WiFi networks have a SignalStrength > 0. |
| - if (visible() && type() == shill::kTypeWifi) { |
| - if (signal_strength_ <= 0) |
| + // By convention, all visible WiFi and WiMAX networks have a |
| + // SignalStrength > 0. |
| + if ((type() == shill::kTypeWifi || type() == shill::kTypeWimax) && |
|
Ben Chan
2014/09/17 22:51:38
TODO: cellular has signal strength as well.
pneubeck (no reviews)
2014/09/18 08:50:11
Done.
pneubeck (no reviews)
2014/09/18 09:23:01
Actually, not done.
I checked Shill's side, and 'v
Ben Chan
2014/09/18 14:57:06
I wouldn't suggest adding cellular stuff in this C
|
| + visible() && signal_strength_ <= 0) { |
| signal_strength_ = 1; |
| } |