summaryrefslogtreecommitdiff
path: root/src/sim.c
diff options
context:
space:
mode:
authorAntara Borwankar <antara.borwankar@intel.com>2019-04-02 11:55:25 +0530
committerDenis Kenzior <denkenz@gmail.com>2019-04-02 10:27:07 -0500
commitd10a2490b1fabf45f1f5bba94f84e14280d1110f (patch)
treef63541ffd44213589c938edeb4892851adb7859f /src/sim.c
parent2004d26cdc96dbe99250808aef98d9ed821edceb (diff)
downloadofono-d10a2490b1fabf45f1f5bba94f84e14280d1110f.tar.gz
sim: added error handling in set slot callback
Adding the handling of error when the driver returns CME ERROR:4. This error will be returned for non xmm vendor modems using ifxmodem driver for sim.
Diffstat (limited to 'src/sim.c')
-rw-r--r--src/sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim.c b/src/sim.c
index 9f0183f4..a178cb83 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -680,7 +680,7 @@ static void sim_set_slot_callback(const struct ofono_error *error, void *data)
sim->pending_active_card_slot = sim->active_card_slot;
- reply = __ofono_error_failed(sim->pending);
+ reply = __ofono_error_from_error(error, sim->pending);
__ofono_dbus_pending_reply(&sim->pending, reply);
return;