History log of /hardware/ril/reference-ril/atchannel.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f3769c17615bc9c227cff83cad0e55bb9f878197 31-Mar-2016 Yu Ning <yu.ning@intel.com> reference-ril: Stop using pthread_cond_timedwait_relative_np()

pthread_cond_timedwait_relative_np() is deprecated, and is only
available in the 32-bit ABI (see bionic/libc/include/pthread.h). It is
still used by the 32-bit version of reference-ril. Thanks to a recent
bugfix for 64-bit [1], it is now safe to replace the deprecated
function with the standard pthread_cond_timedwait(). Doing so also
simplifies the code, as there is now a unified logic for 32 and 64-bit
targets.

[1] https://android-review.googlesource.com/210301

Signed-off-by: Yu Ning <yu.ning@intel.com>

(cherry picked from commit 3480b1832d3581c708868117c0eb21ba291df165)

Change-Id: I1a15ee0fdfea38b6ee9c9fd49845d10d45f485b1
/hardware/ril/reference-ril/atchannel.c
99f6a4e8fa12a6d54df5420aaa3eda29d9ba22a6 24-Mar-2016 Jinhui Li <jinhui.li@intel.com> reference-ril/atchannel.c: Fix time conversion

setTimespecRelative() converts a relative time to an absolute time, by
adding the relative time to current system time. However, it fails to
handle the case where the nanosecond component (tv_nsec) of the
conversion result exceeds 10^9, which can cause a subsequent call to
pthread_cond_timedwait() to return EINVAL.

This bug is the root cause of the "no SIM card" error seen occasionally
on x86_64 Android emulator. In fact, all 64-bit targets use
setTimespecRelative() in conjunction with pthread_cond_timedwait()
during AT handshake, but an EINVAL return value from the latter will
lead to an infinite loop and hang the communication. With this fix,
x86_64 emulator can boot with functional 3G networking every time.

Signed-off-by: Jinhui Li <jinhui.li@intel.com>
[Revised code and commit message]
Signed-off-by: Yu Ning <yu.ning@intel.com>

(cherry picked from commit 11476211584f1a82c870b9486ace8f6f8bb9fc7c)

Change-Id: I5d7396ef7f0af5ef02ccab785046d635fb8f168c
/hardware/ril/reference-ril/atchannel.c
1fbb38212cfd3b07be5532dd372432a3ec75d387 10-Mar-2016 Sanket Padawe <sanketpadawe@google.com> Fix memory leak in atchannel.c

Bug: 27134985
Change-Id: I0273a40f175212bed4aad42e46feb333d9df9a2b
/hardware/ril/reference-ril/atchannel.c
894fbbd4272a5075d99a6aa245ca3f6bc2b62989 25-Jan-2014 Colin Cross <ccross@android.com> Set USE_NP based on HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE

64 bit bionic does not define pthread_cond_timeout_np, use
HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE to determine whether or
not to use it.

Change-Id: Ia94dd76f7ea4b0268f07049c127342a8bd016ec0
/hardware/ril/reference-ril/atchannel.c
88d0e0e497af4da9bf571354197755dfe2496484 21-Nov-2013 Elliott Hughes <enh@google.com> Remove references to <linux/omap_csmi.h>.

This header no longer exists in modern kernels, and it looks like
this code was only meant to be enabled for 'sooner' anyway.

Change-Id: I6e7449a31942a54daa925c14e8843752a835bd42
/hardware/ril/reference-ril/atchannel.c
4dcab4f90d2d49e40100e4888b1411dfbd1c9783 20-Nov-2012 Wink Saville <wink@google.com> Add RLOGx

This will eventually allow us to remove the code in
logd_write.c#__android_log_write which uses the tag
to direct logs to the radio buffer.

Change-Id: I7a6a966bc12e59a3ec68a56a41dd681fb325dfd8
/hardware/ril/reference-ril/atchannel.c
f423cde8f901a72fd0cb811583a2cdabe62c64bd 08-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Id52de89149d4580873215fafc922ec4bd8d722ed
/hardware/ril/reference-ril/atchannel.c
6464068a31ff890d42d3da9cdf580d07c9c630d8 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: Ib3eab0b780391f9a0ac9b53282616d66a0154ade
/hardware/ril/reference-ril/atchannel.c
00f06fc3fdb05d4276e76091cacb42b6f6862222 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/hardware/ril/reference-ril/atchannel.c
c2efc51d848d68147320a5983954f9c76428885c 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/hardware/ril/reference-ril/atchannel.c
dbbb392e15b5ace6f19e76c49c80ea14292e8a4d 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/hardware/ril/reference-ril/atchannel.c