summaryrefslogtreecommitdiff
path: root/drivers/atmodem/sim.c
diff options
context:
space:
mode:
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>2012-01-11 17:28:33 +0100
committerDenis Kenzior <denkenz@gmail.com>2012-01-11 06:46:24 -0600
commit38056fdd50e71894044ec02627d0b40aaf9ee23c (patch)
treea0a8bfc2090cfb14ace015dd96268dbb0fbcc1d5 /drivers/atmodem/sim.c
parent89c757f49d6aa3f8345bb6e0f1ab38b99a520ccd (diff)
atmodem: Create new sim driver without EF entries
This driver will be used by CDMA modems to support PIN management and IMSI retreival. EF entries for CDMA modems cannot be implemented without manufacturers specifications.
Diffstat (limited to 'drivers/atmodem/sim.c')
-rw-r--r--drivers/atmodem/sim.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c
index 297914d9..8edd5829 100644
--- a/drivers/atmodem/sim.c
+++ b/drivers/atmodem/sim.c
@@ -1269,12 +1269,28 @@ static struct ofono_sim_driver driver = {
.query_locked = at_pin_query_enabled,
};
+static struct ofono_sim_driver driver_noef = {
+ .name = "atmodem-noef",
+ .probe = at_sim_probe,
+ .remove = at_sim_remove,
+ .read_imsi = at_read_imsi,
+ .query_passwd_state = at_pin_query,
+ .query_pin_retries = at_pin_retries_query,
+ .send_passwd = at_pin_send,
+ .reset_passwd = at_pin_send_puk,
+ .lock = at_pin_enable,
+ .change_passwd = at_change_passwd,
+ .query_locked = at_pin_query_enabled,
+};
+
void at_sim_init(void)
{
ofono_sim_driver_register(&driver);
+ ofono_sim_driver_register(&driver_noef);
}
void at_sim_exit(void)
{
ofono_sim_driver_unregister(&driver);
+ ofono_sim_driver_unregister(&driver_noef);
}