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:
Aki Niemi 2011-04-14 14:44:45 +03:00
parent 5d7b355ca2
commit 57f8f3ef1d
2 changed files with 2 additions and 1 deletions

View File

@ -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 */

View File

@ -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,