mirror of git://git.sysmocom.de/ofono
qmimodem: sms: make routes compatible with gobi 2000
This commit is contained in:
parent
0b845116b0
commit
1bc7ffe333
|
@ -460,11 +460,18 @@ static void get_routes_cb(struct qmi_result *result, void *user_data)
|
||||||
len = 2 + (1 * 4);
|
len = 2 + (1 * 4);
|
||||||
new_list = alloca(len);
|
new_list = alloca(len);
|
||||||
|
|
||||||
|
|
||||||
new_list->count = GUINT16_TO_LE(1);
|
new_list->count = GUINT16_TO_LE(1);
|
||||||
new_list->route[0].msg_type = QMI_WMS_MSG_TYPE_P2P;
|
new_list->route[0].msg_type = QMI_WMS_MSG_TYPE_P2P;
|
||||||
new_list->route[0].msg_class = QMI_WMS_MSG_CLASS_NONE;
|
new_list->route[0].msg_class = QMI_WMS_MSG_CLASS_NONE;
|
||||||
new_list->route[0].storage_type = QMI_WMS_STORAGE_TYPE_NONE;
|
|
||||||
new_list->route[0].action = QMI_WMS_ACTION_TRANSFER_AND_ACK;
|
if (data->major == 1 && data->minor == 0) {
|
||||||
|
new_list->route[0].action = QMI_WMS_ACTION_STORE_AND_NOTIFY;
|
||||||
|
new_list->route[0].storage_type = QMI_WMS_STORAGE_TYPE_NV;
|
||||||
|
} else {
|
||||||
|
new_list->route[0].action = QMI_WMS_ACTION_TRANSFER_AND_ACK;
|
||||||
|
new_list->route[0].storage_type = QMI_WMS_STORAGE_TYPE_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
param = qmi_param_new();
|
param = qmi_param_new();
|
||||||
if (!param)
|
if (!param)
|
||||||
|
|
Loading…
Reference in New Issue