libril: Fix signal strength for RIL_SignalStrength_v5/v6

Change-Id: Ie1afc7ba76dc6add446de86fd54a840e000a1808
This commit is contained in:
Dominggoes Isakh 2017-12-27 19:15:39 +01:00
parent 7bfdb1b5c5
commit a163e458aa

View file

@ -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;
}