Bluetooth: Remove out of range devices after ScanComplete

Change to remove device from UI when Bluetooth of remote
device is off or not discoverable anymore. Without this
change a device that discovered previously is available
in available devices list always, though the remote device
is not discoverable anymore. The current change updates
available devices list on scan complete removing the
devices that are available in cached devices and are not
disvorable anymore.

This reverts commit 1b652eb600ad7b4a769ad495bbb7eb4c6ab82fb2.

CRs-Fixed: 523374
Change-Id: Ia250d52e6fb7a69af242c961d33027f1e724ab25
WifiSettings: Handle DISABLED_ASSOCIATION_REJECT.

Upon receiving multiple association rejects for a network,
framework disables corresponding network providing reason
code as DISABLE_ASSOCIATION_REJECT. this is handled
in order to provide appropriate user experience.
CRs-fixed: 484247

Change-Id: I3d344068a58d2dfd82c9bc8b23f43fdf980cc4d9
Bluetooth: SAP: Add SAP profile support in Settings APP

This change consists of:,
 16 digit Authentication
 SAP profile connection status changes
 SAP Disconnect from server related changes

Change-Id: I57870a75c30e03b3c244d56e9b55a1367490bfc9
Updates the P2P peer list when there is P2P State Change Action

In the current implementation of JBMR2 the P2P window gets
updated with the Peers list only when there is
WIFI_P2P_PEERS_CHANGED_ACTION Intent.
Thus the P2P status remains unchanged when there is
WIFI_P2P_STATE_CHANGED_ACTION intent.
Here the changes are imported from JBMR1. When there is back and forth
navigation to P2P window, WIFI_P2P_STATE_CHANGED_ACTION intent invokes
the onPeersAvaliable function asynchronously and updates the P2P status
and peers list.

CRs-fixed: 512821
Change-Id: I69b26ef72bf30f547bf8fb5580d440c5119df054
Packages: Fix for SAP turn ON/OFF fails issue.

Turnig ON/OFF SAP repeatedly when WIFI is ON results
in command CMD_SET_AP being received in WifiStaEnabledState
of the state machine, which will not be handled and because
of this SoftAP is not turned ON and we receive no events
thus the check box remains greyed out/disabled.

To resolve this wait for WIFI_STATE_CHANGED intent before
re-enabling the SAP.

Change-Id: I1a37ac6406ea5e342d6dcb80654c2728fa447e57
CRs-Fixed: 525872
Fix crash if HW tuning framework isn't present.

Change-Id: I0128d57a5a46e87fe414a2682847ff877d8b1428