Commit graph

33 commits

Author SHA1 Message Date
Say
d1052770c5 libril: add initial support for ss333 modem
zeroflte uses ss333

Change-Id: If3c9d34ea31c06ce23bd8d0236a9f2ddbab3ddc4
Signed-off-by: Say <sktjdgns1189@naver.com>
2016-02-09 16:46:09 -05:00
Christopher N. Hesse
b8400a23f5 ril: Unify network elements property check
frameworks/opt/telephony is using a slightly different named property
to check for the QANElements count.
Align the check here to the frameworks one to avoid redundancies.

Change-Id: I22f7cf070953026798d0ae4759e3c9845dba767c
2015-12-12 11:49:45 +01:00
forkbomb
e0568e128b libril: fix compilation with debugging enabled
Change-Id: Iac159175a23b2810e56c38fb82cae58c20dddb8e
2015-11-23 18:57:25 +11:00
Andreas Schneider
822b70bd53 ril: Use debug log level and not error
Change-Id: I8f017cb181967790260183fd06d1226d303bd2b8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-10-23 16:03:40 +02:00
Andreas Schneider
d806de9248 ril: Fix network operator search
Newer RIL versions have more QAN elements so we need a way
to adjust them to the correct value.

This needs to be set to same value as mQANElements in the RIL Telephony
class.

Change-Id: Icfad9c0acf1b95f63c232b6c4c49ed52bd4e3aa4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-10-23 16:02:55 +02:00
Nathan Harold
d6306fa7d2 Modify RIL Unsol Message Wakelock to 200ms
bug: 22456054

Change-Id: Id41e001f98b455bec5f004438f5d8498b17aaf2d
2015-10-19 12:16:41 -07:00
Prerepa Viswanadham
8e75559929 Modem activity info
Change-Id: Iab8fbdeae0867c6e9cb9027b08317b1b5a2c9dfc
2015-10-19 12:16:41 -07:00
Chih-Hung Hsieh
e7ed8c8130 Add missing extern "C" declaration.
BUG: 20891299
Change-Id: Iedfd2e8e5bd32014f011352898763bcc0887b6b9
2015-10-19 12:16:41 -07:00
Robert Greenwalt
bc29c43988 Remove verbose logs
Several things are redundent except for the fact
messages are reaching rilc.  Left in in case we need to debug
the layer, but blocked out with #if VDBG

Reduces startup logging to radio buffer by 20%

Change-Id: I95099457ea365ee108e7da8e1f81434531b6b9f0
2015-10-19 12:16:41 -07:00
fenglu
9bdede058f Link Capacity Estimation - RIL support
Change-Id: I9c4d4901d823d719be2b8bdec64f08eda342de53
2015-10-19 12:16:41 -07:00
Vinit Deshpande
5257b14d60 Fix build issues after the merge
Change-Id: Ia856311187a0b2168cb859bd8b2300ff59df6569
2015-10-19 12:16:41 -07:00
Mark Salyzyn
961fd02e9b libril: tag RILC messages to radio log
Change-Id: Ia3234aa933249eb9f383c7e45c3f67b3c0c50634
2015-10-19 12:16:41 -07:00
Dheeraj Shetty
cc231015f2 Introduction of the new SAP-UIM socket
Added new socket connection for communication between the SAP module
in Telephony and User Identity Module with DSDA support.

New classes added are:

RilSocket
---------
Base class(virtual) for any type of socket. Has listen
and commands callbacks similar to that of the existing
telephony->rild socket.

RilSapSocket
------------
Derived class for socket for communication between BT SAP
and the sim module in the modem. It initialises
socket, calls Sap_Uim_Init to get the handles and
starts the socket thread.

rilSocketQueue
--------------
Queue for managing socket requests.

Change-Id: I8828173941d6ae76f1f9cc0d567efaf41a77d175
2015-10-19 12:16:41 -07:00
Nanik Tolaram
6187ef8378 Removal of dead code and adding log messages to make it easier
for debugging

- Add more logging using ALOGD(..) for function dispatchSmsWrite,
dispatchDial, dispatchSIM_IO, dispatchSIM_APDU, dispatchCallForward,
dispatchRaw and dispatchCdmaSmsAck. To make it easier for debugging.

- Remove commented log message inside wakeTimeoutCallback () function
and remove the else clause as it's dead not used for anything.

- Modify log message inside removeFromList and removeWatch using +
and - to make it consistent with the other log message.

Change-Id: Ife0212e6a4724d8b06a1dd767484bfdf98b8e1a6
Signed-off-by: Nanik Tolaram <nanikjava@gmail.com>
2015-10-19 12:16:41 -07:00
Elliott Hughes
4c4ae39dec We have POSIX clocks.
We're probably not running the RIL on a Mac.

Change-Id: Ib6be56cd26d67e2b72b559cb364b1e34ab613016
2015-10-19 12:16:41 -07:00
Andreas Schneider
84093984f3 ril: Support new sound manger RIL responses
New version of Samsung RIL do not use RIL_UNSOL_WB_AMR_STATE anymore.
There is a Sound Manager (SND-MGR) which has its own response base
(20000). So to be able to register a handler for

