From patchwork Wed Mar 26 21:44:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Willmann X-Patchwork-Id: 334119 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [IPv6:2001:780:45:1d:225:90ff:fe52:c662]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D101814008D for ; Thu, 27 Mar 2014 08:49:57 +1100 (EST) Received: from localhost ([127.0.0.1] helo=ganesha.gnumonks.org) by ganesha.gnumonks.org with esmtp (Exim 4.72) (envelope-from ) id 1WSvhc-0006Vw-GZ; Wed, 26 Mar 2014 22:49:41 +0100 Received: from isonoe.totalueberwachung.de ([2a01:198:210:100::1]) by ganesha.gnumonks.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WSvdk-0006Qc-6V for openbsc@lists.osmocom.org; Wed, 26 Mar 2014 22:45:42 +0100 Received: from adrastea.totalueberwachung.de (p5099b351.dip0.t-ipconnect.de [80.153.179.81]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by isonoe.totalueberwachung.de (Postfix) with ESMTPSA id 90CD560058; Wed, 26 Mar 2014 22:45:29 +0100 (CET) Received: by adrastea.totalueberwachung.de (Postfix, from userid 1000) id 4ABAC220BC; Wed, 26 Mar 2014 22:45:27 +0100 (CET) From: Daniel Willmann To: OpenBSC Mailing List Subject: [FIX 2/2] fixup! sms: Fix support of negative timezone offsets in gsm340_gen_scts(). Date: Wed, 26 Mar 2014 22:44:43 +0100 Message-Id: <0d0003b8fc6be13f400a1407f88b165d3e8af272.1395869732.git.daniel@totalueberwachung.de> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1395870283-30330-1-git-send-email-dwillmann@sysmocom.de> References: <1395870283-30330-1-git-send-email-dwillmann@sysmocom.de> In-Reply-To: <02248a12c3e51d7e5f8b9ae9e3c54569b706e31a.1395869732.git.daniel@totalueberwachung.de> References: <02248a12c3e51d7e5f8b9ae9e3c54569b706e31a.1395869732.git.daniel@totalueberwachung.de> X-Spam-Score: -0.0 (/) Cc: Daniel Willmann , Alexander Chemeris 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 --- src/gsm/gsm0411_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gsm/gsm0411_utils.c b/src/gsm/gsm0411_utils.c index 3052dd7..b8a7b10 100644 --- a/src/gsm/gsm0411_utils.c +++ b/src/gsm/gsm0411_utils.c @@ -89,7 +89,7 @@ void gsm340_gen_scts(uint8_t *scts, time_t time) if (tm->tm_gmtoff >= 0) *scts++ = gsm411_bcdify(tm->tm_gmtoff/(60*15)); else - *scts++ = gsm411_bcdify(-tm->tm_gmtoff/(60*15)) | 0x80; + *scts++ = gsm411_bcdify(-tm->tm_gmtoff/(60*15)) | 0x08; #else #warning find a portable way to obtain timezone offset *scts++ = 0;