mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-01 07:47:55 +00:00
libril: Fix signal strength for RIL_SignalStrength_v5/v6
Change-Id: Ie1afc7ba76dc6add446de86fd54a840e000a1808
This commit is contained in:
parent
7bfdb1b5c5
commit
a163e458aa
1 changed files with 3 additions and 1 deletions
|
@ -7224,7 +7224,9 @@ int radio::currentSignalStrengthInd(int slotId,
|
|||
void *response, size_t responseLen) {
|
||||
if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) {
|
||||
if (response == NULL || (responseLen != sizeof(RIL_SignalStrength_v10)
|
||||
&& responseLen != sizeof(RIL_SignalStrength_v8))) {
|
||||
&& responseLen != sizeof(RIL_SignalStrength_v8)
|
||||
&& responseLen != sizeof(RIL_SignalStrength_v6)
|
||||
&& responseLen != sizeof(RIL_SignalStrength_v5))) {
|
||||
RLOGE("currentSignalStrengthInd: invalid response");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue