irda: Fix rd_frame control field initialization in irlap_send_rd_frame()
authorMaks Naumov <maksqwe1@ukr.net>
Tue, 12 Aug 2014 18:28:41 +0000 (11:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 03:05:52 +0000 (20:05 -0700)
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irlap_frame.c

index 9ea0c933b9ff8803c071367bfef0df210090a90f..a37998c6273d163eeb2cbbbce4182aea82bee418 100644 (file)
@@ -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);
 }