Lines Matching full:wimax
17 #include "shill/wimax/wimax.h"
29 #include "shill/wimax/wimax_device_proxy_interface.h"
30 #include "shill/wimax/wimax_service.h"
40 static string ObjectID(WiMax* w) { return w->GetRpcIdentifier(); }
66 const int WiMax::kDefaultConnectTimeoutSeconds = 60;
67 const int WiMax::kDefaultRPCTimeoutSeconds = 30;
69 WiMax::WiMax(ControlInterface* control,
84 LOG(INFO) << "WiMAX device created: " << link_name << " @ " << path;
89 WiMax::~WiMax() {
90 LOG(INFO) << "WiMAX device destroyed: " << link_name();
93 void WiMax::Start(Error* error, const EnabledStateChangedCallback& callback) {
98 Bind(&WiMax::OnNetworksChanged, Unretained(this)));
100 Bind(&WiMax::OnStatusChanged, Unretained(this)));
102 error, Bind(&WiMax::OnEnableComplete, this, callback),
106 void WiMax::Stop(Error* error, const EnabledStateChangedCallback& callback) {
122 error, Bind(&WiMax::OnDisableComplete, this, callback),
129 void WiMax::Scan(ScanType /*scan_type*/, Error* error,
139 error, Bind(&WiMax::OnScanNetworksComplete, this),
146 void WiMax::ConnectTo(const WiMaxServiceRefPtr& service, Error* error) {
173 error, Bind(&WiMax::OnConnectComplete, this),
180 void WiMax::DisconnectFrom(const ServiceRefPtr& service, Error* error) {
203 error, Bind(&WiMax::OnDisconnectComplete, this),
210 bool WiMax::IsIdle() const {
214 void WiMax::OnServiceStopped(const WiMaxServiceRefPtr& service) {
224 void WiMax::OnDeviceVanished() {
225 LOG(INFO) << "WiMAX device vanished: " << link_name();
233 void WiMax::OnScanNetworksComplete(const Error& /*error*/) {
239 void WiMax::OnConnectComplete(const Error& error) {
249 void WiMax::OnDisconnectComplete(const Error& /*error*/) {
253 void WiMax::OnEnableComplete(const EnabledStateChangedCallback& callback,
259 LOG(INFO) << "WiMAX device " << link_name() << " enabled.";
268 void WiMax::OnDisableComplete(const EnabledStateChangedCallback& callback,
270 LOG(INFO) << "WiMAX device " << link_name() << " disabled.";
275 void WiMax::OnNetworksChanged(const RpcIdentifiers& networks) {
282 void WiMax::OnStatusChanged(wimax_manager::DeviceStatus status) {
283 SLOG(this, 2) << "WiMAX device " << link_name()
296 LOG(INFO) << "WiMAX device " << link_name() << " connected to "
306 LOG(INFO) << "WiMAX device " << link_name() << " connecting...";
315 LOG(INFO) << "WiMAX device " << link_name()
327 void WiMax::DropService(Service::ConnectState state) {
345 void WiMax::StartConnectTimeout() {
351 Bind(&WiMax::OnConnectTimeout, weak_ptr_factory_.GetWeakPtr()));
356 void WiMax::StopConnectTimeout() {
361 bool WiMax::IsConnectTimeoutStarted() const {
365 void WiMax::OnConnectTimeout() {
366 LOG(ERROR) << "WiMAX device " << link_name() << ": connect timeout.";