mirror of git://git.sysmocom.de/ofono
Add nasty quirk to allow HSO devices to read network code length
The AT+CRSM=192 commands are failing on HSO devices and thus it might be needed to return its details from a predefined database. Start with testing this for reading the network code length.
This commit is contained in:
parent
6a26431f58
commit
66c50b6a72
|
@ -110,6 +110,15 @@ static void at_sim_read_info(struct ofono_sim *sim, int fileid,
|
|||
struct cb_data *cbd = cb_data_new(cb, data);
|
||||
char buf[64];
|
||||
|
||||
if (sd->vendor == OFONO_VENDOR_OPTION_HSO) {
|
||||
unsigned char access[3] = { 0x00, 0x00, 0x00 };
|
||||
|
||||
if (fileid == SIM_EFAD_FILEID) {
|
||||
CALLBACK_WITH_SUCCESS(cb, 4, 0, 0, access, data);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!cbd)
|
||||
goto error;
|
||||
|
||||
|
|
|
@ -221,7 +221,8 @@ static void hso_pre_sim(struct ofono_modem *modem)
|
|||
DBG("%p", modem);
|
||||
|
||||
ofono_devinfo_create(modem, 0, "atmodem", data->control);
|
||||
sim = ofono_sim_create(modem, 0, "atmodem", data->control);
|
||||
sim = ofono_sim_create(modem, OFONO_VENDOR_OPTION_HSO,
|
||||
"atmodem", data->control);
|
||||
|
||||
if (sim)
|
||||
ofono_sim_inserted_notify(sim, TRUE);
|
||||
|
|
Loading…
Reference in New Issue