RIL_UNSOL_SNDMGR_WB_AMR_REPORT

with libsecril-client we need to know about it. This allows us to
register a callback in the audio HAL to turn WB support on.

WB_AMR_REPORT report 0x00, 0x01 or 0x02. I guess 0x01 is WB ON and
0x02 is WB + NS ON.

Change-Id: I403c86781551fc3b08354187322e8443402d56f6
2015-09-16 16:54:08 +02:00
Christopher N. Hesse
7bf409edb0 libril: Add support for ST-Ericsson Thor M7450 modems
The M7450 modem used in the Galaxy Note 4 (N910C variant) uses a libril
implementation similar to the one employed for Intel XMM* modems by Samsung.

This probably needs future adjustments, but so far fixes basic call functions
and signal strength is displayed correctly.

Change-Id: I2d070102ad11746902527da3c2c7f49485c7d7f1
2015-06-26 15:01:52 +02:00
Andreas Schneider
a8d0950e22 ril: Fix compilation with debug messages turned on
Change-Id: Ifabf416ebdfe681e63df1d127567d0ef54cfc0ec
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-06-23 18:43:21 +02:00
NBruderman
72edd42d69 libril: Fix element count
This lines should drop every 5th element (#5,#10,#15,...).
At the moment it is dropping elements #6, #11, #16, as it start from 0
and the list start from 1. So let's match it up.

Thanks to Tobias Heinemann for the idea.

Change-Id: Idc2904040119716e666ea0fe320cde1d45869ee5
2015-06-08 12:57:53 +00:00
Utkarsh Gupta
f7a63e5be9 libril: Fix network operator search
Change-Id: Ib904875c403942ec96dfa229080d9543d7c9b8fa
2015-05-12 10:03:26 -07:00
Utkarsh Gupta
8ede9fa98b libril: Fix signal strength for xmm6260 too
Change-Id: I3b35eb2c18df9110c7ec1bd3cf989cd34cc18fd7
2015-05-02 22:55:15 +03:00
Caio Schnepper
ec04254056 libril: Add missing semicolon
Change-Id: I681e98abf600cd78a0783919d00b0acd215c6aaf
2015-04-14 08:03:43 -03:00
Andreas Schneider
3063dc12b7 libril: Avoid strncat which doesn't check if we overflow
Change-Id: I547e071316e8b4492b9837aae2096f27c02b67db
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-13 21:39:15 +00:00
Andreas Schneider
47b2d96357 libril: Make data a const pointer in RIL_onUnsolicitedResponse()
Change-Id: I5b57da9e2672ea8455481e55794c33759cb741db
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-13 21:38:52 +00:00
Utkarsh Gupta
8a0d74087a libril: Fix signal strength
Change-Id: I81ce6dbb99a04c62666823602d1b72bb3fc50a1c
2015-04-13 12:28:09 +05:30
Daniel Hillenbrand
d0b8416520 libril: rewrite preferred network type
NETWORK_MODE_GLOBAL => NETWORK_MODE_WCDMA_PREF

Change-Id: I3087e4be3a6ff700b39544279fa0e265b9182180
2015-04-12 11:58:35 +02:00
Howard Su
bd82ef1fa7 libril: move samsung specific into seperate table, update to v11
Change-Id: I6c7121a30dbbf9edc9573b8f2dee308366bab9a1
2015-04-12 10:50:31 +02:00
Andreas Schneider
eef440e4ab libril: Readd support for MODEM_TYPE_XMM7260
Change-Id: I395e9cbfd1a42334e5e6bbb706eef9be157ecd24
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:38 +02:00
Andreas Schneider
f68609b5d2 libril: Fix #elif for MODEM_TYPE_XMM6260
Change-Id: I71e64103aba6b374b6181f557030409be084bb25
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:37 +02:00
Andreas Schneider
8cb8de66bb libril: Use consistent names for modem defines
Change-Id: I3ac65d2458878a6a631439be4f830c851aa50759
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:36 +02:00
Andreas Schneider
8e5fa432f3 libril: The data variable should be const
Change-Id: I72a694e603c1ff18b09e3c3208cae8c5af937513
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:34 +02:00
Andreas Schneider
68f80d8f04 libril: Fix processRadioState prototype
Change-Id: I19c5c2319fe4110c3859012a27a08d5c7f942177
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-08 14:00:31 +02:00
Howard Su
e32dbfd56b libril: Merge xmm6262 and xmm6260 to single lib.
The difference between two libs are very minor,
includes one hack around ucsInfo and the logic
to adjust signal strength. Besides that other
diffs are some logs.
The new version of code is minaly based on xmm6262,
especially the logic to adjust singal strength.
Merge them to easy maintain the code.

Change-Id: I76390541d017576591860c8701bb9763c460b8be
(cherry picked from commit 56b8dcfa3094f93698dda9f6731fa845f00ef287)
2015-04-06 16:49:42 +00:00