[Bugfix][T108][bug-view-1900] sometimes gsw get sim status, return wrong value
Only Configure: No
Affected branch: unknown
Affected module: sim
Is it affected : only ASR
Self-test: yes
Doc Update: no
Change-Id: Ie98b65e32d094aa7038fc2feea9c28a15274297d
diff --git a/mbtk/libmbtk_lib/ril/v1/mbtk_info_api.c b/mbtk/libmbtk_lib/ril/v1/mbtk_info_api.c
index 489e0ac..8a00638 100644
--- a/mbtk/libmbtk_lib/ril/v1/mbtk_info_api.c
+++ b/mbtk/libmbtk_lib/ril/v1/mbtk_info_api.c
@@ -422,19 +422,23 @@
pthread_mutex_lock(&handle->mutex);
handle->is_waitting = true;
+ /*LYNQ_ASR_BUG1900_Q.HUANG_20250801_ADD_START must set below lines before mbtk_info_pack_send */
+ if(recv_buff != NULL)
+ {
+ handle->data = recv_buff;
+ }
+ /*LYNQ_ASR_BUG1900_Q.HUANG_20250801_ADD_END*/
int ret=mbtk_info_pack_send(handle->client_fd, pack);
mbtk_info_pack_free(&pack);
if(ret<0)
{
LOG("pack_send error, ret is %d",ret);
handle->info_err=MBTK_INFO_ERR_TIMEOUT;
+ handle->data=NULL;
handle->is_waitting = false;
pthread_mutex_unlock(&handle->mutex);
return -1;
}
-
- if(recv_buff != NULL)
- handle->data = recv_buff;
// Wait for server response.
pthread_cond_wait(&handle->cond, &handle->mutex);
handle->is_waitting = false;