Merge master.kernel.org:/pub/scm/linux/kernel/git/padovan/bluetooth-2.6
authorGustavo F. Padovan <padovan@profusion.mobi>
Thu, 21 Apr 2011 00:47:07 +0000 (21:47 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 21 Apr 2011 00:47:07 +0000 (21:47 -0300)
Conflicts:
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c
net/bluetooth/mgmt.c

1  2 
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/l2cap_core.c

index a80bc1cdb35b6aa568215e5245aaff87bfc2799b,e7dced9080a52bb8dce80533fd5edbed4b098397..98aa24b92c585326570b2782e6bc164b8a3832dd
@@@ -586,10 -587,8 +586,11 @@@ static int hci_dev_do_close(struct hci_
        hci_req_cancel(hdev, ENODEV);
        hci_req_lock(hdev);
  
 +      /* Stop timer, it might be running */
 +      del_timer_sync(&hdev->cmd_timer);
 +
        if (!test_and_clear_bit(HCI_UP, &hdev->flags)) {
+               del_timer_sync(&hdev->cmd_timer);
                hci_req_unlock(hdev);
                return 0;
        }
Simple merge
index d47de2b04b2e70217f98c79693919547006fc34d,2c8dd4494c63966ffd0e5df4f66546139dea2f81..9e8dc136ef16309ca2ade909a0e7ae8b98de75fb
@@@ -1079,13 -1051,14 +1079,14 @@@ static void l2cap_retransmit_one_frame(
        tx_skb = skb_clone(skb, GFP_ATOMIC);
        bt_cb(skb)->retries++;
        control = get_unaligned_le16(tx_skb->data + L2CAP_HDR_SIZE);
+       control &= L2CAP_CTRL_SAR;
  
 -      if (pi->conn_state & L2CAP_CONN_SEND_FBIT) {
 +      if (chan->conn_state & L2CAP_CONN_SEND_FBIT) {
                control |= L2CAP_CTRL_FINAL;
 -              pi->conn_state &= ~L2CAP_CONN_SEND_FBIT;
 +              chan->conn_state &= ~L2CAP_CONN_SEND_FBIT;
        }
  
 -      control |= (pi->buffer_seq << L2CAP_CTRL_REQSEQ_SHIFT)
 +      control |= (chan->buffer_seq << L2CAP_CTRL_REQSEQ_SHIFT)
                        | (tx_seq << L2CAP_CTRL_TXSEQ_SHIFT);
  
        put_unaligned_le16(control, tx_skb->data + L2CAP_HDR_SIZE);