scripts: gcc-wrapper 4.8 fixes from Linaro
Bluetooth: Validate HCI device handle before updating scan state

Check if the HCI device handle is available prior to updating
the scan state.

Change-Id: Ifc278afecbcf2bc7a95bb6595028dd890a8b60f5
CRs-Fixed: 436733
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
Bluetooth:  Avoid queing power_on/off when during initial setup

Incase of SSR scenarios there is chance that user may request
for power_on/off while the ssr is going on, this need to be
avoided if the initial set up is not complete.

Change-Id: I2568a32e0ff18dba9faafe3d153852339b63841a
CRs-fixed: 432178
Signed-off-by: Bhasker Neti <bneti@codeaurora.org>
Bluetooth: Remove wake_locks added for BT idle timer

Wakelocks were used to address the issue related to timer
which was not triggered when device was put into suspend
mode.This does not impact the usecases as the link would
be put into sniff mode immediately after the device comes
out of suspend mode.

Change-Id: I648acf32c6ce9bd0d3415ac0e9dcd2250d3fb68d
Signed-off-by: Sumit Bajpai <sbajpai@codeaurora.org>
Bluetooth : Recover BT, if hardware error event is received from the SOC

If Hardware Error event is received from the SOC, then BT SOC is in bad
state. As per spec, Hardware Error event is handled in HCI. Upper layer
gets informed by HCI to reset everything. & recover BT state machine & BT
SOC.

Change-Id: Iefdf8511ad51f88ff8a24ab9e075eb8dbc0a0a67
Signed-off-by: Nitin Shivpure <nshivpur@codeaurora.org>
Bluetooth: Fix encryption key size for peripheral role

commit 89cbb4da0abee2f39d75f67f9fd57f7410c8b65c upstream.

This patch fixes the connection encryption key size information when
the host is playing the peripheral role. We should set conn->enc_key_
size in hci_le_ltk_request_evt, otherwise it is left uninitialized.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
bluetooth: removed unused variables fix build
remove msm: vidc: Validate input data
Merge branch 'test2' of https://github.com/g3tsum/android_kernel_lge_gee into test
media: fix errors relating to wise screen and buf_len
Revert "remove msm: vidc: Validate input data"

This reverts commit d81b033c1b9078c149e1796f422fa64bc13fb21e.