mirror of git://git.sysmocom.de/ofono
isimodem: Fix message sending in SMS driver
The same enum name SMS_ROUTE_DEFAULT has different constants in different modem API versions. This was causing "invalid parameter" errors with some modems.
This commit is contained in:
parent
5d7b355ca2
commit
57f8f3ef1d
|
@ -469,7 +469,7 @@ static gboolean submit_tpdu(GIsiClient *client, unsigned char *pdu, int pdu_len,
|
|||
uint8_t hdr[] = {
|
||||
SMS_MESSAGE_SEND_REQ,
|
||||
mms, /* More messages to send */
|
||||
SMS_ROUTE_DEFAULT,
|
||||
SMS_ROUTE_ANY, /* Use any (default) route */
|
||||
0, /* Repeated message */
|
||||
0, 0, /* Filler */
|
||||
2, /* Subblock count */
|
||||
|
|
|
@ -163,6 +163,7 @@ enum sms_routing_command {
|
|||
};
|
||||
|
||||
enum sms_route_preference {
|
||||
SMS_ROUTE_ANY = 0x00,
|
||||
SMS_ROUTE_GPRS_PREF = 0x00,
|
||||
SMS_ROUTE_CS = 0x01,
|
||||
SMS_ROUTE_GPRS = 0x02,
|
||||
|
|
Loading…
Reference in New Issue