Commit a5ae87c6 authored by Jean Tourrilhes's avatar Jean Tourrilhes Committed by Linus Torvalds

[PATCH] IrLAP address fix

ir257_caddr_mask.diff :
		<Patch from Jan Kiszka>
	o [CORRECT] ignore the C/R bit in the LAP connection address.
parent bd6258cc
...@@ -162,8 +162,8 @@ static void irlap_recv_snrm_cmd(struct irlap_cb *self, struct sk_buff *skb, ...@@ -162,8 +162,8 @@ static void irlap_recv_snrm_cmd(struct irlap_cb *self, struct sk_buff *skb,
frame = (struct snrm_frame *) skb->data; frame = (struct snrm_frame *) skb->data;
if (skb->len >= sizeof(struct snrm_frame)) { if (skb->len >= sizeof(struct snrm_frame)) {
/* Copy the new connection address */ /* Copy the new connection address ignoring the C/R bit */
info->caddr = frame->ncaddr; info->caddr = frame->ncaddr & 0xFE;
/* Check if the new connection address is valid */ /* Check if the new connection address is valid */
if ((info->caddr == 0x00) || (info->caddr == 0xfe)) { if ((info->caddr == 0x00) || (info->caddr == 0xfe)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment