patch-2.4.22 linux-2.4.22/net/irda/irlap_frame.c

Next file: linux-2.4.22/net/irda/irlmp_event.c
Previous file: linux-2.4.22/net/irda/irlap_event.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/net/irda/irlap_frame.c linux-2.4.22/net/irda/irlap_frame.c
@@ -162,8 +162,8 @@
 	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)) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)