emulator: return if SLC is not yet established

This commit is contained in:
Denis Kenzior 2011-02-23 14:07:04 -06:00
parent bee05efc2a
commit 991f32aa5c
1 changed files with 3 additions and 1 deletions

View File

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