Bluetooth: Remove conn update at conn_cmpl to prevent encruption failure

This patch removes the conn update sent by the host based
on previously stored preferred connection params at the time of
new connection to prevent encryption command being
disallowed by the controller

Change-Id: Id9f14f92cfed27f8e1d8d285475cfd110ef5168e
CRs-Fixed: 585765
Bluetooth: Add sdp record for Blueooth MAP: Email Message Access.

Add sdp record for Email Message Access, as part of email support
 in bluetooth Message Access profile.

Change-Id: I94dfa72c25bf19c7d43d343d842566f540be5e01
Bluetooth: GAP: Don't update short name if the device paired

Don't notify the BT APP about the shortened device name which
will be part of EIR response,incase of device is already
paired.

Incase if the alias name present for that device, it
will notify th BT APP alias name as the actual device name.

CRs-Fixed: 576911
Change-Id: Ia64e1e90aae8c4e0cc52643ce3bbbb1332fe5b66
Bluetooth: Updated SCO sniff policy.

This change makes sure that DUT
uses correct Sniff policy when
in SCO connection.

Change-Id: I291a3ebda86eebe8d0b5def271404350a9a91b46
CRs-Fixed: 586744
Bluetooth: Fix for device in paired list after cancelling pairing

This patch adds an additional check before determining the smp
status of the disconn_cmpl event received from the SOC.
In case the disconn_cmpl is sent by the controller, the reason
form smp failure is verified before terminating the smp delay
as a result of authentication failure.

Change-Id: Iaea219077b4f8a64ed346b58380d11fd5dbe2d03
CRs-Fixed: 573572
Bluetooth: Move to proper state on SDP failure

After SDP is failed for AVDTP connection, we should move
to proper stable state.

CRs-Fixed: 588108

Change-Id: I58e60cd29e9f2ede98cb514a7f45774a3bc1d8ac
Fixes host behavior for pin or key missing encryption issue

When the host receives encryption change event with
pin or key missing status, the host was disconnecting
the connection to the remote device. This change
makes the host send Pairing request in this scenario.

CRs-fixed: 562960

Change-Id: Iba2aff00d5e6ef0932570678482054d9748df225
Bluetooth: Fix timeout causing GattClose

This change increases the timeout between service
discovery completion and GattClose to 3 sec from
1 sec, to prevent disconnection in case of HOGP
profile.

Change-Id: If6fa54be2b7e937307cc63b44ee5f6ad106217b3
CRs-Fixed: 563123
Bluetooth: To disconnect HH profile at device unpair

This change sends a hal callback to the HIDService, to disconnect
the HH profile to make sure that the profile conn state
is correct at the time of successive connections and pairing.

Change-Id: Id8f66b22608cd5154d2e4b8e2217621294d6e339
CRs-Fixed: 573541
Bluetooth: GAP: Properly set btif_pending_mode

This patch properly set value of btif_pending_mode.

Change-Id: I3ac88dc69d3de474516600adfb17f14777d63bed
CRs-Fixed: 538672
Bluetooth: HID: Remove device from nvram on auth failure

This patch removed hid pointing device from nvram on authentication failure
due to pairing timeout or when wrong passkey is entered. Without this patch
it was observed that hid pointing device was always shown in paired list
when DUT was restarted after authentication failure.

Change-Id: I69c43d2ed982d5d5abfd5707db90ef4b5c65b34f
CRs-Fixed: 589376
Bluetooth: Reset SSR while in SCO.

Sniff Sub rating should not be used
when Link is in SCO connection since
the subrating value is higher, the link
would take more time to process ACL data
while in SCO connection causing unwanted
results like delay in SCO disonnects.

CRs-Fixed: 589299

Change-Id: If95531ded96a42a9eeeb5810e442a90066fdbded
Merge "Bluetooth: Move to proper state on SDP failure"
Merge "Bluetooth: Updated SCO sniff policy."
Merge "Bluetooth: Fix for device in paired list after cancelling pairing"
Merge "Bluetooth: Fix timeout causing GattClose"
Merge "Bluetooth: Remove conn update at conn_cmpl to prevent encruption failure"
Merge "Bluetooth: GAP: Don't update short name if the device paired"
Merge "Fixes host behavior for pin or key missing encryption issue"
Merge "Bluetooth: To disconnect HH profile at device unpair"