Commit Graph

526 Commits

Author SHA1 Message Date
Irfan Sheriff
65cff17722 Add AP support for tethering
First phase of the AP support in
UI and framework
Bug: 2421638

Change-Id: I0b6c31be5fe79bd4d33c292464d271b054754e8d
2010-03-04 14:34:52 -08:00
Chia-chi Yeh
af7b2d8a23 WifiSettings: enable all networks only when connected, disconnected, or failed. 2010-02-05 18:18:51 +08:00
Chia-chi Yeh
7d6bfbfc30 WifiSettings: enable all networks when state is changed. 2010-02-05 16:28:39 +08:00
Chia-chi Yeh
9dee8a96c5 WifiSettings: tweak the order of calls to registerReceiver() to make the UI better. 2010-02-04 16:16:25 +08:00
Chia-chi Yeh
065cd4be64 WifiSettings: rename WifiSettings2 to WifiSettings. 2010-02-03 15:56:55 +08:00
Chia-chi Yeh
df90dd9f55 WifiSettings: remove dead code. 2010-02-03 15:16:54 +08:00
Chia-chi Yeh
48090d4066 WifiSettings: revise and add support for editing EAP networks.
Use arrays.xml to store translations for enumerations;
avoid race conditions happened when pop up menu or dialog;
avoid saving configurations with networks disabled;
use the same layout for all the dialogs;
support editing EAP networks;
only unlock keystore before connecting;
and many bug fixes I cannot remember.

The number of lines in the new code is about 1/3 of the old one,
and it improves the readability a lot!
2010-02-02 18:31:58 +08:00
Irfan Sheriff
0a57284e15 Allow channel count modification on userdebug
Bug: 2378844
Change-Id: I62bca602c3fe1fefdc4a4517573b2c3db9d53a1f
2010-01-28 12:26:37 -08:00
Irfan Sheriff
9e0135fd45 am 8e79fda8: am ad76f17a: Remove regulatory group setting in advanced wifi setting
Merge commit '8e79fda826f78afe063763183d31398cdee5ac84'

* commit '8e79fda826f78afe063763183d31398cdee5ac84':
  Remove regulatory group setting in advanced wifi setting
2010-01-27 15:52:35 -08:00
Irfan Sheriff
ad76f17a1c Remove regulatory group setting in advanced wifi setting
Bug: 2378844
Change-Id: I2eefa73cca238ab04842ffc8f8968dac5f953456
2010-01-21 10:20:43 -08:00
Chia-chi Yeh
feeb756132 WifiEnabler: add support to show supplicant state. 2010-01-16 07:09:20 +08:00
Chia-chi Yeh
b90452f3d2 Settings: revise WifiEnabler and BluetoothEnabler.
This mainly changes the way both enablers react to the airplane mode. Now
enablers show a toast message instead of disabling the check box directly. This
avoids the inconsistent state introduced by WirelessSettings which controls the
check box using layout dependency.

Related bug: 2053751
2010-01-15 06:12:29 +08:00
Irfan Sheriff
94a9f0a4ab Do a null check on setting an AP as configured
This was introduced when trying to fix bug 2296038. A null check is required on AP.

Bug: 2296038
2010-01-06 16:54:21 -08:00
Chia-chi Yeh
4e14211d21 Settings: revise WifiSettings. 2009-12-25 14:48:46 +08:00
Jeff Sharkey
1c4e96864f Allow bluetooth in airplane mode when in "toggleable" list.
Settings.System.AIRPLANE_MODE_TOGGLEABLE_RADIOS is a list of
radios that can be toggled while in airplane mode.  This CL
changes BluetoothEnabler to respect this.

It parallels the logic in WifiEnabler, which enables OEMs
to allow Wifi changes when in airplane mode.

Most existing devices don't include "bluetooth" in the
toggleable list, which means bluetooth will continue to be
disabled when in airplane mode for those devices.

Fixes http://b/2297314
2009-12-22 14:35:44 -08:00
Irfan Sheriff
c9a663abf7 WifiSettings has leaked window
Fix for leaked window
Bug: 2311236
2009-12-18 14:52:14 -08:00
Irfan Sheriff
2ff62e2c7b Wifi diagnostic app to enable debug and provide information
This is the first checkin on the wifi diagnostic app. Right now,
it supports using the WifiManager API, shows the configuration details
and provides status on the supplicant, network and wifi state along with
some additional details.

More to come:
- add more API and status on any additional fields
- provide a way to show some logs

Bug: 2302130
2009-12-10 15:07:05 -08:00
Irfan Sheriff
60e5714311 Missing Forget button after doing Add Network on an AP in the scanned list
Problem:

