qmimodem: sms: make routes compatible with gobi 2000

This commit is contained in:
Alexander Couzens 2017-10-16 15:47:19 +02:00
parent 0b845116b0
commit 1bc7ffe333
1 changed files with 9 additions and 2 deletions

View File

@ -460,11 +460,18 @@ static void get_routes_cb(struct qmi_result *result, void *user_data)
len = 2 + (1 * 4);
new_list = alloca(len);
new_list->count = GUINT16_TO_LE(1);
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].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();
if (!param)