Adding change to wait for close complete in ATL

ATL Close response should not be sent if client
has wait for close complete flag set to true.

Change-Id: I61164508e532cd8c65dff13387122c9d2c08af54
CRs-Fixed: 2089888
This commit is contained in:
Saurabh Srivastava 2017-08-10 14:12:42 +05:30 committed by Gerrit - the friendly Code Review server
parent be2a3f9a69
commit 28bbab632a

View file

@ -129,8 +129,6 @@ void AgpsStateMachine::processAgpsEventUnsubscribe(){
* and notify */ * and notify */
if (mCurrentSubscriber->mWaitForCloseComplete) { if (mCurrentSubscriber->mWaitForCloseComplete) {
mCurrentSubscriber->mIsInactive = true; mCurrentSubscriber->mIsInactive = true;
notifyEventToSubscriber(
AGPS_EVENT_UNSUBSCRIBE, mCurrentSubscriber, false);
} }
else { else {
/* Notify only current subscriber and then delete it from /* Notify only current subscriber and then delete it from
@ -158,8 +156,6 @@ void AgpsStateMachine::processAgpsEventUnsubscribe(){
* and notify */ * and notify */
if (mCurrentSubscriber->mWaitForCloseComplete) { if (mCurrentSubscriber->mWaitForCloseComplete) {
mCurrentSubscriber->mIsInactive = true; mCurrentSubscriber->mIsInactive = true;
notifyEventToSubscriber(
AGPS_EVENT_UNSUBSCRIBE, mCurrentSubscriber, false);
} }
else { else {
/* Notify only current subscriber and then delete it from /* Notify only current subscriber and then delete it from
@ -308,8 +304,7 @@ int AgpsStateMachine::requestOrReleaseDataConn(bool request){
LOC_LOGD("AGPS Data Conn Request"); LOC_LOGD("AGPS Data Conn Request");
nifRequest.status = (AgpsFrameworkInterface::AGnssStatusValue) nifRequest.status = (AgpsFrameworkInterface::AGnssStatusValue)
LOC_GPS_REQUEST_AGPS_DATA_CONN; LOC_GPS_REQUEST_AGPS_DATA_CONN;
} } else {
else{
LOC_LOGD("AGPS Data Conn Release"); LOC_LOGD("AGPS Data Conn Release");
nifRequest.status = (AgpsFrameworkInterface::AGnssStatusValue) nifRequest.status = (AgpsFrameworkInterface::AGnssStatusValue)
LOC_GPS_RELEASE_AGPS_DATA_CONN; LOC_GPS_RELEASE_AGPS_DATA_CONN;