Bluetooth: Enable saving LE services discovered to NVRAM

These changes allow the LE services discovered to be saved to the
bt_config file and send a HAL callback at the discovery completion
to set the device UUID property, in order to connect to the
service at subsequent connections.

CRs-Fixed: 587389
Change-Id: I8ce145907f58f6711c9c59990aec82187670bd9f
Fixes BLE LPP monitor callback issue

When BT is turned off and on, the callbacks
to lower power proximity RSSI  monitor APIs do
not get registered to provide updates to the
profile above.

Change-Id: I7f5c9277096bb2e689878d7e651a6c0a357d2831
Bluetooth: Add support to send/receive raw command/event

Support added to send/Receive raw command/event.

Change-Id: I194e9ceed29d60de492427784ae340691e4254e7
CRs-Fixed: 598650
Bluetooth: Include remote device name as part of filter list

This excludes deleting entries which has remote name during cleanup
of bt_config file after reaching max limit

Change-Id: I88aaf9efc2dd10780c06f533c6d61dc369c0efdd
Bluetooth: Increase gatt discover service timeout

this increases discovery timeout to 30secs to avoid gatt
close due to gatt responses delayed

Change-Id: Iefaedbdd1c255a88a4aa551e2084037d50ba6c20
CRs-Fixed: 594109
Bluetooth: Handle invalid packet in incoming stream

 - added null check
 - added state check

Change-Id: Ibc415f68f180dc6a69976ffb55c428c7fcd0b95b
CRs-Fixed: 586646
Merge "Bluetooth: Handle invalid packet in incoming stream"
Merge "Bluetooth: Add support to send/receive raw command/event"
Merge "Fixes BLE LPP monitor callback issue"
Merge "Bluetooth: Increase gatt discover service timeout"
Merge "Bluetooth: Include remote device name as part of filter list"
Bluetooth: Second time stream-setup without signalling connection down

 - handle stream setup events  in Idle State

Change-Id: Ib8b073540ac2d6d392d2cdbccca84f3a35138d33
CRs-Fixed: 584848
Bluetooth:GAP:Add authentication failed error code in auth_compl_evt.

There is an unhandle failed HCI error code when pairing with
symbian OS phone nokia n95 which will cause no prompt when
auth failed.

CRs-Fixed: 592453
Change-Id: I3a37c7732d1bf71c090bb968380d8c5f0af2ff79
Revert "Bluetooth: HID: Delay disabling HID until active connections"

This reverts commit 0c50b25af946856076efd5cc8cee8fbc4da79f2e.

Causes crash during HOGP reconnections when
Bluetooth is turned off and on.

Change-Id: I9aa31cc3d6aaefbb9ba2560620fcdd12f979a982
CRs-fixed: 597476
Merge "Bluetooth: Second time stream-setup without signalling connection down"
BT: Added new file btif_multi_hf.c

The new file contents are copied from Aosp
btif_hf.c file revision 5738f83a. This file
will be used for code modifications for Multi
HF implementation.

Change-Id: I8ba7f343cf85f9d78334a86087bca6942cc735c7
Merge "Revert "Bluetooth: HID: Delay disabling HID until active connections""
Update num of SBC frames per AVDTP packet

- Update num of SBC frames per AVDTP packet if it has not been
updated in sbc encoder init or update path.
- Update Subbands, Block Length, Channels with default configuration
if the values are not updated.

CRs-Fixed: 597519

Change-Id: I6070bf9c31534b1c539b9ef5a63e6c0f03894b62
Bluetooth:GAP: Avoid sending the ACL connected event again

Avoid sending the ACL connected event if already sent
for the same ACL connection, otherwise ACL count will be
incremented by one for the same ACL connection which is
not the expected behavior.

CRs-Fixed: 604797
Change-Id: I04e272425c317f7e94b6b8919a5432d3da2c8205
Bluetooth: To allow DUMO device to be processed by BREDR scan

This change lets a Dual mode device which is already processed
as LE device for the current inquiry, to be also processed as
a BR/EDR device in case an extended inquiry result is recvd.
This helps setting the cod correctly.

Change-Id: I0a0c598ebdafe2b6153015c3cda5dde8f7a15873
CRs-Fixed: 597856