Fix for dsi_init failure

Init DS only when the agps
stack is available

Change-Id: I106e50462ad810ca5baf452d7effc6459c135f6f
CRs-fixed: 599478
This commit is contained in:
Tushar Janefalkar 2014-01-15 11:08:16 -08:00 committed by Gerrit - the friendly Code Review server
parent 6b051b139b
commit e870707275

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2009-2013, The Linux Foundation. All rights reserved. /* Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are * modification, are permitted provided that the following conditions are
@ -2086,9 +2086,9 @@ void loc_eng_agps_init(loc_eng_data_s_type &loc_eng_data, AGpsExtCallbacks* call
AGPS_TYPE_SUPL, AGPS_TYPE_SUPL,
false); false);
if (adapter->mAgpsEnabled) {
loc_eng_data.adapter->sendMsg(new LocEngDataClientInit(&loc_eng_data)); loc_eng_data.adapter->sendMsg(new LocEngDataClientInit(&loc_eng_data));
if (adapter->mAgpsEnabled) {
loc_eng_dmn_conn_loc_api_server_launch(callbacks->create_thread_cb, loc_eng_dmn_conn_loc_api_server_launch(callbacks->create_thread_cb,
NULL, NULL, &loc_eng_data); NULL, NULL, &loc_eng_data);
} }