Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r4705 - in developers/werner/wep: . tests
      ([EMAIL PROTECTED])
   2. development tree for U-Boot: Changes to 'zecke'
      ([EMAIL PROTECTED])
   3. Holger's qtopia repo: Changes to 'master' ([EMAIL PROTECTED])
--- Begin Message ---
Author: werner
Date: 2008-10-08 07:17:05 +0200 (Wed, 08 Oct 2008)
New Revision: 4705

Modified:
   developers/werner/wep/Makefile
   developers/werner/wep/tests/Makefile
   developers/werner/wep/wepkey.c
   developers/werner/wep/wepkey.h
Log:
Cleanup, part 2. Code move separated for clarity.

- wepkey.h, wepkey.c: reversed order of wepkey_64 and wepkey_128
- tests/Makefile (all): run all tests
- Makefile (clean): also clean up tests/



Modified: developers/werner/wep/Makefile
===================================================================
--- developers/werner/wep/Makefile      2008-10-08 05:09:09 UTC (rev 4704)
+++ developers/werner/wep/Makefile      2008-10-08 05:17:05 UTC (rev 4705)
@@ -23,6 +23,7 @@
 
 clean:
                rm -f $(OBJS) .depend
+               $(MAKE) -C tests clean
 
 spotless:      clean
                rm -f wep

Modified: developers/werner/wep/tests/Makefile
===================================================================
--- developers/werner/wep/tests/Makefile        2008-10-08 05:09:09 UTC (rev 
4704)
+++ developers/werner/wep/tests/Makefile        2008-10-08 05:17:05 UTC (rev 
4705)
@@ -1,7 +1,10 @@
 .PHONY:        tests clean
 
+# We list all lower-case letter explicitly to keep localization from messing
+# with us.
+
 all:
-       ./foobar
+       for n in [abcdefghijklmnopqrstuvwxyz]*; do ./$$n || exit; done
 
 clean:
        rm -f _*

Modified: developers/werner/wep/wepkey.c
===================================================================
--- developers/werner/wep/wepkey.c      2008-10-08 05:09:09 UTC (rev 4704)
+++ developers/werner/wep/wepkey.c      2008-10-08 05:17:05 UTC (rev 4705)
@@ -27,35 +27,6 @@
 #include "wepkey.h"
 
 
-ssize_t wepkey_128(void *out, size_t size, const char *in, int n)
-{
-       const char extra[] = "#$%" "[EMAIL PROTECTED]" "%&^";
-       MD5_CTX ctx;
-       char buf[64];
-       unsigned char tmp[16];
-       int len, i, j;
-
-       if (size < WEPKEY_128_BYTES)
-               return -1;
-       if (n < 0 || n >= 4)
-               return -1;
-
-       len = strlen(in);
-       if (!len)
-               return -1;
-
-       for (i = 0; i != sizeof(buf); i++) {
-               j = i % (len+n*3);
-               buf[i] = j < len ? in[j] : extra[j-len];
-       }
-       MD5_Init(&ctx);
-       MD5_Update(&ctx, buf, sizeof(buf));
-       MD5_Final(tmp, &ctx);
-       memcpy(out, tmp+n, WEPKEY_128_BYTES);
-       return WEPKEY_128_BYTES;
-}
-
-
 ssize_t wepkey_64(void *out, size_t size, const char *in, int n)
 {
        int len, i;
@@ -85,3 +56,32 @@
        }
        return WEPKEY_64_BYTES;
 }
+
+
+ssize_t wepkey_128(void *out, size_t size, const char *in, int n)
+{
+       const char extra[] = "#$%" "[EMAIL PROTECTED]" "%&^";
+       MD5_CTX ctx;
+       char buf[64];
+       unsigned char tmp[16];
+       int len, i, j;
+
+       if (size < WEPKEY_128_BYTES)
+               return -1;
+       if (n < 0 || n >= 4)
+               return -1;
+
+       len = strlen(in);
+       if (!len)
+               return -1;
+
+       for (i = 0; i != sizeof(buf); i++) {
+               j = i % (len+n*3);
+               buf[i] = j < len ? in[j] : extra[j-len];
+       }
+       MD5_Init(&ctx);
+       MD5_Update(&ctx, buf, sizeof(buf));
+       MD5_Final(tmp, &ctx);
+       memcpy(out, tmp+n, WEPKEY_128_BYTES);
+       return WEPKEY_128_BYTES;
+}

Modified: developers/werner/wep/wepkey.h
===================================================================
--- developers/werner/wep/wepkey.h      2008-10-08 05:09:09 UTC (rev 4704)
+++ developers/werner/wep/wepkey.h      2008-10-08 05:17:05 UTC (rev 4705)
@@ -22,8 +22,8 @@
 #include <sys/types.h>
 
 
+#define WEPKEY_64_BYTES                5
 #define WEPKEY_128_BYTES       13
-#define WEPKEY_64_BYTES                5
 
 
 /*
@@ -31,7 +31,7 @@
  * or 13 bytes, respectively. "n" is the key index, in the range 0...3.
  */
 
+ssize_t wepkey_64(void *out, size_t size, const char *in, int n);
 ssize_t wepkey_128(void *out, size_t size, const char *in, int n);
-ssize_t wepkey_64(void *out, size_t size, const char *in, int n);
 
 #endif /* !WEPKEY_H */




