mirror of git://git.sysmocom.de/ofono
sms: Don't bother setting SCA if we can't query
This commit is contained in:
parent
28b2c32dc7
commit
10e3ca440b
|
@ -256,7 +256,8 @@ static DBusMessage *sms_set_property(DBusConnection *conn, DBusMessage *msg,
|
|||
if (strlen(value) == 0 || !valid_phone_number_format(value))
|
||||
return __ofono_error_invalid_format(msg);
|
||||
|
||||
if (!sms->driver->sca_set)
|
||||
if (sms->driver->sca_set == NULL ||
|
||||
sms->driver->sca_query == NULL)
|
||||
return __ofono_error_not_implemented(msg);
|
||||
|
||||
string_to_phone_number(value, &sca);
|
||||
|
|
Loading…
Reference in New Issue