summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChristophe Ronco <c.ronco@kerlink.fr>2018-04-19 10:31:46 +0200
committerDenis Kenzior <denkenz@gmail.com>2018-04-19 10:24:50 -0500
commitbfa0ac979eee07aba908a565216171b410b27f57 (patch)
treefb71f32d5c42dea5d606914608f4b7a115adb295 /drivers
parent88d9b1a32d4461a0831188cc4c4928480a402013 (diff)
downloadofono-bfa0ac979eee07aba908a565216171b410b27f57.tar.gz
qmi: use right slot and application during SIM detection
Use right slot and application to get card status, PIN status and PIN retries. Without this patch, SIMs where selected application and slot numbers are different are not detected.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/qmimodem/sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/qmimodem/sim.c b/drivers/qmimodem/sim.c
index 1d9befc9..c884157e 100644
--- a/drivers/qmimodem/sim.c
+++ b/drivers/qmimodem/sim.c
@@ -557,7 +557,7 @@ static enum get_card_status_result handle_get_card_status_result(
index = GUINT16_FROM_LE(status->index_gw_pri);
- if ((index & 0xff) == i && (index >> 8) == n) {
+ if ((index & 0xff) == n && (index >> 8) == i) {
if (get_card_status(slot, info1, info2,
sim_stat))
res = GET_CARD_STATUS_RESULT_TEMP_ERROR;