--- End Message ---
--- Begin Message ---
Rebased ref, commits from common ancestor:
commit 6fe2cd603ea257bdb57a522bc5793c0fe00ebb9a
Author: Holger Freyther <[EMAIL PROTECTED](none)>
Date:   Tue Aug 12 16:54:38 2008 +0200

    Add a small hint that this is my u-boot.

commit 7bc7ee92fdd8b455386e0605fdd058219f89ea5d
Author: Holger Freyther <[EMAIL PROTECTED](none)>
Date:   Sat Jul 26 22:49:23 2008 +0200

    [s3c2440] Enable hardware ECC for large page NAND devices
        Enable hardware ECC for the s3c2442 CPU and large page (2K) NAND pages 
as
        used by the freerunner (gta02). NAND_ECC_HW3_256 was picked to be
        compatible with the Linux kernel. The values of ECC have not been 
verified.
    
        This way we can flash the kernel and rootfs from uboot and be able to 
use
        that from the kernel.

commit a33a797092580ccefe217d397ee5d7db8bbaf7db
Author: Holger Freyther <[EMAIL PROTECTED](none)>
Date:   Sat Jul 26 08:51:02 2008 +0200

    [gta02] Remove the code as it is marked liked this
        We can read the PCB version from kernel/user space so I assume
        we do not need this anymore.

commit 414367bf5b65942947dd5d569c27d2a8e8e5e562
Author: Harald Welte <[EMAIL PROTECTED]>
Date:   Tue Oct 7 18:49:49 2008 +0100

    u-boot: Fix DFU upload in u-boot
    
    Fix DFU upload in u-boot
    
    The existing USB DFU upload (read firmware from device to USB host) code
    was a big mess and probably only ever worked by accident.
    
    specifically, there were three bugs described in
    http://docs.openmoko.org/trac/ticket/1843 :
    
    * when it copies a new blockful of data, it copies it into the same buffer 
that
      urb->buffer was already pointing to, thus overwriting the beginning of the
      last buffer before it is sent back to the requestor
    
    * it then calls memcpy() to copy the beginning of the newly-read block to 
after
      the end of the buffer that urb->buffer is pointing to. If 
ds->nand->erasesize
      is the same as the _buf[] array, then this will write past the end of the
      _buf[] array and smash some other item in RAM.
    
    * if a requested buffer exactly reaches the end of the block that's been
      buffered in ds->buf, then handle_upload() will read a new NAND block into 
the
      buffer even though it is not needed. (The test for (len > remain) should
      probably go before the test for ds->ptr, not after?)
    
    So instead of fixing those issues individually, I rewored the logic
    for how to deal with DFU upload. Much simpler, and without those bugs.
    
    Signed-off-by: Harald Welte <[EMAIL PROTECTED]>

commit 1746c3657337018a3f14688ed4793be2ed609733
Author: Harald Welte <[EMAIL PROTECTED]>
Date:   Tue Oct 7 18:49:34 2008 +0100

    Enable hardware flow control for GSM/GPS
    
    GTA02 >= v3: Enable hardware flow control for GSM and GPS serial ports
    
    Without this patch, s3ser0 (GSM) and s3ser1 (GPS) will not properly
    work on GTA02 >= v3 hardware.
    
    Together with the previous patch, this fixes bug
    https://docs.openmoko.org/trac/ticket/1595
    
    Signed-off-by: Harald Welte <[EMAIL PROTECTED]>

commit 017271c84a1f5b8dc7a8869b2bf4d77347cce647
Author: Harald Welte <[EMAIL PROTECTED]>
Date:   Tue Oct 7 18:49:18 2008 +0100

    Fix init of non-console serial lines
    
    [serial]: Fix initialization of non-console serial lines
    
    When using a serial port for something that is not console operation
    (like the 'terminal' mode with GSM or GPS on Openmoko GTA02), then
    the serial port needs to be initialized properly.
    
    Signed-off-by: Harald Welte <[EMAIL PROTECTED]>




--- End Message ---
--- Begin Message ---
 .../phonevendors/ficgta01/vendor_ficgta01.cpp      |    9 +++++++++
 .../phonevendors/ficgta01/vendor_ficgta01_p.h      |    1 +
 src/libraries/qtopiaphonemodem/qmodemcall.cpp      |   10 +++++++---
 .../telephony/dialfilter/gsm/gsmkeyactions.cpp     |   11 -----------
 4 files changed, 17 insertions(+), 14 deletions(-)

New commits:
commit 91d64283e87eb3223bfcdd16d68a7a20b765fd7c
Author: Holger Freyther <[EMAIL PROTECTED]>
Date:   Fri Sep 26 21:02:00 2008 +0200

    [gsm/ficgta01] Use CUSD instead of ATD to send supplementary messages
        Based on patches from https://docs.openmoko.org/trac/ticket/2038.
    
        Quote and encode the number according to our default charset. This is
        not tested and will be tested once I'm back in germany.

commit 38cfd778cf3f9ed7a02c1e7c6ec92625f6a9bc9f
Author: Marco Trevisan (Treviño) <[EMAIL PROTECTED]>
Date:   Fri Sep 26 20:00:58 2008 +0200

    [gsm] Move detecting of supplementary service detection to one place




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to