mirror of git://git.sysmocom.de/ofono
emulator: return if SLC is not yet established
This commit is contained in:
parent
bee05efc2a
commit
991f32aa5c
|
@ -585,8 +585,10 @@ static void handler_proxy(GAtServer *server, GAtServerRequestType type,
|
|||
struct handler *h = userdata;
|
||||
struct ofono_emulator_request req;
|
||||
|
||||
if ((h->em->type == OFONO_EMULATOR_TYPE_HFP) && !h->em->slc)
|
||||
if (h->em->type == OFONO_EMULATOR_TYPE_HFP && h->em->slc == FALSE) {
|
||||
g_at_server_send_final(h->em->server, G_AT_SERVER_RESULT_ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case G_AT_SERVER_REQUEST_TYPE_COMMAND_ONLY:
|
||||
|
|
Loading…
Reference in New Issue