OSDN Git Service

Bluetooth: bpa10x: Read revision information in setup stage
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 8 Oct 2015 00:24:06 +0000 (02:24 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 8 Oct 2015 07:01:25 +0000 (10:01 +0300)
commitddd68ec8f4847b460c9f580076eafe13b031a6fd
tree199090d2fc38868a3d75182e9ceb04cbc2a543cc
parentacc649c6540ef224cc07d17c4b632da9dedfb6a2
Bluetooth: bpa10x: Read revision information in setup stage

For debugging pruposes, read the revision string of the BPA-10x devices
and print it. For example one of the latest devices respond with the
string SNIF_102,BB930,02/01/18,10:37:56.

  < HCI Command: Vendor (0x3f|0x000e) plen 1
          07                                               .
  > HCI Event: Command Complete (0x0e) plen 49
        Vendor (0x3f|0x000e) ncmd 1
          Status: Success (0x00)
          53 4e 49 46 5f 31 30 32 2c 42 42 39 33 30 2c 30  SNIF_102,BB930,0
          32 2f 30 31 2f 31 38 2c 31 30 3a 33 37 3a 35 36  2/01/18,10:37:56
          00 00 00 00 00 00 00 00 00 00 00 00 00           .............

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/bpa10x.c