Google
  Web www.spinics.net

Re: baycom_ser_fdx - fixed under 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Mon, Jul 28, 2008 at 03:44:22PM +1200, Peter Mallett wrote:
> Pidoux wrote:
>> Hi,
....
>> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Site Home]     [Linux Newbie]     [Kernel Newbies]     [Memory]     [Security]     [Netfilter]     [Linux Admin]     [Bugtraq]     [Rubini]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [ARM Linux Kernel]     [Linux Networking]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linux Resources]


Add to Google Powered by Linux