Wifi: Allow configuration of Ad-Hoc (IBSS) networks

Show Ad-Hoc (IBSS) networks in the list of available Wi-Fi networks and allow
to connect to or create new Ad-Hoc (IBSS) networks.

This requires the IBSS changes in frameworks/base and external/wpa_supplicant_8

Change-Id: Ie44c47753100bbf8e691446e69b8d31659f64e3b
Wifi: Enable IBSS options only if IBSS is supported

Show IBSS network options only if IBSS mode is supported by the Wifi driver.

This makes use of the new API isIbssSupported() of WifiManager. We have to be
careful to make the query only after we reached WIFI_STATE_ENABLED.

WifiSettingsForSetupWizardXL is left out because it does not handle these
states.

Change-Id: I072c5cc6ed36305806b469cf05c4786d22bfd418
Add back backlight curve adjustment.

PS2:Fixed ok string, moved AutoBrightnessCustomizeDialog.java out of CM folder
PS3:Fixed minor derp

Change-Id: I4f55091c5d8c72301c0985fa8463d198f86a7d21
Signed-off-by: kecinzer <kecinzer@gmail.com>

Conflicts:

	res/layout/auto_brightness_list_item.xml
	res/layout/dialog_auto_brightness_levels.xml
	res/values/strings.xml
	src/com/android/settings/BrightnessPreference.java
Merge pull request #15 from Nick0703/cm-10.1

Merge latest AOKP sources.
Merge https://github.com/PAC-man/android_packages_apps_Settings into cm-10.1
This is a combination of 4 commits.

Bluetooth: Add JB tip Bluetooth code to build with bluez based solution

Add JB tip Bluetooth Settings code to build with bluez based solution and
existing Bluetooth Settings code to support bluedroid based solution.
Android.mk file contains the change to toggle between the solution
as needed.

Change-Id: I06244e05419b799bc232e52712a5a171b7f57ee9

Conflicts:

	res/layout/bluetooth_mas_access.xml
	res/values/strings.xml

Bluetooth: Introduce BluetoothProgressCategory class

Replace ProgressCategory class with BluetoothProgressCategory class
for making use of common settings resources

Change-Id: Icabddba794336232af4211ca32319f37b4a45167

Bluetooth: Proper update of the profile list on SDP updates

Updates the profile cache with new UUIDs arrived as part of
SDP results without clearing the existing profiles. This
fixes the IOT issue of few carkits with improper intermediate
UUID updates

Change-Id: I37b2eaf8e873b2798b3b838d15383811b4093c38
CRs-fixed: 450068

Bluetooth: Proper Enable/Disable of Pairing dialogue's OK button

Disable the OK button when there is no suffecient char/keys
entereted on the Pairng dailog's text bx. This would block the
user from trying to pair without having the right PIN key length

CRs-fixed: 455063

Change-Id: Ia9c0d1bfb1f202dadaa82ad9e4de059b90aea044