shill: wimax: Listen to WiMaxManager.Device.StatusChanged signal.
Use the status signal to update the connection state of the WiMax
service appropriately. Also, make sure that WiMaxService is
disassociated from the carrier device if a connection can't be
initiated or if it's dropped.
BUG=chrome-os-partner:10010
TEST=unit tests
CQ-DEPEND=I29dcfe4915e6f2559d022c60353aa12358ef5966
CQ-DEPEND=I223eaf61894f74905c591e38590e5e0620d07be0
Change-Id: I5fe48f0cc84c066eb6a63dc5d347ac5f265b86b1
Reviewed-on: https://gerrit.chromium.org/gerrit/23879
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Ben Chan <benchan@chromium.org>
diff --git a/wimax.h b/wimax.h
index 1000d7e..7aab6b1 100644
--- a/wimax.h
+++ b/wimax.h
@@ -7,6 +7,7 @@
#include <set>
+#include <chromeos/dbus/service_constants.h>
#include <gtest/gtest_prod.h> // for FRIEND_TEST
#include "shill/device.h"
@@ -48,6 +49,7 @@
private:
friend class WiMaxTest;
FRIEND_TEST(WiMaxProviderTest, OnNetworksChanged);
+ FRIEND_TEST(WiMaxTest, OnConnectComplete);
FRIEND_TEST(WiMaxTest, OnNetworksChanged);
FRIEND_TEST(WiMaxTest, OnServiceStopped);
FRIEND_TEST(WiMaxTest, StartStop);
@@ -63,6 +65,7 @@
const Error &error);
void OnNetworksChanged(const RpcIdentifiers &networks);
+ void OnStatusChanged(wimax_manager::DeviceStatus status);
void DropConnection();