diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-08-09 23:30:28 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:55:13 -0400 |
commit | 0d48d93947dd9ea21c5cdc76a8581b06a4a39281 (patch) | |
tree | 96a1cbfe83a02e27fed3d30f1ac9f2fe05c17506 /drivers/bluetooth/hci_h4.c | |
parent | 2eb25a6c34504254760e67172f7518d6bfdd7676 (diff) |
[Bluetooth]: Move packet type into the SKB control buffer
This patch moves the usage of packet type into the SKB control
buffer. After this patch it is now possible to shrink the sk_buff
structure and redefine its pkt_type.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/bluetooth/hci_h4.c')
-rw-r--r-- | drivers/bluetooth/hci_h4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index 533323b60e63..cf8a22d58d96 100644 --- a/drivers/bluetooth/hci_h4.c +++ b/drivers/bluetooth/hci_h4.c | |||
@@ -112,7 +112,7 @@ static int h4_enqueue(struct hci_uart *hu, struct sk_buff *skb) | |||
112 | BT_DBG("hu %p skb %p", hu, skb); | 112 | BT_DBG("hu %p skb %p", hu, skb); |
113 | 113 | ||
114 | /* Prepend skb with frame type */ | 114 | /* Prepend skb with frame type */ |
115 | memcpy(skb_push(skb, 1), &skb->pkt_type, 1); | 115 | memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); |
116 | skb_queue_tail(&h4->txq, skb); | 116 | skb_queue_tail(&h4->txq, skb); |
117 | return 0; | 117 | return 0; |
118 | } | 118 | } |
@@ -239,7 +239,7 @@ static int h4_recv(struct hci_uart *hu, void *data, int count) | |||
239 | return 0; | 239 | return 0; |
240 | } | 240 | } |
241 | h4->rx_skb->dev = (void *) hu->hdev; | 241 | h4->rx_skb->dev = (void *) hu->hdev; |
242 | h4->rx_skb->pkt_type = type; | 242 | bt_cb(h4->rx_skb)->pkt_type = type; |
243 | } | 243 | } |
244 | return count; | 244 | return count; |
245 | } | 245 | } |