Thread (5 messages) 5 messages, 4 authors, 2008-07-29

Re: baycom_ser_fdx - fixed under 2.6

From: Matti Aarnio <hidden>
Date: 2008-07-28 10:32:46
Also in: linux-hams

On Mon, Jul 28, 2008 at 03:44:22PM +1200, Peter Mallett wrote:
Pidoux wrote:
quoted
Hi,
....
quoted
73 de Bernard, f6bvp
--- a/drivers/net/hamradio/hdlcdrv.c    2008-07-22 10:40:20.000000000 +0200
+++ b/drivers/net/hamradio/hdlcdrv.c    2008-07-22 10:42:13.000000000 +0200
@@ -88,6 +88,7 @@
 static inline void append_crc_ccitt(unsigned char *buffer, int len)
 {
      unsigned int crc = crc_ccitt(0xffff, buffer, len) ^ 0xffff;
+    buffer += len;
     *buffer++ = crc;
     *buffer++ = crc >> 8;
 }
....
Hi,

   The Baycom MoDem problem is one I have battled for quite a while here.

How do I apply this patch to my Ubuntu 2.6.20-17-generic kernel.

I have the linux-source-2.6.20-2.6.20 source so which file do I apply  
the patch too ?
Officially:

  patch -p1 < patch.text

Easier for you:

 - pick editor that you know how to use (nano, vi, emacs, joe, jove...)
 - edit file  drivers/net/hamradio/hdlcdrv.c
   - locate function  append_crc_ccitt
   - add missing line
Then I need to recompile it ?
Yes.

Better would be to rebuild your kernel runtime in distribution specific
way -- which I do not know for Ubuntu.

Would this bug also affect the SCC Baycom card ?
No.  It does HDLC framing in hardware.
Regards ..... Peter
73 de Matti, OH2MQK
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help