build: Boot with permissive SELinux

* This can be either set from ramdisk or cmdline.
* Required until root is fixed properly.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
out: Update updater-binary

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
build: Update gitignore to consider lib files

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
out: Add pre-compiled binary and libraries

* mpdecision and Power HAL from Bacon. These doesn't
  give unnecessary min boosts and are compatible to
  use with our CPU Boost driver.
* Ramdisk changes are required in service definition
  and selinux policy update.
* Add experimental qualcomm perf lib.
* Set permissions accordingly.
* Add pre-compiled lights library.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
defconfig: Enable MSM RQ Stats

* MSM Runqueue stats is required by mpdecision.
* We have already made required changes to keep
  its hotplugging functionality disabled by default.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: limiter: Enable by default

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
nl80211: add scan width to bss and scan request structs

To allow scanning and working with 5 MHz and 10 MHz BSS, extend the
inform bss commands and add wrappers to take 5 and 10 MHz bss into
account.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Chet Lanctot <clanctot@codeaurora.org>
Signed-off-by: Amarnath Hullur Subramanyam <amarnath@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
cfg80211: clarify BSS probe response vs. beacon data

There are a few possible cases of where BSS data came from:
 1) only a beacon has been received
 2) only a probe response has been received
 3) the driver didn't report what it received (this happens when
    using cfg80211_inform_bss[_width]())
 4) both probe response and beacon data has been received

Unfortunately, in the userspace API, a few things weren't there:
 a) there was no way to differentiate cases 1) and 4) above
    without comparing the data of the IEs
 b) the TSF was always from the last frame, instead of being
    exposed for beacon/probe response separately like IEs

Fix this by
   i) exporting a new flag attribute that indicates whether or
      not probe response data has been received - this addresses (a)
  ii) exporting a BEACON_TSF attribute that holds the beacon's TSF
      if a beacon has been received
 iii) not exporting the beacon attributes in case (3) above as that
      would just lead userspace into thinking the data actually came
      from a beacon when that isn't clear

To implement this, track inside the IEs struct whether or not it
(definitely) came from a beacon.

Reported-by: William Seto
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Chet Lanctot <clanctot@codeaurora.org>
[amarnath@codeaurora.org: Only picked up the change in nl80211.h for the user
 space code to remain same. Other changes are not applicable for this version
 of the kernel]
Signed-off-by: Amarnath Hullur Subramanyam <amarnath@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: usbaudio: remove usbaudiosdev switch

- Remove usbaudiosdev switch to avoid reporting
  analog dock headset for USB headset

Signed-off-by: Divya Narayanan Poojary <dnaray@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ASoC: wcd9320: fix the no audio issue on triggering SSR

After the SSR is triggered there is possibility of the  mismatch
among  the cache register values and the actual hardware registers
values. Due to this some of the registers doesn't gets updated when
the enable sequence is triggered. This results incomplete path
getting enabled resulting in no audio.
Fix by updating the registers to the reset state and updating the
cache also. Also restart the mbhc for the proper headset detection

Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Signed-off-by: Divya Narayanan Poojary <dnaray@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ASoC: msm: qdsp6v2: Add SLIMBUS 3 TX port as valid port

Add Slimbus 3 TX port to the list of valid ports.
Otherwise opening of this port will fail.

Signed-off-by: Damir Didjusto <damird@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Revert "msm8974: Lower thermal thresholds"

* Degrades performance.

This reverts commit a3c1fc1f99848e18106dd51cdb1656f479ec440f.
msm: mdss: Add basic color preset interface

 0 -> Disabled
 1 -> Vivid preset
 2 -> Override with stock value

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>