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);
|
||||
|
||||
if (sd->vendor == OFONO_VENDOR_MSM)
|
||||
if (sd->vendor == OFONO_VENDOR_QUALCOMM_MSM)
|
||||
strcat(buf, ",0,0,255"); /* Maximum possible length */
|
||||
|
||||
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;
|
||||
int len = sprintf(buf, "AT+CNMI=");
|
||||
|
||||
if (data->vendor == OFONO_VENDOR_HTC_G1)
|
||||
/* The G1 advertises support for mode 2, but returns an error
|
||||
* if we attempt to actually use it. */
|
||||
if (data->vendor == OFONO_VENDOR_QUALCOMM_MSM)
|
||||
/* MSM devices advertise support for mode 2, but return an
|
||||
* error if we attempt to actually use it. */
|
||||
mode = "1";
|
||||
else
|
||||
/* Sounds like 2 is the sanest mode */
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
enum ofono_vendor {
|
||||
OFONO_VENDOR_GENERIC = 0,
|
||||
OFONO_VENDOR_HTC_G1,
|
||||
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_barring_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);
|
||||
|
||||
mw = ofono_message_waiting_create(modem);
|
||||
|
|
|
@ -172,7 +172,7 @@ static void huawei_post_sim(struct ofono_modem *modem)
|
|||
DBG("%p", modem);
|
||||
|
||||
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 = {
|
||||
|
|
Loading…
Reference in New Issue