User defined wifi/usb tether network. [2/2]

Enables users to select from a list of predefined networks
for use as the tether network, overriding the built-in networks.
This is useful, for example, where OpenVPN is in use with
routed setup.

Change-Id: I0dce2379a3f85fc63e8140e0e8c9c4c8889c5ae2
Cleanup the tethering commit

Change-Id: I1c9a0706c4581ba86ed1117565e8e1d7627a271b
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
Packages: Fix for SAP turn ON/OFF fails issue.

Turnig ON/OFF SAP repeatedly when WIFI is ON results
in command CMD_SET_AP being received in WifiStaEnabledState
of the state machine, which will not be handled and because
of this SoftAP is not turned ON and we receive no events
thus the check box remains greyed out/disabled.

To resolve this wait for WIFI_STATE_CHANGED intent before
re-enabling the SAP.

Change-Id: I1a37ac6406ea5e342d6dcb80654c2728fa447e57
CRs-Fixed: 525872
Packages : Fix for Softap turn ON/OFF fail issue.

If Softap is enabled using third party applications which make use
of WifiManager APIs, Softap enable fails. This is due to improper
handling of Softap State change event.

To resolve this issue, handle the Softap state change intent with
proper initialization of variable "mWaitForWifiStateChange".

CRs-Fixed: 634896
Change-Id: I63f8845ec3e8ebfa8ec09a7b1a1bc4ee175336cf
Show devices connected to the WiFi hotspot(2/2)

Change-Id: Icf51db5ae0204ed2bf153a5223aec986d3b496c4