diff options
author | Jeevaka Badrappan <jeevaka.badrappan@elektrobit.com> | 2011-02-11 11:20:29 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-02-11 11:43:54 -0800 |
commit | fdebfa0b21dd4faef312b7c1873a3262e1ac0361 (patch) | |
tree | f5f71d35bf1d213ba235e6724340197877c2a337 /drivers/ifxmodem | |
parent | 0930de931967e0c7a739fd9c7a86c2290c73f1af (diff) |
ifxmodem: fix issue in set rat mode
Diffstat (limited to 'drivers/ifxmodem')
-rw-r--r-- | drivers/ifxmodem/radio-settings.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ifxmodem/radio-settings.c b/drivers/ifxmodem/radio-settings.c index fd590ae6..bd292c59 100644 --- a/drivers/ifxmodem/radio-settings.c +++ b/drivers/ifxmodem/radio-settings.c @@ -145,7 +145,10 @@ static void ifx_set_rat_mode(struct ofono_radio_settings *rs, goto error; } - snprintf(buf, sizeof(buf), "AT+XRAT=%u,%u", value, preferred); + if (value == 1) + snprintf(buf, sizeof(buf), "AT+XRAT=%u,%u", value, preferred); + else + snprintf(buf, sizeof(buf), "AT+XRAT=%u", value); if (g_at_chat_send(rsd->chat, buf, none_prefix, xrat_modify_cb, cbd, g_free) > 0) |