|
@@ -1729,6 +1729,22 @@ static void hci_cs_create_phylink(struct hci_dev *hdev, u8 status)
|
|
amp_write_remote_assoc(hdev, cp->phy_handle);
|
|
amp_write_remote_assoc(hdev, cp->phy_handle);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static void hci_cs_accept_phylink(struct hci_dev *hdev, u8 status)
|
|
|
|
+{
|
|
|
|
+ struct hci_cp_accept_phy_link *cp;
|
|
|
|
+
|
|
|
|
+ BT_DBG("%s status 0x%2.2x", hdev->name, status);
|
|
|
|
+
|
|
|
|
+ if (status)
|
|
|
|
+ return;
|
|
|
|
+
|
|
|
|
+ cp = hci_sent_cmd_data(hdev, HCI_OP_ACCEPT_PHY_LINK);
|
|
|
|
+ if (!cp)
|
|
|
|
+ return;
|
|
|
|
+
|
|
|
|
+ amp_write_remote_assoc(hdev, cp->phy_handle);
|
|
|
|
+}
|
|
|
|
+
|
|
static void hci_inquiry_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|
static void hci_inquiry_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|
{
|
|
{
|
|
__u8 status = *((__u8 *) skb->data);
|
|
__u8 status = *((__u8 *) skb->data);
|
|
@@ -2551,6 +2567,10 @@ static void hci_cmd_status_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|
hci_cs_create_phylink(hdev, ev->status);
|
|
hci_cs_create_phylink(hdev, ev->status);
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
+ case HCI_OP_ACCEPT_PHY_LINK:
|
|
|
|
+ hci_cs_accept_phylink(hdev, ev->status);
|
|
|
|
+ break;
|
|
|
|
+
|
|
default:
|
|
default:
|
|
BT_DBG("%s opcode 0x%4.4x", hdev->name, opcode);
|
|
BT_DBG("%s opcode 0x%4.4x", hdev->name, opcode);
|
|
break;
|
|
break;
|