Bug 1064647 - B2G RIL: Treat 0x90, 0x91, 0x9E and 0x9F as a success results for sw1 regarding ICC_IO. r=Edgar

This commit is contained in:
Shawn Ku 2014-09-09 22:25:14 +08:00
parent 738b9fb2e4
commit 522bc839cc

View File

@ -5854,7 +5854,11 @@ RilObject.prototype[REQUEST_SIM_IO] = function REQUEST_SIM_IO(length, options) {
let Buf = this.context.Buf;
options.sw1 = Buf.readInt32();
options.sw2 = Buf.readInt32();
if (options.sw1 != ICC_STATUS_NORMAL_ENDING) {
// See 3GPP TS 11.11, clause 9.4.1 for opetation success results.
if (options.sw1 !== ICC_STATUS_NORMAL_ENDING &&
options.sw1 !== ICC_STATUS_NORMAL_ENDING_WITH_EXTRA &&
options.sw1 !== ICC_STATUS_WITH_SIM_DATA &&
options.sw1 !== ICC_STATUS_WITH_RESPONSE_DATA) {
ICCIOHelper.processICCIOError(options);
return;
}