diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-08-30 13:32:29 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-30 13:32:29 -0400 |
commit | ed735ccbefaf7e5e3ef61418f7e209b8c59308a7 (patch) | |
tree | b8cc69814d2368b08d0a84c8da0c12028bd04867 /drivers/bluetooth/btuart_cs.c | |
parent | 39fbe47377062200acc26ea0ccef223b4399a82c (diff) | |
parent | d8971fcb702e24d1e22c77fd1772f182ffee87e3 (diff) |
Merge HEAD from /spare/repo/linux-2.6/.git
Diffstat (limited to 'drivers/bluetooth/btuart_cs.c')
-rw-r--r-- | drivers/bluetooth/btuart_cs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c index e4c59fdc0e12..89486ea7a021 100644 --- a/drivers/bluetooth/btuart_cs.c +++ b/drivers/bluetooth/btuart_cs.c | |||
@@ -211,9 +211,9 @@ static void btuart_receive(btuart_info_t *info) | |||
211 | if (info->rx_state == RECV_WAIT_PACKET_TYPE) { | 211 | if (info->rx_state == RECV_WAIT_PACKET_TYPE) { |
212 | 212 | ||
213 | info->rx_skb->dev = (void *) info->hdev; | 213 | info->rx_skb->dev = (void *) info->hdev; |
214 | info->rx_skb->pkt_type = inb(iobase + UART_RX); | 214 | bt_cb(info->rx_skb)->pkt_type = inb(iobase + UART_RX); |
215 | 215 | ||
216 | switch (info->rx_skb->pkt_type) { | 216 | switch (bt_cb(info->rx_skb)->pkt_type) { |
217 | 217 | ||
218 | case HCI_EVENT_PKT: | 218 | case HCI_EVENT_PKT: |
219 | info->rx_state = RECV_WAIT_EVENT_HEADER; | 219 | info->rx_state = RECV_WAIT_EVENT_HEADER; |
@@ -232,7 +232,7 @@ static void btuart_receive(btuart_info_t *info) | |||
232 | 232 | ||
233 | default: | 233 | default: |
234 | /* Unknown packet */ | 234 | /* Unknown packet */ |
235 | BT_ERR("Unknown HCI packet with type 0x%02x received", info->rx_skb->pkt_type); | 235 | BT_ERR("Unknown HCI packet with type 0x%02x received", bt_cb(info->rx_skb)->pkt_type); |
236 | info->hdev->stat.err_rx++; | 236 | info->hdev->stat.err_rx++; |
237 | clear_bit(HCI_RUNNING, &(info->hdev->flags)); | 237 | clear_bit(HCI_RUNNING, &(info->hdev->flags)); |
238 | 238 | ||
@@ -447,7 +447,7 @@ static int btuart_hci_send_frame(struct sk_buff *skb) | |||
447 | 447 | ||
448 | info = (btuart_info_t *)(hdev->driver_data); | 448 | info = (btuart_info_t *)(hdev->driver_data); |
449 | 449 | ||
450 | switch (skb->pkt_type) { | 450 | switch (bt_cb(skb)->pkt_type) { |
451 | case HCI_COMMAND_PKT: | 451 | case HCI_COMMAND_PKT: |
452 | hdev->stat.cmd_tx++; | 452 | hdev->stat.cmd_tx++; |
453 | break; | 453 | break; |
@@ -460,7 +460,7 @@ static int btuart_hci_send_frame(struct sk_buff *skb) | |||
460 | }; | 460 | }; |
461 | 461 | ||
462 | /* Prepend skb with frame type */ | 462 | /* Prepend skb with frame type */ |
463 | memcpy(skb_push(skb, 1), &(skb->pkt_type), 1); | 463 | memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); |
464 | skb_queue_tail(&(info->txq), skb); | 464 | skb_queue_tail(&(info->txq), skb); |
465 | 465 | ||
466 | btuart_write_wakeup(info); | 466 | btuart_write_wakeup(info); |