diff options
author | Frédéric Dalleau <frederic.dalleau@linux.intel.com> | 2013-08-19 08:23:55 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-08-21 10:47:09 -0400 |
commit | 33f2404823f000f9b5fc570b0a08b1008e241578 (patch) | |
tree | b47e2d1bb31e1da23d4a4a57c25534db588c2f10 /net/bluetooth/sco.c | |
parent | e660ed6c70370dae0887e2b5224d8b6c1e138120 (diff) |
Bluetooth: Remove unused mask parameter in sco_conn_defer_accept
From Bluetooth Core v4.0 specification, 7.1.8 Accept Connection Request
Command "When accepting synchronous connection request, the Role
parameter is not used and will be ignored by the BR/EDR Controller."
Signed-off-by: Frédéric Dalleau <frederic.dalleau@linux.intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/sco.c')
-rw-r--r-- | net/bluetooth/sco.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index ab2502cbecfb..acdca68806db 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c | |||
@@ -651,7 +651,7 @@ static int sco_sock_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
651 | return err; | 651 | return err; |
652 | } | 652 | } |
653 | 653 | ||
654 | static void sco_conn_defer_accept(struct hci_conn *conn, int mask) | 654 | static void sco_conn_defer_accept(struct hci_conn *conn) |
655 | { | 655 | { |
656 | struct hci_dev *hdev = conn->hdev; | 656 | struct hci_dev *hdev = conn->hdev; |
657 | 657 | ||
@@ -663,11 +663,7 @@ static void sco_conn_defer_accept(struct hci_conn *conn, int mask) | |||
663 | struct hci_cp_accept_conn_req cp; | 663 | struct hci_cp_accept_conn_req cp; |
664 | 664 | ||
665 | bacpy(&cp.bdaddr, &conn->dst); | 665 | bacpy(&cp.bdaddr, &conn->dst); |
666 | 666 | cp.role = 0x00; /* Ignored */ | |
667 | if (lmp_rswitch_capable(hdev) && (mask & HCI_LM_MASTER)) | ||
668 | cp.role = 0x00; /* Become master */ | ||
669 | else | ||
670 | cp.role = 0x01; /* Remain slave */ | ||
671 | 667 | ||
672 | hci_send_cmd(hdev, HCI_OP_ACCEPT_CONN_REQ, sizeof(cp), &cp); | 668 | hci_send_cmd(hdev, HCI_OP_ACCEPT_CONN_REQ, sizeof(cp), &cp); |
673 | } else { | 669 | } else { |
@@ -697,7 +693,7 @@ static int sco_sock_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
697 | 693 | ||
698 | if (sk->sk_state == BT_CONNECT2 && | 694 | if (sk->sk_state == BT_CONNECT2 && |
699 | test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { | 695 | test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { |
700 | sco_conn_defer_accept(pi->conn->hcon, 0); | 696 | sco_conn_defer_accept(pi->conn->hcon); |
701 | sk->sk_state = BT_CONFIG; | 697 | sk->sk_state = BT_CONFIG; |
702 | msg->msg_namelen = 0; | 698 | msg->msg_namelen = 0; |
703 | 699 | ||