Skip to content

Commit

Permalink
Bluetooth: hci_uart: Add diag and address support for Intel/AG6xx
Browse files Browse the repository at this point in the history
The AG6xx devices behave similar to Wilkens Peak and Stone Peak and with
that it is needed to check for Intel default address. In addition it is
possible to enable vendor events and diag support.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Feb 29, 2016
1 parent 81d9044 commit 34bf191
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion drivers/bluetooth/hci_ag6xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ static int ag6xx_setup(struct hci_uart *hu)
bool patched = false;
int err;

hu->hdev->set_diag = btintel_set_diag;
hu->hdev->set_bdaddr = btintel_set_bdaddr;

err = btintel_enter_mfg(hdev);
if (err)
return err;
Expand Down Expand Up @@ -298,8 +301,16 @@ static int ag6xx_setup(struct hci_uart *hu)
complete:
/* Exit manufacturing mode and reset */
err = btintel_exit_mfg(hdev, true, patched);
if (err)
return err;

return err;
/* Set the event mask for Intel specific vendor events. This enables
* a few extra events that are useful during general operation.
*/
btintel_set_event_mask_mfg(hdev, false);

btintel_check_bdaddr(hdev);
return 0;
}

static const struct hci_uart_proto ag6xx_proto = {
Expand Down

0 comments on commit 34bf191

Please sign in to comment.