lkml.org 
[lkml]   [2003]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 2.5] IrLAP address fix
From
ir257_caddr_mask.diff :
<Patch from Jan Kiszka>
o [CORRECT] ignore the C/R bit in the LAP connection address.


diff -u -p linux/net/irda/irlap_frame.d0.c linux/net/irda/irlap_frame.c
--- linux/net/irda/irlap_frame.d0.c Mon Apr 7 17:35:46 2003
+++ linux/net/irda/irlap_frame.c Mon Apr 7 17:36:42 2003
@@ -162,8 +162,8 @@ static void irlap_recv_snrm_cmd(struct i
frame = (struct snrm_frame *) skb->data;

if (skb->len >= sizeof(struct snrm_frame)) {
- /* Copy the new connection address */
- info->caddr = frame->ncaddr;
+ /* Copy the new connection address ignoring the C/R bit */
+ info->caddr = frame->ncaddr & 0xFE;

/* Check if the new connection address is valid */
if ((info->caddr == 0x00) || (info->caddr == 0xfe)) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:35    [from the cache]
©2003-2011 Jasper Spaans