summaryrefslogtreecommitdiff
path: root/comms/gammu/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'comms/gammu/patches/patch-ah')
-rw-r--r--comms/gammu/patches/patch-ah22
1 files changed, 22 insertions, 0 deletions
diff --git a/comms/gammu/patches/patch-ah b/comms/gammu/patches/patch-ah
new file mode 100644
index 00000000000..6511f4640b7
--- /dev/null
+++ b/comms/gammu/patches/patch-ah
@@ -0,0 +1,22 @@
+$NetBSD: patch-ah,v 1.1 2009/08/26 22:09:48 wiz Exp $
+
+https://bugs.cihar.com/view.php?id=981
+
+--- libgammu/phone/at/atgen.c.orig 2009-07-09 07:15:17.000000000 +0000
++++ libgammu/phone/at/atgen.c
+@@ -2205,12 +2205,11 @@ GSM_Error ATGEN_PrivSetDateTime(GSM_Stat
+ if (error == ERR_UNKNOWN) error = ERR_NOTSUPPORTED;
+
+ if (set_timezone && (
+- (error == ERR_INVALIDDATA
+- && s->Phone.Data.Priv.ATGEN.ReplyState == AT_Reply_CMEError
++ s->Phone.Data.Priv.ATGEN.ReplyState == AT_Reply_CMEError
++ && ((error == ERR_INVALIDDATA
+ && s->Phone.Data.Priv.ATGEN.ErrorCode == 24) ||
+ (error == ERR_INVALIDLOCATION
+- && s->Phone.Data.Priv.ATGEN.ReplyState == AT_Reply_CMEError
+- && s->Phone.Data.Priv.ATGEN.ErrorCode == 21)
++ && s->Phone.Data.Priv.ATGEN.ErrorCode == 21))
+ )) {
+ /*
+ * Some firmwares of Ericsson R320s don't like the timezone part,