Commit Graph

2733 Commits

Author SHA1 Message Date
Irfan Sheriff
b3be4d0c50 Move status update to WifiApEnabler
Bug: 2528202
Change-Id: I093699ac171279af9df5f3b3b4ae359aab79088b
2010-03-19 09:17:59 -07:00
Chia-chi Yeh
05d35416e8 WifiSettings: do not set auth_alg for WPA/WPA2 networks.
Change-Id: Ib41a52d90ca8db3cb52aa1fb87e2433bb76f4de2
2010-03-17 15:52:54 +08:00
Irfan Sheriff
47ebb78954 softAp UI changes
Remove channel settings
Add subtext error handling
Remove WEP, keep WPA2 only for now

Bug: 2413908
Change-Id: Ie867e84a0705f0d2185eeb3a4c86a8227446a338
2010-03-16 16:03:13 -07:00
Dmitry Shmidt
c11618c826 Fix WEP Open/Shared network settings
Change-Id: I2ccf73e19d27ed5c60f3f028a44a241ed6a7bb50
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-03-16 12:47:33 -07:00
Adam Powell
cc2ee7fcc6 Fixed NPE in WifiApDialog found by monkey
Change-Id: I4f5e75e21c1e3433712e49a148db4af04215f0a1
2010-03-08 11:35:15 -08:00
Adam Powell
2d70273673 Added null check for monkey behavior 2010-03-05 17:51:40 -08:00
Irfan Sheriff
2ae37e8ce0 Get all strings in for Wifi tethering
Bug: 2413908
Change-Id: I3d28fcfcb4a6e4eaf03e57d69f9d2c92730b12e5
2010-03-04 17:40:43 -08:00
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