mirror of git://git.sysmocom.de/ofono
Fix: Rename G1 quirk to QUALCOMM_MSM
This commit is contained in:
parent
d6c3a513c6
commit
27e32f12cd
|
@ -113,7 +113,7 @@ static void at_sim_read_info(struct ofono_sim *sim, int fileid,
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "AT+CRSM=192,%i", fileid);
|
snprintf(buf, sizeof(buf), "AT+CRSM=192,%i", fileid);
|
||||||
|
|
||||||
if (sd->vendor == OFONO_VENDOR_MSM)
|
if (sd->vendor == OFONO_VENDOR_QUALCOMM_MSM)
|
||||||
strcat(buf, ",0,0,255"); /* Maximum possible length */
|
strcat(buf, ",0,0,255"); /* Maximum possible length */
|
||||||
|
|
||||||
if (g_at_chat_send(sd->chat, buf, crsm_prefix,
|
if (g_at_chat_send(sd->chat, buf, crsm_prefix,
|
||||||
|
|
|
@ -680,9 +680,9 @@ static gboolean build_cnmi_string(char *buf, int *cnmi_opts,
|
||||||
const char *mode;
|
const char *mode;
|
||||||
int len = sprintf(buf, "AT+CNMI=");
|
int len = sprintf(buf, "AT+CNMI=");
|
||||||
|
|
||||||
if (data->vendor == OFONO_VENDOR_HTC_G1)
|
if (data->vendor == OFONO_VENDOR_QUALCOMM_MSM)
|
||||||
/* The G1 advertises support for mode 2, but returns an error
|
/* MSM devices advertise support for mode 2, but return an
|
||||||
* if we attempt to actually use it. */
|
* error if we attempt to actually use it. */
|
||||||
mode = "1";
|
mode = "1";
|
||||||
else
|
else
|
||||||
/* Sounds like 2 is the sanest mode */
|
/* Sounds like 2 is the sanest mode */
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
enum ofono_vendor {
|
enum ofono_vendor {
|
||||||
OFONO_VENDOR_GENERIC = 0,
|
OFONO_VENDOR_GENERIC = 0,
|
||||||
OFONO_VENDOR_HTC_G1,
|
|
||||||
OFONO_VENDOR_CALYPSO,
|
OFONO_VENDOR_CALYPSO,
|
||||||
OFONO_VENDOR_MSM,
|
OFONO_VENDOR_QUALCOMM_MSM,
|
||||||
};
|
};
|
||||||
|
|
|
@ -168,7 +168,7 @@ static void g1_post_sim(struct ofono_modem *modem)
|
||||||
ofono_call_meter_create(modem, 0, "atmodem", chat);
|
ofono_call_meter_create(modem, 0, "atmodem", chat);
|
||||||
ofono_call_barring_create(modem, 0, "atmodem", chat);
|
ofono_call_barring_create(modem, 0, "atmodem", chat);
|
||||||
ofono_ssn_create(modem, 0, "atmodem", chat);
|
ofono_ssn_create(modem, 0, "atmodem", chat);
|
||||||
ofono_sms_create(modem, OFONO_VENDOR_HTC_G1, "atmodem", chat);
|
ofono_sms_create(modem, OFONO_VENDOR_QUALCOMM_MSM, "atmodem", chat);
|
||||||
ofono_phonebook_create(modem, 0, "atmodem", chat);
|
ofono_phonebook_create(modem, 0, "atmodem", chat);
|
||||||
|
|
||||||
mw = ofono_message_waiting_create(modem);
|
mw = ofono_message_waiting_create(modem);
|
||||||
|
|
|
@ -172,7 +172,7 @@ static void huawei_post_sim(struct ofono_modem *modem)
|
||||||
DBG("%p", modem);
|
DBG("%p", modem);
|
||||||
|
|
||||||
ofono_netreg_create(modem, 0, "atmodem", data->chat);
|
ofono_netreg_create(modem, 0, "atmodem", data->chat);
|
||||||
ofono_sms_create(modem, OFONO_VENDOR_HTC_G1, "atmodem", data->chat);
|
ofono_sms_create(modem, OFONO_VENDOR_QUALCOMM_MSM, "atmodem", data->chat);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ofono_modem_driver huawei_driver = {
|
static struct ofono_modem_driver huawei_driver = {
|
||||||
|
|
Loading…
Reference in New Issue