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 remote-tracking branch 'upstream/cm-10.1' into cm-10.1