cfg80211/nl80211: add API for MAC address ACLs

Add API to enable drivers to implement MAC address based
access control in AP/P2P GO mode. Capable drivers advertise
this capability by setting the maximum number of MAC
addresses in such a list in wiphy->max_acl_mac_addrs.

An initial ACL may be given to the NL80211_CMD_START_AP
command and/or changed later with NL80211_CMD_SET_MAC_ACL.

Black- and whitelists are supported, but not simultaneously.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
[rewrite commit log, many cleanups]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 77765eaf5cfb6b8dd98ec8b54b411d74ff6095f1
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
CRs-fixed: 487410
Change-Id: I9593b887941be5efa5e96546ad92cd6c6bf8fb87
[resolved 3.4 backport issues]
Signed-off-by: Vinay Krishna Eranna <veran@codeaurora.org>
perf: Treat attr.config as u64 in perf_swevent_init()

Trinity discovered that we fail to check all 64 bits of
attr.config passed by user space, resulting to out-of-bounds
access of the perf_swevent_enabled array in
sw_perf_event_destroy().

Introduced in commit b0a873ebb ("perf: Register PMU
implementations").

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: davej@redhat.com
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Patch-mainline: linux-kernel @ 04/13/13, 19:49
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.com>
Merge "perf: Treat attr.config as u64 in perf_swevent_init()"
msm_fb: Fix display corruption with continuous splash screen feature

During boot up, we observe random lines on screen between the
splash_screen image and the android animation. MDP clocks
were turned off during bootup. Fix this issue by enabling
the clocks when this feature is enabled.

Add check to see that the video mode engine is not busy before
turning off the dsi controller to avoid any underruns.

CRs-Fixed: 399634

Change-Id: I8fdb50fa848362a548b8cdd53ee1817346b57716
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>

Conflicts:
	drivers/video/msm/mdp.c

Signed-off-by: raghavendra ambadas <rambad@codeaurora.org>
iopoll: Introduce memory-mapped IO polling macros

It is sometimes necessary to poll a memory-mapped register until its
value satisfies some condition. Introduce a family of convenience macros
that do this. Tight-loop and sleeping versions are provided with and
without timeouts.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Change-Id: Ia7db00cbe60ded8b0ed9bbff264aaea0841da92a
Merge "msm_fb: Fix display corruption with continuous splash screen feature"
Merge "iopoll: Introduce memory-mapped IO polling macros"
defconfig: msm8960: Enable SELinux and its dependencies

To have more control over the access rights for different
user space needs SELinux imposes mandatory access controls
on Linux. Which allows an administrator of a system to
define how applications and users can access different
resources such as files, devices, networks and inter-process
communication.

Change-Id: Id59c69a5176c064df1dfad5f8f4a5c236460db57
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
fix CTS issue : testAllFilesInSysAreNotWritable

Changing the permissions of the following debugfs nodes
/sys/kernel/debug/afe_loopback,
/sys/kernel/debug/usb_serial0/reset,
/sys/kernel/debug/audio_out_latency_measurement_node,
/sys/kernel/debug/afe_loopback_gain,
/sys/kernel/debug/audio_in_latency_measurement_node
Write permission removed for "others"

CRs-Fixed: 523129
Change-Id: I2c0af632ba034d7afce217e8023c1731210c9826
Signed-off-by: Ajay Raghothama <ajayr@codeaurora.org>
Merge "defconfig: msm8960: Enable SELinux and its dependencies"
Merge "fix CTS issue : testAllFilesInSysAreNotWritable"
Merge "cfg80211/nl80211: add API for MAC address ACLs"
msm: kgsl: Remove extra call to sync_fence_put()

sync_fence_put is called twice and cause NULL pointer dereference.

Change-Id: Ia29e676af28d9040d1ba1ee8669f1306cc8b4035
Signed-off-by: Alex Wong <waiw@codeaurora.org>
msm: kgsl: Hold the pm_qos vote at all times when ACTIVE

The GPU needs access to the L2 cache while running.  If the
CPU is not also active using the cache can lead to stability
issues.  Keep the CPU out of idle power collapse at all times
while the GPU is running.

CRs-Fixed: 397489

Conflicts:

	drivers/gpu/msm/kgsl_pwrctrl.c

Change-Id: Iab2d8c601e903aadc4060f7c6d67bc128840edbf
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
msm: kgsl: Turn off the CP_DEBUG dynamic clock

The CP dynamic clock seems to be glitchy when the CP clocks are turned
back on after a power event. Turn off said dynamic clock control at
init time. The impact of leaving the dynamic clock control off is
negligible since the CP clock is only on when the CP is actually in
use.

CRs-fixed: 402119
CRs-fixed: 409253
CRs-fixed: 413224

Conflicts:
	drivers/gpu/msm/adreno_ringbuffer.c

Change-Id: Ic0dedbad783f8b911d9b57d1602d9b3976af1b3b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Merge "msm: kgsl: Remove extra call to sync_fence_put()"
Merge "msm: kgsl: Hold the pm_qos vote at all times when ACTIVE"
Merge "msm: kgsl: Turn off the CP_DEBUG dynamic clock"
msm: kgsl: Always send fence sync the timestamp it expects

Fence sync seems to react badly when it gets a unexpected timestamp
on a timeline.  When a event expires always send the expected timestamp
even if the event expired because the context was destroyed.

Conflicts:

	drivers/gpu/msm/kgsl_sync.c

Change-Id: Ic0dedbad770363a00257d62c4940f7743bc33060
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Merge "msm: kgsl: Always send fence sync the timestamp it expects"