On the Wifi Settings screen, if instead of clicking on the AP shown on the scanned list, we do an "Add Wi-Fi network" and enter the AP information - the AP information gets stored and the client device connects to the AP. Afterwards, if we click on the AP again the "Forget" button does not appear until we exit the Wifi Settings screen and return.

Root cause and Fix:
mApScanList in WifiLayer tracks the list of APs shown. Upon doing a connect through a direct click, the configured state for the AP in the list updated. However, if we do an Add Network, the configured state on mApScanList remains unupdated. This causes the Settings screen to not show "Forget" for the AP when it is clicked.

The fix is to set the Configured state to true in handleSave() by fetching the AP state stored in WifiLayer.

Bug: 2296038
Change-id: I70c545905a4984a03a0f235f3baf17cd36688710
2009-12-01 16:56:39 -08:00
Robert Greenwalt
0a4ab1eab2 Disable Save of empty-named AP.
Empty SSID names can cause weird problems, so don't allow the user to save them.

bug: 2211656
2009-10-26 13:51:06 -07:00
Neel Parekh
eb48882e18 am 62d3407d: Minor change to use defined key rather than a string.
Merge commit '62d3407de4a843cb83397fa757bc89653d78c800' into eclair-mr2

* commit '62d3407de4a843cb83397fa757bc89653d78c800':
  Minor change to use defined key rather than a string.
2009-10-23 10:17:38 -07:00
Patrick Scott
a2bfad1399 Fix the build. 2009-10-23 09:53:06 -04:00
Neel Parekh
62d3407de4 Minor change to use defined key rather than a string. 2009-10-22 18:30:00 -07:00
Neel Parekh
0bc64d45b4 resolved conflicts for merge of e304b9f4 to eclair-mr2 2009-10-22 18:26:46 -07:00
Neel Parekh
e304b9f4f7 Add a intent extra to only show the access points in the settings menu.
Bug: 2198865
2009-10-22 17:37:58 -07:00
Chung-yih Wang
69ea4234a0 Remove the getHumanReadibleSsid().
Since we already push down the quotes handling in WifiService.java,
there is no need of the function.
2009-10-13 18:11:52 +08:00
Chung-yih Wang
a5b7b45b6f Push down the supplicant-specific double-quote handling to framework.
So we are able to connect to AP with ssid containing double-quotes.
2009-10-09 11:29:45 +08:00
Chung-yih Wang
a8f2f72da8 Add the auth_alg field back.
This change is to fix the issue http://b/issue?id=2161539.

The auth_alg field is required for auth. type 'SHARED' with WEP mode, it will
not be automatically selected as claimed. The change has been verified on
Linksys WRT54G.
2009-10-02 16:09:15 +08:00
Chia-chi Yeh
28f1a0fc5b WifiSettings: use keystore namespace instead of blobl. 2009-10-01 19:17:55 +08:00
Chia-chi Yeh
fc0139aa28 WifiSettings: use Credentials instead of CertTool. 2009-09-22 23:44:17 +08:00
Benny Wong
dc543d2898 Fix the issue WiFi UI IP settings lost when change slider state before save IP settings
Original GID: 1062
2009-09-18 07:54:53 -07:00
Chung-yih Wang
98f447fe2d Aggregate the security settings for WiFi network configuration.
* Merge WPA and WPA2 PSK.
* Merge WPA-EAP and IEEE8021X.
* Remove unused field "private key password" in EAP configuration.
2009-09-16 15:34:32 +08:00
Chung-yih Wang
210e7acf82 Transient patch for the WifiConfiguration change.
Comment out the access to the enterprise fields of
WifiConfiguration class in AccessPointState class.
And will have a new patch for accessing the new WifiConfiguration.
2009-09-14 14:25:09 +08:00
Hung-ying Tyan
f71c8b40b5 Add install-cert-from-sdcard in Security settings
Also:
* Resume keystore states in SecuritySettings.onResume().
* Use action strings defined in CertTool and Keystore.
2009-09-10 12:50:10 +08:00
Chung-yih Wang
a97d794825 Support WPA2-EAP configuration.
Add the support for configuring WPA2-EAP APs by grouping them as the WPA-EAP in security mode.
2009-08-24 10:32:13 +08:00
Chung-yih Wang
844bb946af am c538b651: Fix some UI flow issues when the keystore is locked in WiFi setting.
Merge commit 'c538b651a23287ab25584995c6c4b7a68ece027c'

* commit 'c538b651a23287ab25584995c6c4b7a68ece027c':
  Fix some UI flow issues when the keystore is locked in WiFi setting.
