libhardware_legacy/wifi: add workaround for ar6000 driver

The ar6000 driver requires the interface to be brought up in order
for scanning to function. Without this change, the supplicant fails
on first activation of wifi, and will only connect successfully
after multiple retries. This workaround is also necessary to fix
Wi-Fi hotspot mode (in conjunction with another change to
system/netd).

Backported from CM7.

Change-Id: I11fa55ab23295d40041df097450b73484f52b042
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
libhardware_legacy: wifi: Add support for WIFI_EXT_MODULE.

This is needed on some devices which load SDIO module aswell as Wi-Fi
module.

Plus a trailing whitespace fix.

Forward-ported from 4b5a19601f7b8efe06bb8ee0ea0197352b479cd9

Change-Id: I3fbc0065f76d91d170fb562159ea326caa4f3345
add workaround for atk6kl wifi

Change-Id: I6dc12a6cb3e1e6063addd4974d072c36a027730a
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1

Conflicts:
	wifi/wifi.c
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
fix merge failure
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
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
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
audio policy: Add EVRCB and EVRCWB for 7x27a audio HAL compilation

Change-Id: I01e8bd9bb67b972ad72eab3bbb00d59793d2b51c
fixes for cyanogen audio patch
re-add endifs