mirror of git://git.sysmocom.de/ofono
drivers/qmimodem: don't change the RAT when registering to an operator
When registering to an operator ofono uses the old RAT. In the case the modem is not connected to any network, this would use QMI_NAS_NETWORK_RAT_NONE which results in the error OP_DEVICE_UNSUPPORTED. Use QMI_NAS_NETWORK_RAT_NO_CHANGE instead to not define any preference.
This commit is contained in:
parent
f9df88a104
commit
1fafaee37e
|
@ -97,6 +97,7 @@ struct qmi_nas_network_rat {
|
|||
} __attribute__((__packed__)) info[0];
|
||||
} __attribute__((__packed__));
|
||||
|
||||
#define QMI_NAS_NETWORK_RAT_NONE 0x00
|
||||
#define QMI_NAS_NETWORK_RAT_GSM 0x04
|
||||
#define QMI_NAS_NETWORK_RAT_UMTS 0x05
|
||||
#define QMI_NAS_NETWORK_RAT_LTE 0x08
|
||||
|
|
|
@ -356,7 +356,7 @@ static void qmi_register_manual(struct ofono_netreg *netreg,
|
|||
|
||||
info.mcc = atoi(mcc);
|
||||
info.mnc = atoi(mnc);
|
||||
info.rat = data->current_rat;
|
||||
info.rat = QMI_NAS_NETWORK_RAT_NO_CHANGE;
|
||||
|
||||
qmi_param_append(param, QMI_NAS_PARAM_REGISTER_MANUAL_INFO,
|
||||
sizeof(info), &info);
|
||||
|
|
Loading…
Reference in New Issue