summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Tang <zhikait@codeaurora.org>2020-12-11 15:59:44 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2021-09-16 05:38:56 -0700
commit9078b7ae77e1e8e817be14bcf5a158a28e5c0ff8 (patch)
treeede4f415c95ee983c9cda6b115e4a6ef814ec08f
parentf0a78e2698fc4b7a4074bc19d8c8b6bcee48173f (diff)
Apgs subscriber mananger fix
Currently the subscribers are created such that they are not waiting for ConnectivityManager close event before they get removed and thereby notify modem of the state change. This may cause issue if modem immediately issues a next ATL request. The state machine in AFW, while it is in the middle tearing down a connection, is not able to handle a next bringup request gracefully. Now we change all the subscribers to have to wait for the tear down msg from AFW before we remove the subscriber and notify modem of the complete of the operation. Change-Id: I05624b1cbbbc71eb189f9a0d73869d359b96cecd CRs-Fixed: 2917823
-rw-r--r--gnss/Agps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnss/Agps.cpp b/gnss/Agps.cpp
index 4344a6f..0b95f99 100644
--- a/gnss/Agps.cpp
+++ b/gnss/Agps.cpp
@@ -590,7 +590,7 @@ void AgpsManager::requestATL(int connHandle, AGpsExtType agpsType,
sm->setApnTypeMask(apnTypeMask);
/* Invoke AGPS SM processing */
- AgpsSubscriber subscriber(connHandle, false, false, apnTypeMask);
+ AgpsSubscriber subscriber(connHandle, true, false, apnTypeMask);
sm->setCurrentSubscriber(&subscriber);
/* Send subscriber event */
sm->processAgpsEvent(AGPS_EVENT_SUBSCRIBE);