Do not abort bonding if link disconnects during SDP after Auth cmplt

If ACL link gets dropped during service search after bonding,
re-attempt service search instead of setting bond state to BOND_NONE
Bug 8611134

Change-Id: I77672d9f4feab634b3795a41e0d4e58903b5d275
Bluetooth: Added HFP features bitmask function.

This function gets excuted when application
sets the value of HFP features support and
ignore the stack's default bitmask.
CRs-Fixed: 482189

Change-Id: I4d4459c92980d145ffbbb60a3c4ebf6ddb0266cb
SDP: Fix for SDP query in certification test with Invalid PduSize

Bluedroid stack is only checking parameter length and input data length.
Added an extra logic to handle invalid data after getting last valid data.
CRs-Fixed: 491693

Change-Id: I607fbae8b40356d7ddb5dc5805e7c774e3f39137
Bluetooth: Change Sampling Frequency to 48 kHz

Change Default Sampling Frequency to 48 kHz by default to
match Audio Source.
CRs-fixed: 436686

Change-Id: I592b1afb351455e3222021640a29eefe120c4c9b
Bluetooth: Generalize bluedroid for smd and uart based soc's.

Remove compile time dependency to use bluedroid for SMD
based soc or uart based soc.

Change-Id: Ibb5ec04577af19b70bf0320db6e6349f2d3a079f
Bluetooth: reduce ringer timeout to 3 seconds.

Reduce Ringer timeout to 3 seconds to avoid getting beep
notification sound after every timeout
CRs-fixed: 467722

Change-Id: Ic812dbd480a77acf723d58f677a3a3bf06336ad1
Bluetooth: Store bonded HID device info into NVRAM.

Store ssr_max_latency and ssr_min_tout for bonded
HID device into NVRAM.
CRs-fixed: 476133

Change-Id: I1ec1682e3d7f4d2ee64b5eac118ec6c1ed694d5b
Bluetooth: Support to send HCI raw command to stack.

Provide an interface in stack to send
HCI raw commands to stack.

Change-Id: I3a44905feff8d41022db5281c1c874524f116fbd
Bluetooth: Add BTC support in Bluedroid.

Provides an interface to get HCI commands/events
for Bluetooth WLAN coexistance.

Change-Id: Iee93cee6be5301c055541d64338eb5fc7f8a438e
btc: Enable support to send HCI raw cmd read remote ver. to stack.

BTC module will not send HCI read remote feature command to stack,
so removing this support and enabling support to send HCI raw
command read remote version to stack.

Change-Id: I9e7d4fc18f2f20919ee89ac64e7efd6adbcdd031
MAP: Register MAP SDP record.

SDP Record register in Bluedroid Stack.

Change-Id: Ie6bd5fb750f08ddae05c5c168617c1abb5bad03c
CRs-fixed: 504042
FTP: Register FTP SDP record.

FTP SDP Record register in Bluedroid Stack.

Change-Id: I6d1f671eac6a97d2d7173afc0ba40318c7d642fc
CRs-fixed: 504049
Bluetooth: Enabled the WBS in BT stack.

This change enables compile time flag
BTM_WBS_INCLUDED in the stack.Enabling
this flag enables the WBS codec negotiation
code in the stack. Along with this
it allows BTIF layer to notify
the BT app about the codec negotiated and
changed.
All changes in stack is gaurded
using BLUETOOTH_QCOM_SW feature flag.

Change-Id: Icf8dd2fde9f8ad17e1842de7653d22ec9c5dfbaa
HCI: Avoid sending HCI commands while Authentication

IOP problem with some headsets like Plantronics Jaybird.
Remove commands change packet type,link policy during security
procedure. We are sending link policy command after connection complete.
CRs-Fixed: 500631

Change-Id: I995a38406c01fa2f75180734e4f48b8bfb383e3c
HID: Establish Interrupt Channel when Control channel is configured

This patch starts establishment of Interrupt channel only when HID Control
channel has been properly configured.
CRs-Fixed: 465491

Change-Id: Ifb1e61df055b1ed9c0beccb2dcd352cb9e11b1a7
Bluetooth: SAP: Add SAP SDP record to the Bluedroid stack

This change consists of:
 SAP profile's SDP record registration changes

Change-Id: I8a6a88c7a66e2b0732833f07227e632ebd010f10
Bluetooth: SAP: Add 16 digit authentication support for SAP

This change consists of:
16 digit authentication support for SAP

Change-Id: Iff295f516b5ed2036492fb8682a39eee57e5d979
Bluetooth: Allow reconnection from Host on paired HID Device.

Host can send connection request when paired HID device
is in disconnected state. we are not checking the
NORMALLY_Connectible flags from sdp record, and anyways
sending this request from host, for subsequent user initiated
connection. If the remote HID is not in pagescan mode, we will
2 retries to connect, before giving up. If the remote HID is
in page scan mode, it will get connected.
CRs-fixed: 463916, 478811
Conflicts:
	btif/src/btif_hh.c

Change-Id: I97efa11208ecabb97aa750f786266bce163d4c2e
Bluetooth: Setting authentication req to Low for Pointing devices.

If a HID Mouse is 2.0 device, it doesn't support bonding procedure.
If it is a 2.1 device, then authentication is mandatory and the
security level would be reset to HIGH. Since authentication is now
not performed for 2.0 HID mouse devices, SDP is triggerred before
L2CAP Control Channel creation which updates upper layer of pairing
being complete.
CRs-Fixed: 465421

Change-Id: I8568e61b24402d1233000a6d13cd33b782fb974a
Bluetooth: HID: Remove bond on connection failure

This patch sends bond state changed message to upper layers, when
bonding with HID devices fails due to connection timeout. Till now
upper layers were not informed of Bond state cahnged as None in
case when remote device is switched off or is not in page scan
mode.
CRs-Fixed: 514544

Change-Id: I4ace96ad5b82391d3fb4e93a68ec2d555f4d2f0a