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_service.h b/wimax_service.h
index f50510a..44c5ef8 100644
--- a/wimax_service.h
+++ b/wimax_service.h
@@ -72,12 +72,14 @@
virtual void set_eap(const EapCredentials &eap);
virtual bool Save(StoreInterface *storage);
virtual bool Unload();
+ virtual void SetState(ConnectState state);
private:
friend class WiMaxServiceTest;
FRIEND_TEST(WiMaxServiceTest, GetDeviceRpcId);
FRIEND_TEST(WiMaxServiceTest, OnSignalStrengthChanged);
FRIEND_TEST(WiMaxServiceTest, SetEAP);
+ FRIEND_TEST(WiMaxServiceTest, SetState);
FRIEND_TEST(WiMaxServiceTest, StartStop);
virtual std::string GetDeviceRpcId(Error *error);