atmodem: check for VENDOR_HUAWEI on sim atom

This commit is contained in:
Lucas De Marchi 2011-01-10 19:02:26 -02:00 committed by Denis Kenzior
parent 34549b4bb0
commit 45f2576bb6
1 changed files with 3 additions and 1 deletions

View File

@ -143,8 +143,10 @@ 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_QUALCOMM_MSM)
if (sd->vendor == OFONO_VENDOR_QUALCOMM_MSM ||
sd->vendor == OFONO_VENDOR_HUAWEI) {
strcat(buf, ",0,0,255"); /* Maximum possible length */
}
if (g_at_chat_send(sd->chat, buf, crsm_prefix,
at_crsm_info_cb, cbd, g_free) > 0)