Bluetooth: Changing vendor ID as Qualcomm for Device ID Profile

As per Specification, Device providers should configure the
vendor ID as the Company Identifier provided by the Bluetooth
SIG. Hence Changing vendor ID as Qualcomm for Device ID Profile.

Change-Id: I852113d2849ea4fd0725396fc92f320101aab0d0
CRs-Fixed: 547495
Bluetooth: Avoid overlapping Disconn commands from Host

In case the host doesnt reply to the pairing request,
and waits for the timeout, the timout causes a "disconnection"
and is folllowed by another one by SMP state machine,
at the pairing complete event. This changed adds a check,
to ignore the disconnect command, in case another one is in progress
to the same link

Change-Id: Ib71740bed80375fb44487e89600f05519cd58b10
CRs-Fixed: 546854
Use High bit rate if streaming MTU can accomodate all SBC frames

Use High bit rate only if negotiated AVDTP streaming channel out MTU
is capable of holding the entire data in a single frame. This
ensures streaming is smooth and makes proper usage of available bandwidth
by efficiently packing AVDTP streaming packet to hold required number of
sbc frames if remote is edr capable but supports lesser AVDTP MTU size
than required.

CRs-Fixed: 548647

Change-Id: Ie149ab4589cb514445e836c079b637ea62c1e394
Bluetooth: Reject unspported AVRCP commands

DUT sends accepted response to some of unsupported
AVRCP Pass through commands like F1, left , Right,
left up. Changes are made to ensure DUT sends response
as not implemented for unsupported AVRCP commands.

Change-Id: I5ed4844d05abedd927081f4890df20769a775930
CRs-Fixed: 551638
Bluetooth: Filter out random type LE address from storing in cache

Random type MAC addresses are not required to store in database
as they changes their address very frequently. Removes scan device
entries from database which are not bonded and have rolling
Bluetooth mac address.

This avoid bluedroid crash when LE Scan runs continuously.

Change-Id: Ib6214c5b92ba34d595378d6d0d1457e7860b9e1a
CRs-Fixed: 551716
Bluetooth: Passing the correct parameter as hci_handle on modeChange.

if sco disconnect  is waiting for the mode change on particular ACL.
then need to pass the hci_handle instead of hci_status.

CRs-Fixed: 554757
Change-Id: Icf20ff00012a616b7b8aaef7d35124c9afff35b1
Merge "Use High bit rate if streaming MTU can accomodate all SBC frames"
Bluetooth: Add Get/Set socket option to the Rfcomm socket

Introduced Get/Set socket option support to the Rfcomm socket.
Currently Rfcomm socket supports get/set modem bits socket
options.For other sockets it will return error.

Change-Id: Ia1779293b643c22d3f754c7f405646d42eb94963
Bluetooth: DUN: Add DUN SDP record to the Bluedroid stack

Implemented the DUN profile's SDP record registration in
BT-IF layer.

Change-Id: I432496079ae0d7325805b1b1cf684629bbf51035
Bluetooth: Interleave scan intervals change for optimum results

In case of interleave scan, the scan intervals need to be short
at the start and increase for the last two portions.
This will help discovery of more number of devices.

Change-Id: I026207a3ae700583dd0c68e273cb1ba61ee5bee3
CRs-Fixed: 557624
Bluetooth: Cleaning up pan_conn DB, if connection is not successful.

A case where DUT is paired with remoteDeviceA &  remoteDeviceB.
remoteDeviceA is not pagable(turned off or some other reason).
DUT(PANU) try to connect remoteDeviceA(NAP). But connection is
unsuccessful, Because remoteDeviceA is not pagable, In this scenario
btpan_conn Database is not cleaning up at btif layer. Later
remoteDeviceB(PANU) connect to DUT(NAP) & connection is succesful,
When remoteDeviceB disconnect existing connection. As database
still has remoteDeviceA BD address at Btif layer. remoteDeviceA
BD address is passed instead of remoteDeviceB BD address from Btif
to UI. So remoteDeviceB still shows connected on UI. Cleaning up
pan_conn database for particular pan connection at BTIF layer,
whichever connection is not successful will solve this issue.

Change-Id: I31dfe3ef46295e74bbfb57563e4fd4fc7155f006
CRs-Fixed: 555310
Merge "Bluetooth: Add Get/Set socket option to the Rfcomm socket"
Merge "Bluetooth: DUN: Add DUN SDP record to the Bluedroid stack"
Bluetooth: Saving remote trust value in config file.

Add change to set the trust value for remote device and saving it
to config file after updating the trust property value.

Change-Id: I7d20318a3ab398576da185ba3426b843cb359a1c
Merge "Bluetooth: Passing the correct parameter as hci_handle on modeChange."
Merge "Bluetooth: Avoid overlapping Disconn commands from Host"
Merge "Bluetooth: Filter out random type LE address from storing in cache"
Merge "Bluetooth: Interleave scan intervals change for optimum results"
Merge "Bluetooth: Saving remote trust value in config file."
Merge branch 'jb_mr2' of git://codeaurora.org/platform/external/bluetooth/bluedroid into cm-10.2