Subject: [PATCH] irda: Fix rd_frame control field initialization in irlap_send_rd_frame()

From: Maks Naumov <[email-masked]>
Date: Tue, 12 Aug 2014 12:10:56 -0700

>>From 4b2031adff2418d18f634be3655c2cebb51212e3 Mon Sep 17 00:00:00 2001
From: Maks Naumov <[email-masked]>
Date: Tue, 12 Aug 2014 11:28:41 -0700
Subject: [PATCH] irda: Fix rd_frame control field initialization in irlap_send_rd_frame()

Signed-off-by: Maks Naumov <[email-masked]>
---
 net/irda/irlap_frame.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/irda/irlap_frame.c b/net/irda/irlap_frame.c
index 9ea0c93..a37998c 100644
--- a/net/irda/irlap_frame.c
+++ b/net/irda/irlap_frame.c
@@ -622,7 +622,7 @@ void irlap_send_rd_frame(struct irlap_cb *self)
 	frame = (struct rd_frame *)skb_put(tx_skb, 2);
 
 	frame->caddr = self->caddr;
-	frame->caddr = RD_RSP | PF_BIT;
+	frame->control = RD_RSP | PF_BIT;
 
 	irlap_queue_xmit(self, tx_skb);
 }
-- 
1.9.1