From patchwork Thu May 8 17:41:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Tsou X-Patchwork-Id: 347149 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [213.95.27.120]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7D26F1400C6 for ; Fri, 9 May 2014 03:43:09 +1000 (EST) Received: from localhost ([127.0.0.1] helo=ganesha.gnumonks.org) by ganesha.gnumonks.org with esmtp (Exim 4.72) (envelope-from ) id 1WiSLN-00011O-Ga; Thu, 08 May 2014 19:42:54 +0200 Received: from mail-qg0-f51.google.com ([209.85.192.51]) by ganesha.gnumonks.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from ) id 1WiSJu-00011H-SB for openbsc@lists.osmocom.org; Thu, 08 May 2014 19:41:27 +0200 Received: by mail-qg0-f51.google.com with SMTP id q107so3100488qgd.24 for ; Thu, 08 May 2014 10:41:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=ENte3V/GROBYTPz7By5yQtp3wycDa5m09kHcr5CdJig=; b=M2bk42NFUWJsCfPn/7zZ01t254FZl8XVHQrMrML2gieTZpAhXDyxzVlZ+JbDfAoLCq 3esK0OeaYJsFC3NZJcmQs5YkKyKHanH4FVrSG+fQ2MCKnqRJNXP8vFfIWUk3arM6JLBo V/G93GoQgaxFVyG/nGPJHQI8vH3pEUFO3su34f+jPwYxXgjvyCSVWjhy6kmYVIBED3c4 VGsKGYZNmdsi9KTkTQpgQ8YZoNZcy7zahe67aAO04+zEiUYUdKd+xWceQp/r77ffx4GX oF08wzahmFcfFFTERfUs2dmmG+M4Tk0WBbGa9P/PL42mhKO2d7NJ12o7GwYMN6taiS6H grTQ== X-Gm-Message-State: ALoCoQlIiHmmDitSMb8JRI+oexUmu1QLhiH2spN89FUZj+ZIdBpBFOO7m2+9OCDqIsOPHrcsXqIZ X-Received: by 10.229.58.68 with SMTP id f4mr7261908qch.18.1399570881634; Thu, 08 May 2014 10:41:21 -0700 (PDT) Received: from localhost ([2601:8:1f00:292:96de:80ff:fe6f:b37e]) by mx.google.com with ESMTPSA id 39sm1987642qgo.22.2014.05.08.10.41.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 May 2014 10:41:18 -0700 (PDT) Date: Thu, 8 May 2014 13:41:17 -0400 From: Thomas Tsou To: openbsc@lists.osmocom.org Subject: [osmo-bts PATCH] TRX: Remove extra TCH/HS puncturing value Message-ID: <20140508174117.GA28072@phenom.hsd1.va.comcast.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: 0.0 (/) X-BeenThere: openbsc@lists.osmocom.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development of the OpenBSC GSM base station controller List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openbsc-bounces@lists.osmocom.org Errors-To: openbsc-bounces@lists.osmocom.org 3GPP TS 05.03 "Channel coding" specifies the puncturing matrix (1,0,1) for class 1 information bits and tail bits valued u(0) to u(103) for a maximum puncturing index of 311. The puncturing index 313 exceeds the maximum index and causes osmo_conv_get_output_length() to output the improper length of 210 instead of 211. Signed-off-by: Thomas Tsou --- src/osmo-bts-trx/gsm0503_conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osmo-bts-trx/gsm0503_conv.c b/src/osmo-bts-trx/gsm0503_conv.c index 2a814ca..dc50e6c 100644 --- a/src/osmo-bts-trx/gsm0503_conv.c +++ b/src/osmo-bts-trx/gsm0503_conv.c @@ -139,7 +139,7 @@ static const int conv_tch_hr_puncture[] = { 253, 256, 259, 262, 265, 268, 271, 274, 277, 280, 283, /* Tail bits */ - 295, 298, 301, 304, 307, 310, 313, + 295, 298, 301, 304, 307, 310, /* End */ -1,