Skip to contentSkip to conversation

sim: added error handling in set slot callback

PATCH Applied Antara Borwankar 2 participants 2 messages Apr 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 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.

---
 src/sim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/sim.c +1 -1
index 9f0183f..a178cb8 100644
@@ -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;
Signature · 1 line
1.9.1
#1 lore raw

Hi Antara,

Quoted 9 lines · Antara Borwankar

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.

---
  src/sim.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Regards,
-Denis