Small fixes to conditionally launch the BIT Interface thread
Changes to launch the BIT service request handler thread only if AggpsExt is present. Small formatting fixes for pritining the IP address. Change-Id: Iaf3b9bd6d967ba35b04b591750784c5f221ee539
This commit is contained in:
parent
82a61b65d6
commit
ef7a8694d7
1 changed files with 8 additions and 7 deletions
|
@ -929,10 +929,10 @@ void LocEngReqRelBIT::proc() const {
|
|||
}
|
||||
inline void LocEngReqRelBIT::locallog() const {
|
||||
LOC_LOGV("LocEngRequestBIT - ipv4: %d.%d.%d.%d, ipv6: %s",
|
||||
(unsigned char)(mIPv4Addr>>24),
|
||||
(unsigned char)(mIPv4Addr>>16),
|
||||
(unsigned char)(mIPv4Addr>>8),
|
||||
(unsigned char)mIPv4Addr,
|
||||
(unsigned char)(mIPv4Addr>>8),
|
||||
(unsigned char)(mIPv4Addr>>16),
|
||||
(unsigned char)(mIPv4Addr>>24),
|
||||
NULL != mIPv6Addr ? mIPv6Addr : "");
|
||||
}
|
||||
inline void LocEngReqRelBIT::log() const {
|
||||
|
@ -1988,7 +1988,7 @@ void loc_eng_agps_init(loc_eng_data_s_type &loc_eng_data, AGpsExtCallbacks* call
|
|||
__func__, __LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
LocEngAdapter* adapter = loc_eng_data.adapter;
|
||||
loc_eng_data.agps_status_cb = callbacks->status_cb;
|
||||
|
||||
loc_eng_data.agnss_nif = new AgpsStateMachine(servicerTypeAgps,
|
||||
|
@ -2005,9 +2005,10 @@ void loc_eng_agps_init(loc_eng_data_s_type &loc_eng_data, AGpsExtCallbacks* call
|
|||
true);
|
||||
loc_eng_data.adapter->sendMsg(new LocEngDataClientInit(&loc_eng_data));
|
||||
|
||||
loc_eng_dmn_conn_loc_api_server_launch(callbacks->create_thread_cb,
|
||||
NULL, NULL, &loc_eng_data);
|
||||
|
||||
if (adapter->mAgpsEnabled) {
|
||||
loc_eng_dmn_conn_loc_api_server_launch(callbacks->create_thread_cb,
|
||||
NULL, NULL, &loc_eng_data);
|
||||
}
|
||||
loc_eng_agps_reinit(loc_eng_data);
|
||||
EXIT_LOG(%s, VOID_RET);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue