wifi: support adding p2p0 when starting wpa_supplicant

Patch Set 2 : Fixed tabs

For TI wlan chips in p2p mode we need this omapzoom cherry-pick
to start p2p0 correctly.

http://www.omapzoom.org/?p=platform/hardware/libhardware_legacy.git;a=commit;h=ccb4c24db795059f1df365d313d80c6b269bc55e
By: Arik Nemtsov <arik@wizery.com>
On: Tue, 31 Jul 2012 21:21:20

Original commit description:
Add p2p0 using an NL80211 command when wpa_supplicant is started, and
p2p_supported is enabled.

Change-Id: Ibc0ad138513f024672642cc5764a81510aa38625
audio_policy: Fix volumes for ICS blob compat

Allow usage of the default audio_policy source, even if the primary
audio HAL is an ICS binary blob

Change-Id: I959a925f458e14380c2e5443b1378c4018d9f084
audio: Add support for QCOM audio devices, formats, and channels

- Add QCOM supported devices, fomats, and input/output
  channels in AudioPolicyManagerBase
- Add QCOM supported devices in AudioSystemLegacy.h

Change-Id: I5e2977a630c2bf9211af62d97ae024c5c57075f9

libhardware_legacy: Add support for DirectTrack

- Add support for DirectOutput in libhardware_legacy
- Add new APIs to AudioStreamOut base class
- Add audio output flags to openOutputStream

Change-Id: I301b3b9b2c2ad08dba75f616008d692e825af96f

audio: add missing QCOM audio devices, formats, and channels

- Add support for FM I/O devices and communication device for VOIP
- Add support for mp2 audio format
- Add support for 6.1 audio channels

Change-Id: I7b3042902c658dc8e5dfa34719fb80d18f3ff4e7

libhardware_legacy: Support LPA Playback

Add support to enable Playback in LPA mode

When Alarm is playing on headset+spkr, if LPA
playback is selected STARTEGY_MEDIA gets selected
and switches device from Combo device to Headset.
- Fix the issue by selecting Combo device only
even incase of LPA when stream ALARM/NOTIFICATION
is active.

Change-Id: Ifde78a744a17ce613eac92b4c3bcf875167aaeb6

Add ifdefs for QCOM enhanced features

Change-Id: I87ce3503ed85458c775d0c8c7fa649d8194e28e3
wifi: Add support for AP module args

 * Needed for Samsung's goofy handling of AP mode

Change-Id: I5ec65460b7c9f8ef34170473cf1bdaa36587767b
wifi: fix samsung wifi logic

Change-Id: Ib065c0dffa1265a17f5e4fd6ec0b0ad36bbc7b14
STE_FMRDIO:enable STE_FM radio

Change-Id: I77ff268d37f0359c45600132281d5620c7c2d61d
Squash all 4.2.2 changes into one

audio policy: direct output fix - DO NOT MERGE

merge "Close a newly opened direct output if its parameters are invalid"
from master

Change-Id: I27ac015217480a854d25273ab9498949971b411a

audio policy: fix dynamic parameter - DO NOT MERGE

merge from master:

"Fix a parse error in checkOutputForDevice

Fix a small parsing error in parsing the supported formats and sample
rates of a stream out with dynamic values for these parameters.  The
channel mask parser was properly skipping the "=" in the setting
string, but formats and sample rates were not (cauing the first
reported format and sample rate to end up being skipped)"

Change-Id: Id227a44f6b5fc0c223f2ce74f94ebb6abc5fa77d
Signed-off-by: John Grossman <johngro@google.com>

audio policy: fix volume problem - DO NOT MERGE

merge from master:

"audio policy: fix volume change when disabling SCO

commit 76e97d39 introduced a regression by having setDeviceConnectionState()
force a device change on duplicated outputs even if the selected device is 0.
This also forces a device 0 for the two outputs it is duplicated to,
which may override a valid device selection on those outputs and apply
default volumes.

Bug 7429869."

Change-Id: I37dd66343c54eb27e420089edbda04444fa1e2c6

audio policy: notification delay - DO NOT MERGE

merge from master:

"audio policy: fix notification start delay

The mechanism delaying notifications in case of
muliple active outputs with long latencies must
take into account recently paused audio tracks.

Bug 7400428."

Change-Id: I4ac9dfac81336e33f475b4f28df82713707d0c46

Fix stop supplicant api

Bug: 7227463
Change-Id: I4576e223c69dd67bd714fefecf0a1047770362fd
fmradio: cleanup QCOM_FM_ENABLED/STE_FM defs and ifdef

Change-Id: Ia34dca04e6b9de3509987ad9d88a5fecc3820e2f
wifi: add suport for WIFI_EXT_MODULE

Some wifi modules have dependencies on others (for SDIO, usually).
Use WIFI_EXT_MODULE_PATH to specify such dependencies

Change-Id: Ie8e746c1e69712be78d420d8e8ae8b015564a03d

Conflicts:

	wifi/wifi.c

Change-Id: I3fbc0065f76d91d170fb562159ea326caa4f3345
wifi: add suport for WIFI_EXT_MODULE

Some wifi modules have dependencies on others (for SDIO, usually).
Use WIFI_EXT_MODULE_PATH to specify such dependencies

Change-Id: I9b4ff82f27c836a2c003a342a4d0f4606cc37481
Sync WiFi upto CM

Change-Id: I20cd3d1d8d877be0e0b0192325e22a919abc4f26
Audio policy :Added EVRC and QCELP for 7x30 HAL compilation

Change-Id: Ie163b4b05d6f31af86e1e036b28ff0117a3c696e
qcom-fm: audio: add support for FM feature

-Add set_fm_volume() to set handle fm volume

Change-Id: I2a2c6a60b9855d9360ff8fb90849517e77e5faab

Conflicts:

	audio/AudioPolicyManagerBase.cpp
	include/hardware_legacy/AudioSystemLegacy.h
wifi: add a new "loading" state

Set wlan.driver.status to "loading" in wifi_load_driver to allow
external action being triggered by property change.

Change-Id: Ia4363de4c4e0e1a1c4759f5699fd5ea6e1bc3182
Primary output check for sonification is removed.

- When there are 3 different tracks (Ringtone, Music and Touchtone)
   the device switch happens for touchtones to primary if the primary
   output is active. This can lead to music being played in combo
   due to timing issue.
 - This is mainly because we have a check for, primary output if
   active we return true for SONIFICATION. This will set SONIFICATION
   for touch tones and this device switch will come after music device
   is set.
 - Hence music will start playing as SONIFICATION.
 - We have removed the primar output check for getting device strategy

Change-Id: Ibe2c381a887a49ea8b776fb2148f38b61532d021
CRs-Fixed: 456842
libhardware_legacy: Increase stream mute time

- Increase the stream mute time to avoid audio glitches
  while switching between combo devices.

Change-Id: I8b47e6e8b977b1025310fd2b16b452a6c11005bd
CRs-Fixed: 448577
Squash 4.3 changes.

Conflicts:
	audio/AudioPolicyManagerBase.cpp
	include/hardware_legacy/AudioPolicyManagerBase.h

Change-Id: I0ad14b712726c030f5732e6c90edc52f890bfc01
Remove duplicate

Change-Id: I1641ebcdf079ba86fdce1a38ddea8ad3dbef451e
squash several upstream changes from CM for our qcom devices

thanks

Change-Id: Iab25808768a8f017c9d6604f153988156e83f02c
Merge branch 'slim-4.3' into jb43

Conflicts:
	audio/AudioPolicyManagerBase.cpp
	include/hardware_legacy/AudioHardwareInterface.h
	include/hardware_legacy/AudioPolicyManagerBase.h
	include/hardware_legacy/AudioSystemLegacy.h
	wifi/wifi.c