Merge tag 'android-4.3_r2.1' into cm-10.2

Android 4.3 release 2.1
wlan: Make allocation dynamic instead of static array

Fix buffer overun issue due to static array allocation.
Dynamic allocation is done according to  IE length's to
resolve this issue.

Change-Id: I85d6cbb25c98786662874f22eee574e611e57c46
CRs-fixed: 457100
Merge "wlan: Make allocation dynamic instead of static array"
qcwcn: Properly indicate "channel list changed" event

Code exists such that when a "COUNTRY" command is executed, a "channel
list changed" event is supposed to be sent to the supplicant.  However
due to a logic error the event is not actually sent.  Modify the code
to properly detect when a "COUNTRY" command is successfully processed
so that the event is sent.  Also do the same for "SETCOUNTRYREV" and
"SETBAND" since these also result in a change in the channel list.

Change-Id: I85283a22f106171dd30f494e40a7a4e88631bb06
CRs-fixed: 482678
Merge "qcwcn: Properly indicate "channel list changed" event"
wlan: Updating dwelltime in run time.

Added Driver command to get and set dwell time.
This will call appropriate driver ioctl to get and set dwell time.

Change-Id: I6ab55d25bfba2d8c37eff88715b867f9271be0cb
CRs-Fixed: 507132.
Merge "wlan: Updating dwelltime in run time."
wlan: Add WCNSS service daemon

The primary job of this daemon is to collect the calibrated data
recieved from WCNSS FW thru platform driver; and save it to a file.
And pass this stored calibrated data to firmware, when the device
boots next time.

WCNSS Firmware needs raw NV data (settings & some register values),
to do the power-on calibration. Once firmware does the power-on
calibration; it can then re-use the calibrated data. And it need
not do the calibration again in the next time it boots.

So WCNSS will send this calibrated data to Apps; and this service
should save this into a persistent area. And in the further bootup,
this service will send the calibrated data to WCNSS.

Change-Id: I9497595036d580f1fffc2a99d419123d542d950a
CRs-Fixed: 458741
wcnss: Ignore calibrated data during factory testing

Optional feature to force WCNSS power-on calibration. This is required
for factory testing.

Change-Id: I8d5823efb35d03a0568fe17b0bbbf5bbf6c88861
CRs-Fixed: 518702
Merge "wlan: Add WCNSS service daemon"
Merge "wcnss: Ignore calibrated data during factory testing"
Merge branch 'jb_2.6' of git://codeaurora.org/platform/hardware/qcom/wlan into cm-10.2
Merge tag 'android-4.4_r1' into cm-11.0

Android 4.4 Release 1.0
wcnss: Add support to copy WLAN config file

Copy WLAN config files to data partition at first bootup; this copy is
also done after a factory reset or after an OTA update.  This change
also adds support to plumb certain WCNSS module parameters.

Change-Id: I738e4adec9066b82b499885dbea1801902f78f0b
CRs-Fixed: 516009
wlan: Use wcnss driver's control interface

Setup the parameters required by wcnss driver thru the control
interface; serial number (for MAC address auto-generation), calibrated
data availability etc. are some of the parameters configured thru this
interface.  These parameters were earlier written thru module parameters,
however that required the wcnss service daemon to have the root permission.

CRs-Fixed: 590457
Change-Id: Ia655ad142c95d542da1ef6b555c13351d6cba5f2
wcnss-service: Preseve old behavior as default

Set TARGET_USES_WCNSS_CTRL := true in Boardconfig to use
the new /dev/wcnss_ctrl and ini in system/etc/wifi

Change-Id: I9912ab03e71c8e0ed4dfd4296e5f12b465ae29d5
wlan: Adding support for batch scan feature

Return the buffer size when driver command is invoked
for batch scan.

Change-Id: I34862f1c97a7747c699f6ada43686523f8b0c6c7
CRs-fixed: 600762
wcnss_service: Added support to read wlan mac from Modem NV

Added support to read wlan mac from Modem NV using QMI interface

Change-Id: Ie53eec6e696fe0afcd756a8c4d3d42f2350b82f9
CRs-Fixed: 583465
wcnss: Write WLAN Mac addr through Ctrl interfafe

wcnss userspace service will use user control interface to
configure certain parameters required by wcnss driver. write
WLAN Mac addr through Ctrl interfafe.

Change-Id: I08abf1f1531e492611b8544a3eec76deb8105703
CRs-fixed: 636970

Conflicts:
	wcnss-service/wcnss_service.c
wcnss-service: Additional guard on QMI support

Change-Id: I68ce99a2e9ffd3949c994176a8fb0987f92f3baa