2009-07-30 16:05:19 -07:00
Chung-yih Wang
c538b651a2 Fix some UI flow issues when the keystore is locked in WiFi setting.
To make it more user friendly, we need to continue on what
users intend to do after unlocking the credential storage.
2009-07-30 20:03:16 +08:00
Mike Lockwood
83bcc98af1 Allow enabling Wifi when in airplane mode.
If the new system settings value for AIRPLANE_MODE_TOGGLEABLE_RADIOS
contains RADIO_WIFI, then the user will be allowed to enable Wifi
while in airplane mode.
Turning on airplane mode will still disable Wifi, but the user will
be free to reenable it in the Settings app.

We also allow access to the VPN settings under the same circumstances.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-29 23:53:44 -07:00
Mike Lockwood
dab705adba Wifi: Fix crash when changing screen orientation in Regulatory Domain list.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-28 13:15:50 -07:00
Chung-yih Wang
c7343d12f3 am c78e0b01: Fix the broken build
Merge commit 'c78e0b01e6c4da1d8fecd5b6017a76f159066ea1'

* commit 'c78e0b01e6c4da1d8fecd5b6017a76f159066ea1':
  Fix the broken build
2009-07-22 11:51:12 -07:00
Chung-yih Wang
7073178985 am b2295174: Add the missing phase2 field in EAP configuration.
Merge commit 'b2295174dcb27efa0bf2fb58bb31a517413d9c86'

* commit 'b2295174dcb27efa0bf2fb58bb31a517413d9c86':
  Add the missing phase2 field in EAP configuration.
2009-07-22 11:51:10 -07:00
Chung-yih Wang
c78e0b01e6 Fix the broken build 2009-07-23 01:56:57 +08:00
Chung-yih Wang
b2295174dc Add the missing phase2 field in EAP configuration.
+ Enable the password field for configuring the EAP-APs scanned.
2009-07-22 11:48:33 +08:00
Mike Lockwood
afdca68b95 am 599221c7: wifi: Update the AccessPointState network ID after saving configuration.
Merge commit '599221c7bbd6cd613fd4f86805ccaf0696a3e78c'

* commit '599221c7bbd6cd613fd4f86805ccaf0696a3e78c':
  wifi: Update the AccessPointState network ID after saving configuration.
2009-07-15 18:13:56 -07:00
Mike Lockwood
599221c7bb wifi: Update the AccessPointState network ID after saving configuration.
If there are more than 10 open access points, the network ID may have changed
after the configuration is saved.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-15 11:57:25 -04:00
Mike Lockwood
81183a8466 am 6dd27613: wifi: use new WifiManager.startScanActive() method to trigger scans.
Merge commit '6dd27613b5ee59b1f0a90ad50fa080c0d98c47e2'

* commit '6dd27613b5ee59b1f0a90ad50fa080c0d98c47e2':
  wifi: use new WifiManager.startScanActive() method to trigger scans.
2009-07-09 14:27:35 -07:00
Mike Lockwood
6dd27613b5 wifi: use new WifiManager.startScanActive() method to trigger scans.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-09 16:50:59 -04:00
Android (Google) Code Review
fbd3f36a4c am c4a3bf94: Merge change 6345 into donut
Merge commit 'c4a3bf94cc870d940df37756ed2c5ea7067d00da'

* commit 'c4a3bf94cc870d940df37756ed2c5ea7067d00da':
  Add header 'blob://' in front of the cert/key names in wpa_supplicant.conf.
2009-07-07 07:08:40 -07:00
Chung-yih Wang
242096832b Add header 'blob://' in front of the cert/key names in wpa_supplicant.conf.
1. This addition is from CL 6082 change in wpa_supplicant.
2. Fix the empty password pop-up for EAP.
2009-07-07 21:58:13 +08:00
Chung-yih Wang
bd7f05701a am eb7836f1: Apply the new keystore and certtool library in Wifi setting.
Merge commit 'eb7836f11ec4e9753db7c6ecd9414e153bb7bdbe'

* commit 'eb7836f11ec4e9753db7c6ecd9414e153bb7bdbe':
  Apply the new keystore and certtool library in Wifi setting.
2009-07-06 11:22:32 -07:00
Chung-yih Wang
eb7836f11e Apply the new keystore and certtool library in Wifi setting.
1. Certificate related APIs were moved to CertTool. Therefore,
   we have to migrate to CertTool instead.
2. Unlock the keystore if it is not unlocked yet(send the intent
   out to credential storage) for EAP access points.
3. Add Password field for WPA_EAP and IEEE8021X(this is for
   phase 2 auth.)
2009-07-06 17:03:53 +08:00