klte-common: libril: Add workaround for "ring of death" bug

[javelinanddart]: Forward port to ril-caf on lineage-15.1

Change-Id: Ifeeee11ee83deddb8eff565847641c45a105378f
This commit is contained in:
Paul Keith 2017-10-24 02:27:29 +02:00 committed by Kevin F. Haggerty
parent b3441fb51c
commit 71545f0b74
1 changed files with 12 additions and 0 deletions

View File

@ -7746,6 +7746,18 @@ int radio::cdmaInfoRecInd(int slotId,
record->signal[0].signalType = infoRec->rec.signal.signalType;
record->signal[0].alertPitch = infoRec->rec.signal.alertPitch;
record->signal[0].signal = infoRec->rec.signal.signal;
/* Drop the response to workaround the "ring of death" bug */
if (infoRec->rec.signal.isPresent
/* IS95_CONST_IR_SIGNAL_IS54B */
&& infoRec->rec.signal.signalType == 2
/* IS95_CONST_IR_ALERT_MED */
&& infoRec->rec.signal.alertPitch == 0
/* IS95_CONST_IR_SIG_IS54B_L */
&& infoRec->rec.signal.signal == 1) {
return 0;
}
break;
}