Fix release specific not reporting proper reason
authorDenis Kenzior <denkenz@gmail.com>
Wed, 19 Aug 2009 23:07:33 +0000 (18:07 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 19 Aug 2009 23:35:08 +0000 (18:35 -0500)
The proper disconnect reason was not being reported in the at modem
voicecall plugin

drivers/atmodem/voicecall.c

index cd6437f..c66872a 100644 (file)
@@ -352,7 +352,7 @@ static void release_id_cb(gboolean ok, GAtResult *result,
        decode_at_error(&error, g_at_result_final_response(result));
 
        if (ok)
-               vd->local_release = req->id;
+               vd->local_release = 0x1 << req->id;
 
        g_at_chat_send(vd->chat, "AT+CLCC", clcc_prefix,
                        clcc_poll_cb, req->vc, NULL);