• Home
  • History
  • Annotate
  • only in /frameworks/base/wifi/java/android/net/wifi/
History log of /frameworks/base/wifi/java/android/net/wifi/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
11de9e5537914bbe140fd99ad55333e48a14a667 29-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix handling escaped chars in ssid

Bug: 7427185
Change-Id: Ie669dff01af0865ea50305f3b48cf3f7af92cf6f
ifiSsid.java
2bc0c5fef25fe6d64b976133a3434233f3515d78 24-Oct-2012 Irfan Sheriff <isheriff@google.com> Handle group tear down only at group removed event

Handling group removal at disconnect causes issues where supplicant keeps
the group and then the next invocation fails

Bug: 7403755
Change-Id: Iea7e5ec98486607f8e2c4a55be3743e0545a9da7
2p/WifiP2pService.java
c48ca657f801b120e88c94287cdeecddc1a46e88 23-Oct-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix driver stop handling" into jb-mr1-dev
e6464af00033370730e530e4d5402cd049768014 23-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix driver stop handling

Defer supplicant state change event so we do not miss it

Bug: 7394390
Change-Id: Ibae6cef6be42a6cb45dc20ba4fa5060d8e459217
ifiStateMachine.java
51aec5ed5f78bfc5dea134fa88ef07fcdd572ba2 23-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix issues shown on CTS tests

Reset timeout for single interface architecture

Fix persistence reinvocation handling on the receive side

Bug: 7379336
Change-Id: Iacca0bd6dcbeb42af63bf2078e8cf3126e4e74a7
2p/WifiP2pService.java
61e42262000549b78843f0959043fec8367ed189 19-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix group join CTS test

Bug: 7379336
Change-Id: I20ead7e8c0d855be523bdfd8d9cb9eaa4b8fcac1
2p/WifiP2pService.java
62fa6de135269a7da135bb89b1eb047a4f11d343 18-Oct-2012 Irfan Sheriff <isheriff@google.com> Do a clean shutdown of p2p

We were doing a lazy shutdown and stopping supplicant behind p2p's back.
Make sure we stop p2p, before we go ahead with shutting down.

Bug: 7368832
Change-Id: I941e9cd69d6f27532207d3dc00b03c55c0e6335c
ifiStateMachine.java
2p/WifiP2pService.java
90a80bb8aece5b1f589020d512a9e1695e2fd1d8 17-Oct-2012 Irfan Sheriff <isheriff@google.com> Merge "Handle null BSSID" into jb-mr1-dev
d4a149d9d06f3a1914babf70c93131f7211eaa2b 17-Oct-2012 Irfan Sheriff <isheriff@google.com> Merge "Frequency conflict handling" into jb-mr1-dev
9f452d0b5ccad77fb6acfd1b20d5f77c9f425d22 15-Oct-2012 Irfan Sheriff <isheriff@google.com> Frequency conflict handling

We now show a dialog to user and let him handle whether to choose wifi
or p2p when there is a frequency conflict.

If user chooses to disable wifi tempoarily, we disconnect wifi until
p2p connection is established and removed.

Bug: 6590401
Change-Id: I73871ddcb3732ae61997d8771b6aa90ad56270af
ifiMonitor.java
ifiStateMachine.java
2p/WifiP2pService.java
edba852930bd2e9ab41f74f340595dafe500c756 17-Oct-2012 Irfan Sheriff <isheriff@google.com> Handle null BSSID

The root cause of why bssid needs investigation, but for now,
we can avoid crashing wifiwatchdog.

When bssid is null, just treat it as a good link.

Bug: 7357232
Change-Id: I080dfc990f3412646976cdc6ef75112ab093d326
ifiWatchdogStateMachine.java
939caef712f306a1c80ea27e9f41ef6e3ea9e0f1 16-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix NPE

Bug: 7357742
Change-Id: I4d12d137b9d5ebf5c6739cbd4405de3f90a3d846
ifiManager.java
d86a532c5271dfbfe7378ddeb6700fafd92ecbcc 15-Oct-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix handling of lost device" into jb-mr1-dev
41de2404658c7c6faf6c78e777ba50af11784f5c 13-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix handling of lost device

We did not update a lost device notice to apps properly. This causes incorrect
connection initiation without a discovery which leads to failed invitation
requests to supplicant.

Bug: 7328758
Change-Id: If4b594c737d639d0f553188309319fba4e3ee7b7
2p/WifiP2pDeviceList.java
2p/WifiP2pService.java
fa3b6258bedf6a66b676020f0ff531d4c9c579eb 11-Oct-2012 Irfan Sheriff <isheriff@google.com> Cleanup on async disconnect and finalize

Bug: 7326726
Change-Id: I6cca47a70cc0f29c68f922618cdcc181fb919a05
ifiManager.java
17cf1f2bbc3f7d4f367dbbee935d2939957c0ef6 10-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix build

had local changes from b/7318044

Change-Id: Idc6907d648a07d36f93dee859e361e9655cdd8e6
ifiWatchdogStateMachine.java
bbe461b78f9697775281d986bcf3c00904e1e62c 10-Oct-2012 Irfan Sheriff <isheriff@google.com> Disable poor network avoidance by default

Bug: 7318044
Change-Id: Icf27e823453eeaba901aad6f3f8eedea242794f9
ifiWatchdogStateMachine.java
462ff630e441f5bc36c4b926ce81bdb35fe7d04b 09-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix handling of hidden access points

We now get raw hex data from the supplicant and we convert it into
printable format.

For hidden access point, we always used to return a single empty string.
We need to make sure we maintain that behavior for apps to not start
displaying empty strings.

Bug: 7310749
Change-Id: I2599b9b5e15be91fc34e9af629ad893b1a0357fc
ifiSsid.java
0befeb29bcdf05b913a332edb4f222e11b4817ac 04-Oct-2012 Irfan Sheriff <isheriff@google.com> Clear interface address and reset connections

With the broadcom architecture, the p2p interface on a group
was dynamic that would just go away. Clearing addresses
was thus not important before.

It is good to clear up the addresses and reset connections
when the group is removed.

Bug: 7282358
Change-Id: Ia1a94fce90f86b54abcc2d1f78a33524ef8045fa
2p/WifiP2pService.java
17d9f6753aa7a00af425fec2305ece5f8b367794 01-Oct-2012 Irfan Sheriff <isheriff@google.com> Make rssi state change sticky

NetworkController misses the rssi state at boot. It gets the wifi
connection status because it is sticky. The rssi state will remain
out of sync until the wifi state machine sends another update which may
not happen if rssi does not change significantly.

Make rssi sticky as well to make sure NetworkController has the last known
signal strength on wifi.

Bug: 6916156
Change-Id: Id7dd621c6dbc35d7354757c61aa18a3b1ba90593
ifiStateMachine.java
ce6fc8d7a49d1b246e37c4e87fd5e715e408bca2 29-Sep-2012 Irfan Sheriff <isheriff@google.com> Revert setting GO idle time out

GO idle time out causes issues with multi-channel capable client which
can take longer to connect.

Use the supplicant default detection when acting as a GO.

Bug: 7254008
Change-Id: I6c40081cfa83ca0ddbb764640a48c92d69e609fd
2p/WifiP2pService.java
ca1269fcb8265c36660b3b47e5c06180e94e6485 28-Sep-2012 Irfan Sheriff <isheriff@google.com> Fail fast on persistent failure

Other fixes

- 20s idle time out was added a work around for an earlier cavium issue. Reduce to 10s
- Reload network fix when supplicant issues an error for a persistent network

Bug: 7248890
Change-Id: I6cea7c88c75aaca40ddcb973404e93ec0f66cbc4
2p/WifiP2pService.java
bdfce2ec05a3e9ca6acd6711de6133e06f2446e6 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> First step towards cleaning up Global settings.

Remove all @Deprecated @hide settings, and clean up any stragglers.

Bug: 7232125
Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
ifiStateMachine.java
ifiWatchdogStateMachine.java
2p/WifiP2pService.java
ca68f4a32f7712876cad59ceff768c37c334214c 26-Sep-2012 Dave Burke <daveburke@google.com> Merge "Remove WifiStateTracker code tracking wifi p2p" into jb-mr1-dev
0f08b813bb0f14f00cf167eeb49b5eea8f3b4f0f 26-Sep-2012 Irfan Sheriff <isheriff@google.com> Remove WifiStateTracker code tracking wifi p2p

This code was never supposed to have been there. It just remained
from an old implementation and actually results in
CS getting the wrong network info when both wifi and p2p are connected

Exposing p2p network type to CS needs to be done differently.

Bug: 7233984
Change-Id: I84a6091b8236cf5bdfcef3e7f626163d629e372d
ifiStateTracker.java
b32e221699201cb647beae3fe0a1771fd5a41cf4 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge changes I332f020f,I632648ac into jb-mr1-dev

* changes:
Update references to migrated global settings.
Handle user switched for settings changes.
e79275a9f6d5215fd9b833f8921939c0993389f2 26-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "P2p fixes" into jb-mr1-dev
bf6f6f9de72c9fd15e6bda9f228c05a9b37d6324 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Update references to migrated global settings.

Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
ifiStateMachine.java
c41096e1b4bf453c195c8c46c5d296f2125d31f6 24-Sep-2012 Irfan Sheriff <isheriff@google.com> P2p fixes

- Add wfdInfo details in group to allow display stack to filter
- Handle provision discovery failure and reset
- Do a discovery after group removal
- Handle failure to reinvoke and fall back to negotiation
- Avoid multiple REMOVE_GROUP calls that lead to removal
of persisted network

Bug: 7210856
Change-Id: Ia2e613e9b1191b919a185f0411439341e2e151bc
ifiMonitor.java
2p/WifiP2pDevice.java
2p/WifiP2pService.java
59358536d2f14b27cdc7386daeabc2b6dca8e177 25-Sep-2012 Irfan Sheriff <isheriff@google.com> Update doc on getConfiguredNetworks

BUg: 7223590
Change-Id: Id92699ae48ea75f94638fcc3bd776b863911985b
ifiManager.java
d36adc31ce0335635b536174299e15b9f099c9ad 24-Sep-2012 Irfan Sheriff <isheriff@google.com> P2p fixes

- NPE fixes
- Remove group on CTRL-EVENT-DISCONNECTED since the supplicant sometimes misses
the group removed event
- Fix the pattern match since we sometimes end up creating group without passphrase

Bug: 7119140
Bug: 7210558
Change-Id: I2cf0be073aaaaa9b931ea9a79b0bf4bd6a2b32ff
2p/WifiP2pGroup.java
2p/WifiP2pService.java
99766cf40ed706aad36032f2107fb0c1e54fc398 21-Sep-2012 Irfan Sheriff <isheriff@google.com> Use min group owner intent for concurrency

Our device only supports STA & GC concurrency

Change-Id: I4f16c959a6f4e7ad5610dcae67be830d741f162c
2p/WifiP2pConfig.java
7d0882be6d7e2a434072cb0bb63cb117e73491cb 19-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "send connection broadcast on client disconnect" into jb-mr1-dev
5ef9c59fffce221fcfd3f2fcea8f45a41341fa42 18-Sep-2012 Irfan Sheriff <isheriff@google.com> send connection broadcast on client disconnect

Bug: 7188646
Change-Id: I69f2c2581004b08730407930fb056cc1fe54feec
2p/WifiP2pService.java
24ed2769130a8f9df44e7fc22be52b6282e724c3 18-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "WFD fixes" into jb-mr1-dev
e0c28d5f1358fc2d4c464f910bd04fed4b283fef 18-Sep-2012 Irfan Sheriff <isheriff@google.com> WFD fixes

- Specificy max GO intent for WFD
- Increase GO idle time out to 20s and use it for GO and client
- Fix connection broadcast

Change-Id: Ia0e28bc9eb3e23d2830a6c814c5a537ca0bcd5db
2p/WifiP2pConfig.java
2p/WifiP2pService.java
3809f500c3411af2ab5ab6c706cdb4373940123e 18-Sep-2012 Irfan Sheriff <isheriff@google.com> Disable notification scans when p2p is connected

Also reduce scan interval for STA scans to one minute.

Bug: 7138968
Change-Id: I03620f6d462e4ec90d9bb25bbfe709f63173df21
ifiStateMachine.java
2p/WifiP2pService.java
9da603c2da67207869d7fde18817165fa95d3592 17-Sep-2012 Irfan Sheriff <isheriff@google.com> Change order of ps and suspendmode calls

Change-Id: I7872dbea7dc30c57960af95e86eb8e4c7f8e92dc
ifiStateMachine.java
1c045ec2b79c33eb29a24bff11567831ea90398b 16-Sep-2012 Irfan Sheriff <isheriff@google.com> Fix suspend settings at boot

Bug: 7175460
Change-Id: Ibf5e063603866289b3dbae278bc384b833e4a75e
ifiStateMachine.java
2892dfbeafec5315d05fb6ceabeaee73b88f5ff0 15-Sep-2012 Christopher Tate <ctate@google.com> Merge "Fix default population of wifi settings" into jb-mr1-dev
6f5a9a96523ecf97a9828a410dd1226df47ec4e6 15-Sep-2012 Christopher Tate <ctate@google.com> Fix default population of wifi settings

Various wifi settings that are explicitly defaulted did not get their
default code properly converted to refer to the correct settings
database table.

A collection of moved-to-Global settings that had not yet been
marked @deprecated in the Secure.* namespace are now so marked.

Also updated the namespace used to refer to wifi settings from the
Wifi Service. These changes are cosmetic, but they do eliminate a
number of runtime log messages.

Bug 7153671

Change-Id: I9e5b6464d025cfb480ef97373996e38e82f90593
ifiStateMachine.java
424968261fb346859a7ac796703527f2e34c0a84 15-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix suspend bugs" into jb-mr1-dev
633fe60b78665979109d4796ba22430b7b1cd758 14-Sep-2012 Irfan Sheriff <isheriff@google.com> Fix suspend bugs

Listen to screen broadcast all the time to avoid situations of losing
this information when wifi is turned on and off

Avoid duplicate suspend commands to driver

Bug: 7156907
Change-Id: I162b7ba249ae8925119a534229045965c0c13d1f
ifiNative.java
ifiStateMachine.java
a149edf4385aa8eeca6fa49402487f03d38c2bdd 15-Sep-2012 Irfan Sheriff <isheriff@google.com> Increase GO idle time out to 5 seconds

This is needed to work well with cavium dongle and 2 seconds
was too aggressive to let a client scan and connect.

Change-Id: Id3f1e3711333365c1e90827fb92675fd5dbc49da
2p/WifiP2pService.java
ec7d1380d30088bdc5bf40def653749524f2b6c6 11-Sep-2012 Irfan Sheriff <isheriff@google.com> Disable suspend optimizations during DHCP

We were not handling disabling suspend optimization during DHCP. This can
cause problems with certain routers when screen is off (and suspend optimizations
enabled).

Bug: 7106423
Change-Id: Ib762fff2edec28d7c6990263d4b641566e971213
ifiStateMachine.java
b6deeed3ceff9e0f754697987b7c724901996082 05-Sep-2012 Irfan Sheriff <isheriff@google.com> Handle ascii encoded SSID

Supplicant now passes as an ascii encoded string that allows it to
pass any sequence of bytes for a SSID. see src/utils/common.c in supplicant
for details of the implementation.

We create a SSID structure WifiSsid in framework to store the ssid and handle
the conversion appropriately when required for printing and for an application.

At this point, we still do not handle non-printable octets from an application perspective
for connectivity

Bug: 7110903
Change-Id: I520e5ee23baed4867b8b408bbb3eda5c9e92b6bf
canResult.java
tateChangeResult.java
ifiConfigStore.java
ifiConfiguration.java
ifiInfo.java
ifiMonitor.java
ifiSsid.java
ifiStateMachine.java
e298d884580006cbcd4aec8fd7877dae3f081eec 10-Sep-2012 Irfan Sheriff <isheriff@google.com> Fix device list update

Change-Id: I6a57d90f3750590db4ac5d538956b989d9589501
2p/WifiP2pDevice.java
2p/WifiP2pDeviceList.java
ab603ace22c9f0fe256616697ebfa4ef2928985b 10-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "Update WifiP2pWfdDevInfo from device found event" into jb-mr1-dev
1f6d8706918ddb277cad5fc8a006cc56ea7dbf69 10-Sep-2012 Irfan Sheriff <isheriff@google.com> Update WifiP2pWfdDevInfo from device found event

Change-Id: I197e84e16147d3db7362e3d6d169ff917c112de2
2p/WifiP2pDevice.java
2p/WifiP2pWfdInfo.java
d8544a51482c86b12da3ac82ea77b83045f689b7 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Copy all mutable state before sending to clients.

This resolves an issue with ConcurrentModificationException
or inconsistent data being perceived by clients.

Fixed an NPE in the WifiP2pDeviceList copy constructor.

Bug: 7133752
Change-Id: I37a4d004f7b1ca21d490f131039d81695db2ba42
2p/WifiP2pDeviceList.java
2p/WifiP2pGroupList.java
2p/WifiP2pService.java
0a66763744db9c9215567ed70051add7f55d53c7 06-Sep-2012 Irfan Sheriff <isheriff@google.com> Add connection broadcast on group creation failure

Change-Id: I8075a53997d968e6926e5ca78c9aadc60d8fcb2a
2p/WifiP2pService.java
ab4cd45133ccea6a66fb081f9b2a8d14eb3e4f1d 16-Aug-2012 Andreas Huber <andih@google.com> P2p API for WFD

Change-Id: I3914a515313654f7032d8bb102afebf0ed776783
ifiNative.java
2p/WifiP2pDevice.java
2p/WifiP2pInfo.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
2p/WifiP2pWfdInfo.java
5ac72a29593ab9a20337a2225df52bdf4754be02 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user broadcasts.

You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.

Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.

New Context APIs for more kinds of sending broadcasts as users.

Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.

Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
upplicantStateTracker.java
ifiConfigStore.java
ifiStateMachine.java
2p/WifiP2pService.java
6bfc88876ab575913299b477528225a4d7bf8232 30-Aug-2012 Irfan Sheriff <isheriff@google.com> Fix DHCP handling at disconnect/reconnect

Wifi can have a quick disconnection followed by a reconnection. We used to
create a new DHCP state machine thread for every new connection and
never really waited until it quit after disconnect. This may have lead to
situations where repeated disconnect/reconnects resulted in multiple dhcp
start calls.

We now keep the statemachine after a disconnect and only shut it at supplicant
stop.

Bug: 6417686
Change-Id: Icf66efdc654be886e3eb46c81f09f8cce536f2f6
ifiStateMachine.java
4bbb13976e54f6325cb013882891c02adea61ec5 29-Aug-2012 Irfan Sheriff <isheriff@google.com> Fix join scenario with provision discovery

Bug: 7072467
Change-Id: I8aafd5cee1055463aeda26ad313071cfe4e335c6
2p/WifiP2pService.java
da6da0907b28d4704aabbdb1bbeb4300954670d1 16-Aug-2012 Irfan Sheriff <isheriff@google.com> Captive portal handling

We now notify the user of a captive portal before switching to the network as default.
This allows background applications to continue to work until the user confirms he
wants to sign in to the captive portal.

Also, moved out captive portal handling out of wifi as a seperate component.

Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
WifiManager.aidl
ifiManager.java
ifiStateMachine.java
ifiStateTracker.java
ifiWatchdogStateMachine.java
bf3218f64de1692ca26c67b1911af856d81e186c 28-Aug-2012 Irfan Sheriff <isheriff@android.com> am 129d6fac: am 67ea8c86: Merge "Added a persistent feature in WiFi Direct."

* commit '129d6fac00545d6ea4eee75f25ddb3ffe8452bb9':
Added a persistent feature in WiFi Direct.
129d6fac00545d6ea4eee75f25ddb3ffe8452bb9 28-Aug-2012 Irfan Sheriff <isheriff@android.com> am 67ea8c86: Merge "Added a persistent feature in WiFi Direct."

* commit '67ea8c86419ffbf603052e816d6b1e9e7e20fbb9':
Added a persistent feature in WiFi Direct.
67ea8c86419ffbf603052e816d6b1e9e7e20fbb9 28-Aug-2012 Irfan Sheriff <isheriff@android.com> Merge "Added a persistent feature in WiFi Direct."
63dc027be28762232335797a30449995c555ae10 27-Aug-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix permission issue on channel" into jb-mr1-dev
0879d03f0a5caa108a0a7320442d57629f9ced81 16-Aug-2012 Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com> Added a persistent feature in WiFi Direct.

Provide a new feature to use persistent group at default.
In the normal connect sequence, if the persistent profile has been
stored, try to use it. Otherwise, a new persistent group is created.
If the persistent profiles are stored over 32, an old profile is
deleted automatically.

Change-Id: Iccb9fa044f1907f0818cd259275e1675f4c3e222
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
ifiMonitor.java
ifiNative.java
2p/WifiP2pConfig.java
2p/WifiP2pDevice.java
2p/WifiP2pGroup.java
2p/WifiP2pGroupList.aidl
2p/WifiP2pGroupList.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
07bde72ff9209de9c037d9bba36bdf0cba299aab 24-Aug-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 9455f8f2 to jb-mr1-dev

Change-Id: I6c6970adb58ac45473c7cc665d99f8e8a6ca8571
35bbe27d58ccf01ffd170b0f617a568bc843a49e 24-Aug-2012 Irfan Sheriff <isheriff@google.com> Fix permission issue on channel

Change-Id: I57f5d128dc2e2aa3bff93e82456f73cb96851f82
ifiManager.java
9455f8f2667bd86a7e51b19112f759406274e76b 23-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 729f810d: am 8f7100a0: Merge "WifiStateMachine: ignore auth-fail event during WPS connection"

* commit '729f810d3bca086cf651aa4e2299594a57d6d543':
WifiStateMachine: ignore auth-fail event during WPS connection
5770b2dcf6f28f1ea44146d5eb8c8a6b9cfc3fce 22-Aug-2012 Arik Nemtsov <arik@wizery.com> WifiStateMachine: ignore auth-fail event during WPS connection

Disregard auth failure events during WPS connection. The EAP sequence is
retried several times, and there might be failures (especially for wps pin).
We will get a WPS_XXX event at the end of the sequence anyway.

Without this change, the SupplicantStateTracker class will disable
the WPS network we are connecting to after 2 failed authentication events.
Then, even if WPS succeeds, we will never connect to the selected network.

Change-Id: I57c8e508bfd738405b7f2c2c2325df7838e1b4af
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
ifiStateMachine.java
46b29d8dd558c734f058b3806a0b56a2a23b33fd 22-Aug-2012 Irfan Sheriff <isheriff@android.com> am e5773274: Merge "WifiWatchdog: handle exception from ArpPeer"

* commit 'e5773274d68cf91cb9966f47c54ce69a7a6b03f4':
WifiWatchdog: handle exception from ArpPeer
e5773274d68cf91cb9966f47c54ce69a7a6b03f4 22-Aug-2012 Irfan Sheriff <isheriff@android.com> Merge "WifiWatchdog: handle exception from ArpPeer"
06d371f87be2588de6dddeefb919911c24e58e09 21-Aug-2012 Irfan Sheriff <isheriff@google.com> Fix NPE

Bug: 7026244
Change-Id: I21f13bdbd2d33f0cc082f85474229d9909eb47c1
ifiStateMachine.java
8756bd1d6b43e1724996897cf4593d5ea5b00213 20-Aug-2012 Iliyan Malchev <malchev@google.com> Merge "Revert "Revert "Add timestamp in scan results""" into jb-mr1-dev
06c43d575c88976f8709ff3fc0bad7117bde23e7 20-Aug-2012 Iliyan Malchev <malchev@google.com> Revert "Revert "Add timestamp in scan results""

With b/6979211 fixed, we can reinstate timestamps.

This reverts commit 578531082b8e8c8aa03868e69591b7613b0e8b8e

Change-Id: I5dffc8d9701004f7c6325f21e1e33d1cdd2d05c0
canResult.java
ifiNative.java
ifiStateMachine.java
f6307820c88e694e102824225b9d8caa6de75a30 14-Aug-2012 Yuhao Zheng <yuhaozheng@google.com> CTS test for WiFi watchdog - framework support.

The new WiFi watchdog requires kernel/driver to export some packet loss
counters. This CTS tests whether those counters are correctly exported.

Change-Id: I41999676f8488e86f35f1f8214ce668f1a2b5638
ssiPacketCountInfo.java
ifiManager.java
ifiStateMachine.java
ifiWatchdogStateMachine.java
578531082b8e8c8aa03868e69591b7613b0e8b8e 14-Aug-2012 Iliyan Malchev <malchev@google.com> Revert "Add timestamp in scan results"

Temporarily reverting this until all devices switch to using wpa_supplicant_8.

This reverts commit b31f78f93768fef269617ec788a5c6655a375f80.

Change-Id: I33fcb8415288d95289dcd46fa71e950e0f2b87ec
Signed-off-by: Iliyan Malchev <malchev@google.com>
canResult.java
ifiNative.java
ifiStateMachine.java
ee8655c6739cdfb35f192b05d8d4d84402e0d956 14-Aug-2012 Wink Saville <wink@google.com> am 2605aeeb: am b17a583a: Merge "Fix interface name for tethering"

* commit '2605aeeb30e39c2616bbe6ff088d1ed0020b4a3b':
Fix interface name for tethering
2605aeeb30e39c2616bbe6ff088d1ed0020b4a3b 14-Aug-2012 Wink Saville <wink@google.com> am b17a583a: Merge "Fix interface name for tethering"

* commit 'b17a583a3acc57db845993599e4de56e91d5e75a':
Fix interface name for tethering
a6b6556082d371da030f2b32699380d1e0f00c28 27-Mar-2012 Vishal Mahaveer <vishalm@ti.com> Fix interface name for tethering

Fix the interface name used in stopTethering

Change-Id: I3a8fb80c3c6cd382e7641d1735bff85d8a938ee9
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
ifiStateMachine.java
b31f78f93768fef269617ec788a5c6655a375f80 11-Aug-2012 Irfan Sheriff <isheriff@google.com> Add timestamp in scan results

Propogate 802.11 tsf details per scan result to the applications
and open up hidden access points

BUg: 2961159
Change-Id: I05658fd0cf010c0b36193db3f79422640e8b3a6b
canResult.java
ifiNative.java
ifiStateMachine.java
3fb4ba616edb114b3197936eb67f481eb86b7cae 10-Aug-2012 Irfan Sheriff <isheriff@google.com> Add control to disable suspend optimizations

Add an advanced setting that allows user to turn off power savings at screen off.

Bug: 5885175
Change-Id: I2dd013b86d7500a2ad1f9ec75d86551808f05543
ifiStateMachine.java
d5857291cb442a392f173ae4fca2668855b7ff69 08-Aug-2012 Andrii Beregovenko <a.beregovenko@ti.com> WifiWatchdog: handle exception from ArpPeer

Sometimes IllegalArgumantException can happen in constructor of ArpPeer
class when IPv6 address is provided. This causes crash of systemserver.

Fixing it by adding appropriate exception handler

Change-Id: I4bb7bbca790745a1bf56ece96dd91b84b1f70cad
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
ifiWatchdogStateMachine.java
b33227d23eb0ec3507192f94c2eee651a0f97783 20-Jul-2012 Yuhao Zheng <yuhaozheng@google.com> WifiWatchdog changes for poor link detection

- use packet loss (wlutil pktcnt) instead of frame loss, retune all parameters
- use wpa_supplicant to get packet loss counters, instead of netd
- handle BSSID roaming in all situations
- improve flapping avoidance mechanism by setting different target RSSI
- handle high packet loss in high RSSI (never seen in real testing)
- add more comments on how to set all parameters

Signed-off-by yuhaozheng@google.com

Change-Id: I33429f063d8625a458be4791edd83a86d5a723df
ifiNative.java
ifiStateMachine.java
ifiWatchdogStateMachine.java
440f32bbd48272095a5482abc87b8769ebd515b6 26-Jul-2012 Jeff Smith <whydoubt@yahoo.com> am ddd88726: am 71930dd7: am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214

* commit 'ddd88726a247e4100cb62b3dc9d0887ca2ae2ec4':
Fix several cases of broken droiddoc syntax external issue 35214
ddd88726a247e4100cb62b3dc9d0887ca2ae2ec4 26-Jul-2012 Jeff Smith <whydoubt@yahoo.com> am 71930dd7: am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214

* commit '71930dd77e4dc6f6be5c648019d2ab0da5f0584c':
Fix several cases of broken droiddoc syntax external issue 35214
71930dd77e4dc6f6be5c648019d2ab0da5f0584c 25-Jul-2012 Jeff Smith <whydoubt@yahoo.com> am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214

* commit 'a45746efadd11bb7dfab026fb3c81a25fae74ca4':
Fix several cases of broken droiddoc syntax external issue 35214
a45746efadd11bb7dfab026fb3c81a25fae74ca4 19-Jul-2012 Jeff Smith <whydoubt@yahoo.com> Fix several cases of broken droiddoc syntax
external issue 35214

patch contributed by Jeff Smith <whydoubt@yahoo.com>

Change-Id: I70dcee88a140699bf3e1ab369bed6dcd2fdd3d83
ifiStateMachine.java
88759bbd31e05a4163e1f8e72804ca83000afd53 03-Jul-2012 Irfan Sheriff <isheriff@google.com> Update WifiManager API

Use feedback based on NSD to update WifiManager API

Change-Id: I0c1dc74f7e2fa7cd697a995b7194e3e0366d7981
ifiManager.java
dfd42a9bbc143a46411bf74ad5fddb7da1b3b6e6 03-Jul-2012 Irfan Sheriff <isheriff@google.com> Ignore auth failures during WPS

During WPS, EAP failure occurs many times due to searching
external registrar. EAP failure can also occur after WPS-success.
WPS failures are handled through seperate events, ignore auth failures.

Change-Id: I6a051398d306250510536d157bf812b5a434c84b
Signed-off-by: Irfan Sheriff <isheriff@google.com>
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
ifiStateMachine.java
095c58b73ac112cc7e00771430765434893d8bc5 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support. DO NOT MERGE

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.

bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7

Conflicts:

services/java/com/android/server/NsdService.java
ifiStateMachine.java
2p/WifiP2pService.java
55b9821dffe5991e554841bf871155a2c4024c56 22-Jun-2012 Irfan Sheriff <isheriff@google.com> Move ARP test functionality to ArpPeer

Change-Id: Iecd6037cf8e0faa626ba6c27cef014822a6bc61b
ifiWatchdogStateMachine.java
90542758d4fef2e5ff8badaf3b40c2a227fbfc47 20-Jun-2012 Irfan Sheriff <isheriff@google.com> Cleanup softap interface to netd

Change-Id: I01e6c5b5a5a8ddaf05b979f9cc6d1293c86e8773
ifiStateMachine.java
b81bb9b40881659428f30b4539dd8877f9ea85f9 08-Jun-2012 Irfan Sheriff <isheriff@google.com> Clear interface addresses upon disconnect

Change-Id: I8ce289cfc72babe894ce9f4d0119a2f2ac5f0859
Signed-off-by: Irfan Sheriff <isheriff@google.com>
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2p/WifiP2pService.java
df3bec04de71eeac8cc2abc178cdda46b1cb151a 08-Jun-2012 Irfan Sheriff <isheriff@google.com> am efcc0ca7: am 4206ee2b: Merge "Fix clear services API" into jb-dev

* commit 'efcc0ca7545190f49bcbc25182d83b21aa01b2aa':
Fix clear services API
96aa0db9a997bc214471aa0d114a452aea6daa6d 08-Jun-2012 Irfan Sheriff <isheriff@google.com> Fix clear services API

BUg: 6631291
Change-Id: I9cee827b5eb78e356fdf86390103136f5610dd3e
2p/WifiP2pService.java
4d7d5268ba42191a997fcc42a513b14854344fda 07-Jun-2012 Irfan Sheriff <isheriff@google.com> am 2654105b: am ca96a322: Merge "Update group capability before connect" into jb-dev

* commit '2654105b15d8da5ad4fd84eef7e2c3f662373283':
Update group capability before connect
57e42f4117e92c03d39f1e1e572f53ef5bb821b8 06-Jun-2012 Irfan Sheriff <isheriff@google.com> Update group capability before connect

We need to get the latest group capability information before connect
now that the supplicant behavior is to do a delayed cleanup.

Bug: 6613470
Change-Id: Ie374d750950f3bd4376fd6a767bb253fd7986eb1
ifiNative.java
2p/WifiP2pDeviceList.java
2p/WifiP2pService.java
b1ebee8ac7c96b48fb47e03a239d41edc376021b 02-Jun-2012 Irfan Sheriff <isheriff@google.com> am 7742b91c: am 1b3dcd3b: Merge "Fix NPE while creating autonomous GO" into jb-dev

* commit '7742b91c7e05c85801a03c36fb2f799703e82b9b':
Fix NPE while creating autonomous GO
ba5065eaf3bd633aa30e0eb00b8a76b7bf33d36d 01-Jun-2012 Irfan Sheriff <isheriff@google.com> Fix NPE while creating autonomous GO

When autonomous GO is being created and we get a device lost event,
fix NPE

Bug: 6595978
Change-Id: Id93b693b8bcc447aea03c04be7556b1f2ff00a90
2p/WifiP2pService.java
39150720c0dc572251ac12fcc0ff36d3d8cb1abb 31-May-2012 Irfan Sheriff <isheriff@google.com> am 39b79e79: am ce9b5c76: Merge "Fix walled garden detection on nakasi" into jb-dev

* commit '39b79e79d3ad9e98a9c76c1b104599be494213f6':
Fix walled garden detection on nakasi
ce9b5c7611954fba91f4983bd41c0507b9931046 31-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix walled garden detection on nakasi" into jb-dev
ae094b27159864cb47015b96d18c5d32ef84fdc1 31-May-2012 Irfan Sheriff <isheriff@google.com> Fix walled garden detection on nakasi

Bug: 6576101
Change-Id: Iad2ea67e54662cd30a0e7425dab2a6174d13d152
ifiWatchdogStateMachine.java
4b5d3a26394dc5f2aca787fd8acfd6e7e9c27460 29-May-2012 Wink Saville <wink@google.com> Merge "Enhance StateMachine Quitting and logging support."
bbf30dfd767f823f5f40d14b498e2a593454c5c9 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support.

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.


bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
ifiStateMachine.java
2p/WifiP2pService.java
e2417b7a6ef2ba539be70574fe7c9e1af4810dd4 26-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Retain device during connecting state" into jb-dev
9cb980422ac53b81d6ad15242b0de35b5f3ce13c 25-May-2012 Irfan Sheriff <isheriff@google.com> Retain device during connecting state

With join taking much longer, sometimes device can be lost from supplicant.
Retain device to complete connection.

Also, clear up stale peer data after find stops during inactive state.

Bug: 6557725
Change-Id: I15b92e50a837481f974034b1ea7b32c8abee969e
2p/WifiP2pService.java
da87c7c1eea9a054fd6842995df115113228191d 25-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix delayed wifi shutdown" into jb-dev
f48fb85a8c4f72ec08b98f15ec3d9c70c247de7d 24-May-2012 Vishal Mahaveer <vishalm@ti.com> Fix delayed wifi shutdown

Use a wake up alarm to ensure delayed shut down message is sent

Bug: 5926285
Change-Id: I26a3353ddabb17d55299d8b5f9faf4c7ef5b2448
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
ifiStateMachine.java
4dd5a25a32dc4a721a411f92f0720672ee08020b 22-May-2012 Irfan Sheriff <isheriff@google.com> Add WPS details for certification

We need to provide device details to the supplicant for WPS 2.0 certification

Bug: 6450363
Change-Id: I3eb8bc75faacf392a43b6ef3085971bd32a675ac
ifiNative.java
ifiStateMachine.java
f74f1ac81d442aed4a97475019b40afafcf3017a 15-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Add work around to restart driver on failure" into jb-dev
f91d4e7bdd6923b6f724b7956c0a87714e61fd13 14-May-2012 Irfan Sheriff <isheriff@google.com> Add work around to restart driver on failure

A driver start can fail and device can stay stuck in that state.
Add a work around to retry once after a period of time and then
reload wifi if that does not work.

Bug: 6005966
Change-Id: I930554ac96ac25da2a38e49630d375656e32f6f6
ifiStateMachine.java
c559e3b7f4be5d4ddde23443449f364b359432fe 12-May-2012 Kenny Root <kroot@google.com> Merge "Add in constant for WPA supplication settings" into jb-dev
ba1db8a5912c989e493269b8751c7e9d312e0eae 11-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix wifi direct issues" into jb-dev
10ca870d3b58ec6fd62b85466ec1211fca77d33e 11-May-2012 Irfan Sheriff <isheriff@google.com> Fix wifi direct issues

- BSS command is unreliable, use group owner information from p2p_find
- Fix the autonomousgroup settings
- Use group idle settings only on the p2p group interface to avoid group idle
resulting group formation failures

Bug: 6426991
Change-Id: I44fc204775580fb4fec6ce27070ddbde0751b495
ifiNative.java
2p/WifiP2pDeviceList.java
2p/WifiP2pService.java
343331fa025efb8327ae9b2ebaa276a6d098c102 11-May-2012 Kenny Root <kroot@google.com> Add in constant for WPA supplication settings

This constant indicates what should be sent when a wpa_supplicant's
engine field should be marked as "disable."

Bug: 6480500
Change-Id: Ic963eff4b2ae1496f06e23f80514bf530767c568
ifiConfiguration.java
9e1b58a1234256aada06521cb445673ca4236a0c 10-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Tone down poor connection avoidance" into jb-dev
0a2a91e8784d00b451caedcd4daf49ccf9f5bcb7 09-May-2012 Irfan Sheriff <isheriff@google.com> Tone down poor connection avoidance

Until we figure out a way to compare a poor mobile network
against and poor wifi network and then weighing in other factors,
tone down wifi avoidance aggressiveness

Bug: 6456541
Change-Id: Idc81e4d83f47c9870abbdb4359ddfeaffdcca838
ifiWatchdogStateMachine.java
527ba07b637cedf206fec0d3b0cf92141700a23c 09-May-2012 Irfan Sheriff <isheriff@google.com> Use Map for DnsSd TXT record

Bug: 6434844
Change-Id: I767077585f501b46026ed34ec3e778d3e53209cc
2p/WifiP2pManager.java
2p/nsd/WifiP2pDnsSdServiceInfo.java
2p/nsd/WifiP2pDnsSdServiceResponse.java
531522c7fe0b4b7bccd34dcaf2179c4a8ced619c 03-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Report open networks without saved networks" into jb-dev
027828bff7928a125c7150fe7cb4dcbcba113912 02-May-2012 Irfan Sheriff <isheriff@google.com> Report open networks without saved networks

The supplicant stops periodic scans when there are no saved networks.
The framework needs to have a periodic scan to handle this scenario.

We do have an infrequent wake up scan (15 mins), but thats way too
slow to report an open network.

Setup a scan by the supplicant interval when there are no saved
networks

Bug: 5420656
Change-Id: Id3708ecc874b42971643cc747bb9e7f2efc7d1dd
ifiStateMachine.java
04e83d39523316ad7fa9fd7b3f392caa847ddc70 03-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix reference counting of wifi locks" into jb-dev
2c02da2bc62c4dfef684ea381be02a4e568b73d0 02-May-2012 Irfan Sheriff <isheriff@google.com> Fix reference counting of wifi locks

Bug: 6105898
Change-Id: I7368de91fa4aa63fd97dda0ee91d810aaaa53d8b
ifiManager.java
d07223f8294bbc32c9dbbee295e5c0739ce09550 02-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix getConfiguredNetworks when wifi is disabled" into jb-dev
a3cbe75c93f96acdd3e0c4a5f6de5c50c2d6ea85 02-May-2012 Irfan Sheriff <isheriff@google.com> Fix getConfiguredNetworks when wifi is disabled

Bug: 6380917
Change-Id: I4c6f1a379ef2401cde739aedfc82578c03e7dcf3
ifiStateMachine.java
de1e9fa9fbc4b7f4b08415d805a6e5212e655d95 02-May-2012 Irfan Sheriff <isheriff@google.com> P2p fixes

- Fix group idle settings
- Fix provision discovery event handling. We only care about device address.
- Fix WPS setup at start

Bug: 6427634
Change-Id: I0b1a7d73199e373350001114f4607bc39f2a53ba
Signed-off-by: isheriff@google.com
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
ifiNative.java
2p/WifiP2pProvDiscEvent.java
2p/WifiP2pService.java
8e8798d90a008e9262d14f26c4cf24fe552beab7 01-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix connect & save of invalid networks" into jb-dev
b3e96c527b8ac96e869bafeff5f7fab099e28396 28-Apr-2012 Irfan Sheriff <isheriff@google.com> Fix connect & save of invalid networks

Ensure SSID is not null for a new network being added

Bug: 6411912
Change-Id: I26467810bf10b7325c04677c1d0e5ff1cfb4a09e
ifiConfigStore.java
ifiStateMachine.java
83a708e6ad1f12eb792662aeb635453dd58b0361 28-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Handle null SSID cleanly" into jb-dev
00a10a1494954d124e1b11bc1ba3128e47b8ffbd 28-Apr-2012 Irfan Sheriff <isheriff@google.com> Handle null SSID cleanly

Bug: 6411912
Change-Id: I12f9df403c9633d928d898ae675ce36303dda1a8
ifiInfo.java
d8e0831b508bec52a2ad6de2659ce8a4f73b9154 27-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Recover immediately from driver hang" into jb-dev
a5ab608295db0afaa903151fcc9a2fce30620999 27-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Switch to standard commands for pno & power save" into jb-dev
b678320cfa16424e01494fb0ee97bc98c0988bf1 27-Apr-2012 Irfan Sheriff <isheriff@google.com> Recover immediately from driver hang

A firmware crash can now put the interface down without notifiying the framework.
We detect this and recover immediately.

Bug: 6263857
Change-Id: Ib2dc0412fcdf9ce7b90a7fc0fab778f7af9c0513
ifiStateMachine.java
e2639d782eef1365a98dbd2639be23a6dd06e691 27-Apr-2012 Irfan Sheriff <isheriff@google.com> Switch to standard commands for pno & power save

Remove DRIVER commands and switch to cfg based commands

Bug: 6318223
Change-Id: I5e21c4bb554c2992a52fd3c1741629645b22ae43
ifiNative.java
ifiStateMachine.java
bfb27bbefb013220af699881d486cc04be5ec1f5 14-Feb-2012 Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com> Allow override of p2p dialogs

By default, we show dialogs for connection requests and for
user interaction for pin input from the framework.

For applications, that want to make the experience more seamless
we should allow automatic discovery and connection as long
as one app can control it. We allow this for a foreground
app alone right now.

This will be a hidden API for now.

Bug: 6411069
Change-Id: Id342e933073d30eb58bf5a03a47ca26a64df8ddb
Signed-off-by: isheriff@google.com
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2p/WifiP2pDeviceList.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
d52e0c791f83d16cb5de32b6a9a1d785aa56b454 27-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Add support for changing p2p device name" into jb-dev
2bdefcab74d4ee21ad4bc1e90b30aeb7eac589e0 26-Apr-2012 Irfan Sheriff <isheriff@google.com> Add support for changing p2p device name

Change-Id: Ie13fe2adedd0bac6aa07b3369c4d6a05ef33cd24
Signed-off-by: isheriff@google.com
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2p/WifiP2pManager.java
2p/WifiP2pService.java
ea22ddd6bc855238f5e806bf576c48a672d05e4b 26-Apr-2012 Irfan Sheriff <isheriff@google.com> Fix flag on network state change broadcast

Using FLAG_RECEIVER_REPLACE_PENDING causes broadcasts
to be missed confusing the connectivity service

BUg: 6401167
Change-Id: Id69b2df18b9eb6b3e2195fbf399f36501a8d41df
ifiStateMachine.java
4190a047ca1c5eb19a1f7e5d599ef1d532da71c7 22-Apr-2012 Jeff Sharkey <jsharkey@android.com> Better assertions when bandwidth module disabled.

Also disable some verbose logging in WifiStateTracker.

Bug: 6368329
Change-Id: I9a5219bc1b3fd870468f7de46cdf4f173a437c59
ifiStateTracker.java
9f6e4ba50e7e73704c7fbd3ba65fe73bdf8ad73f 20-Apr-2012 Jeff Sharkey <jsharkey@android.com> Connect metered DHCP hint for Wi-Fi networks.

When DHCP lease includes vendor info indicating that remote Wi-Fi
network is metered, advise NetworkPolicy. Users can still manually
change the metered flag in Settings.

Also remove any policies belonging to removed Wi-Fi networks, and
teach isNetworkMetered() about ethernet networks.

Bug: 6344821, 6369307, 6365872
Change-Id: I108606c6fddf2d02828fcab011f3a1501415f1bc
ifiInfo.java
ifiStateMachine.java
6ec0c6afafd9bad5e4c33578e9355997a280649c 20-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Expose NO_SERVICE_REQUESTS error condition"
232ebad9ed1d81d5eab12e0b41cbe522e9a3c320 20-Apr-2012 Irfan Sheriff <isheriff@google.com> Expose NO_SERVICE_REQUESTS error condition

Change-Id: I45214557579fc82faa93a41d22c0890a218b091e
2p/WifiP2pManager.java
3b8be87f89e2f98345980954994bdde82b7ee9ad 19-Apr-2012 Irfan Sheriff <isheriff@google.com> Fix service discovery bugs

- Application does not have transaction id information. go through
list and remove

- Avoid removing client info while enumerating it

Change-Id: Ie293876756418ed4cd6dc3a903689ee7003bd12d
Signed-off-by: yoshihiko.ikenaga@jp.sony.com
2p/WifiP2pService.java
120505424098538ed9dfb97bf29b1dd143715259 17-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Open p2p pre-association service discovery API"
60c8c1570be28eba4cfb9969f5bbee8cbd66f37e 17-Apr-2012 Irfan Sheriff <isheriff@google.com> Fix SSID parse

Bug: 6350079
Change-Id: I104dafa982bd1f144ea3a4fe19a0a23d6bf8075d
ifiMonitor.java
7bdcb1eed755a6a326d807474d2c1476b82220b9 17-Apr-2012 Irfan Sheriff <isheriff@google.com> Fix ssid fetch

Change-Id: Iee5ee5f53bea7dea219b41735cd169389ca7e719
tateChangeResult.java
ifiMonitor.java
ifiStateMachine.java
60792375761c0b2aed11f7f2ccb60c2e59f9fec1 17-Apr-2012 Irfan Sheriff <isheriff@google.com> Log messages in dump

Remove event logging and add messages in dump

Change-Id: Ic79c68443bac9b7257644ed6941853f44a9b0661
ifiStateMachine.java
8bf825f48fde77cb2feb8720aac17093581bb085 14-Apr-2012 Irfan Sheriff <isheriff@google.com> Open p2p pre-association service discovery API

This allows applications to filter out the devices by the
services supported for the purpose of establishing a
connection.

so, a game app can connect to devices that support the game,
and a media streaming app can filter and connect only to
the available media display devices

Change-Id: Ia792e292d2ca771beeb4ca3b007a047527c19229
2p/WifiP2pManager.java
2p/nsd/WifiP2pBonjourServiceInfo.java
2p/nsd/WifiP2pBonjourServiceRequest.java
2p/nsd/WifiP2pBonjourServiceResponse.java
2p/nsd/WifiP2pDnsSdServiceInfo.java
2p/nsd/WifiP2pDnsSdServiceRequest.java
2p/nsd/WifiP2pDnsSdServiceResponse.java
2p/nsd/WifiP2pServiceInfo.java
2p/nsd/WifiP2pServiceRequest.java
2p/nsd/WifiP2pServiceResponse.java
2p/nsd/WifiP2pUpnpServiceInfo.java
2p/nsd/WifiP2pUpnpServiceRequest.java
d4fecc2567ca54427b9c86900bccbc7103ea8fde 13-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Pre-association service discovery support"
21ba8153325e010224c6bc75a0acdc98b6ca82e8 05-Apr-2012 Irfan Sheriff <isheriff@google.com> Pre-association service discovery support

Add UPnp, Bonjour and vendor specific support for discovering services on
Wi-Fi direct before establishing a connection.

Change-Id: I1c1f3427180abdc80a4e682e713adc7f0326c5ef
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
ifiMonitor.java
ifiNative.java
2p/WifiP2pDeviceList.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
2p/nsd/WifiP2pBonjourServiceInfo.java
2p/nsd/WifiP2pBonjourServiceRequest.java
2p/nsd/WifiP2pBonjourServiceResponse.java
2p/nsd/WifiP2pServiceInfo.aidl
2p/nsd/WifiP2pServiceInfo.java
2p/nsd/WifiP2pServiceRequest.aidl
2p/nsd/WifiP2pServiceRequest.java
2p/nsd/WifiP2pServiceResponse.aidl
2p/nsd/WifiP2pServiceResponse.java
2p/nsd/WifiP2pUpnpServiceInfo.java
2p/nsd/WifiP2pUpnpServiceRequest.java
2p/nsd/WifiP2pUpnpServiceResponse.java
7405b90df43a4e2c544f17895158d07130e5922c 09-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "P2p fixes"
55bfa42b05868a62ea66d291dcc51f0150fadcc2 07-Apr-2012 Irfan Sheriff <isheriff@google.com> P2p fixes

Add powersave on client after connect
Set concurrency priority to STA
Fix connection cancellation

Change-Id: I76fd9d1085c611a8c4068047b64289ef539ab389
ifiNative.java
2p/WifiP2pService.java
227dde2be437e613a9a4836905754076c129da37 04-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix key handling"
b5e00bda40398b8738192abfe9b745464a54865a 02-Apr-2012 Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com> Fix key handling

putListener() returns 0 when the argument is null. And The key value of listener
registered first is always 0. For this reason, if the p2p functions are called continuously
and first call is without listener and the second call is with listener, then the message
against first call wrongly pick up the second call's listener because the key value is
the same. In order to avoid this issue, we don't use 0 as the valid listener key.

Change-Id: I0cc960b2ad37f17cf7f528d839b39aa272b83670
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
2p/WifiP2pManager.java
4e62fd3f95ee824e6addf438f9e1155a8e0b8e2a 30-Mar-2012 Kenny Root <kroot@google.com> Wifi: change empty "engine" config to integer

"engine" is specified as an integer in wpa_supplicant, so we have to
make sure we send an integer instead of a NULL when we want to disable
it.

Bug: 6250670
Change-Id: I693ccb49badbd400a5882e9df1bbd4febc847a6e
ifiConfigStore.java
8901de0af68f952ed092ed61ebe652cd907f2ada 29-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Add discovery broadcasts for p2p"
c111d1caa8d4cc5d2139b5abd4d2db1f78560eff 29-Mar-2012 Irfan Sheriff <isheriff@google.com> Add discovery broadcasts for p2p

This will allow apps to figure out if discovery is active or not
and based on that initiate a new discovery for fresh connections

Change-Id: I4778f135fdd88773e4f0d50c384f9b6ebf561e6d
ifiMonitor.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
5fa47298af9f8495a162db77d718ba2cb82ee113 29-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "p2p fixes"
8a34718d844ec7abefa7d0736c7d1a37ff658f61 28-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Control suspend optimizations from framework"
4898087be98d9df1b6c86cc1802894e1844c6e3d 28-Mar-2012 Kenny Root <kroot@google.com> Merge changes Ibdf23227,I3681f98c

* changes:
Update Wifi to use new keystore function
Add signing to keystore
61472a8314e6716f231ec1c0aba73e005935829b 23-Mar-2012 Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com> p2p fixes

Fix space handling in device name and ssid (This builds from contribution of
Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>)

Also clean up STA event handling and remove the unused interface address

Change-Id: Ic16a4aadf905c1da5c060faa8a3caa83adc0549f
ifiMonitor.java
ifiNative.java
2p/WifiP2pDevice.java
2p/WifiP2pDeviceList.java
2p/WifiP2pGroup.java
2p/WifiP2pService.java
262f766ac8bd330008e1f0a61c1a37c64108b17c 27-Mar-2012 Irfan Sheriff <isheriff@google.com> Control suspend optimizations from framework

The suspend optimizations handling in the driver is being removed.
The framework will hence forth control when these optimizations occur -
we do this at screen off and hold a short wakelock to ensure this.

We also remove the use of the now defunct setsuspendopt command and
handle the high perf locking with the new suspend mode command.

Change-Id: Ia12e38befb2c4f85cad6612bc8f807805bd0dae1
ifiNative.java
ifiStateMachine.java
1b6989cdc212aec7579489a362f99b791abe7352 22-Mar-2012 Mike Lockwood <lockwood@google.com> Merge commit '74803dc'

Change-Id: I35a76a27390c75a47e6387fb0ee853a5a689a56f
etworkUpdateResult.java
ifiConfigStore.java
ifiManager.java
09a12bcfab6600a8cc017f0a5f92259dfc8fc471 04-Feb-2012 Mike Lockwood <lockwood@google.com> WifiStateMachine: Move wifi teardown delay to a framework resource

Bug: 5931171

Change-Id: I96a4e3bf1d044ea4a4d2955775703b6f0ce862ed
Signed-off-by: Mike Lockwood <lockwood@google.com>
ifiStateMachine.java
565f9f216aa87f11d451ae6532d5153001a386bf 21-Mar-2012 Kenny Root <kroot@google.com> Update Wifi to use new keystore function

The old wpa_supplicant.conf format used a special URI prefix
"keystore://" for the private_key value to indicate when to load things
from keystore.

The new format uses an OpenSSL ENGINE to perform operations with the
private key, so we don't need the special URI prefix. This changes
enables that usage and also supports migrating the old style
configuration to the new style.

Change-Id: Ibdf2322743eaa129bd2aa5e874f197b573714b57
ifiConfigStore.java
ifiConfiguration.java
90d57dfac3113247e2d38a2235254fc35d12856a 12-Mar-2012 Irfan Sheriff <isheriff@google.com> Improve network avoidance

Adds a back-off based technique where the amount of time we wait before
avoiding wi-fi is increased.

This will reduce power consumption on devices that are experiencing high
variance on wi-fi

Change-Id: I40da03edfb5373ddb51056818ca0744dc26a5600
ifiWatchdogStateMachine.java
4c8982ad820007512e4e9cbb7f15925228d70761 09-Mar-2012 Irfan Sheriff <isheriff@google.com> Enhancements for avoiding poor connection on wifi

- Avoid flapping
- Increase thresholds and monitor rssi more closely to detect consistently weak signal

Change-Id: I6139a20b7306839b345146a72ce690020a2e00b8
ifiStateMachine.java
ifiWatchdogStateMachine.java
db9e6937f18ceeb5715954c828ac4a51e383d140 03-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Enhance WPS"
86a5f5b9afa97a4ed6f5a2466fb9359ea131e2fb 29-Feb-2012 Irfan Sheriff <isheriff@google.com> Enhance WPS

- Add a cancel API
- Add more error reporting on WPS
- Fix network status reporting that showed up with new implementation

Change-Id: I499796c80d16d18df95fb702d029aa7e7283b603
ifiConfigStore.java
ifiManager.java
ifiMonitor.java
ifiNative.java
ifiStateMachine.java
2p/WifiP2pService.java
ab26407124cf861eacfe7bf0f2a1ef25f4b3a7bd 02-Mar-2012 Irfan Sheriff <isheriff@google.com> Fix connect on a network id with zero

Pass invalid network id on arg1 when using a config object

Change-Id: I8ef047c951911324d9bf79b744c3e7122bb73bae
ifiManager.java
d3975a917799b85cacaf382b65c5832813066b51 24-Feb-2012 Irfan Sheriff <isheriff@google.com> Fix WifiManager async API

Fix the current asynchronous API to use callback like the way
was done with p2p API.

In the process, fix the use of WPS

Change-Id: Ib6f8714cf51b3525b655948268804e7eaaf17587
upplicantStateTracker.java
ifiConfigStore.java
ifiManager.java
ifiMonitor.java
ifiStateMachine.java
psInfo.java
psStateMachine.java
07573b32494acbabd21979d8b9584c1ed3f7a6ad 28-Jan-2012 Irfan Sheriff <isheriff@google.com> Improve Wi-Fi hand-off

When Wi-fi connects at L2 layer, the beacons reach and the device
can maintain a connection to the access point, but the application
connectivity can be flaky (due to bigger packet size exchange).

We now use Watchdog to monitor the quality of the last hop on
Wi-Fi using signal strength and ARP connectivity as indicators
to decide if the link is good enough to switch to Wi-Fi as the uplink.

ARP pings are useful for link validation but can still get through
when the application traffic fails to go through and thus not best indicator
real packet loss since they are tiny packets (28 bytes) and have
much low chance of packet corruption than the regular data
packets.

Signal strength and ARP used together ends up working well in tests.
The goal is to switch to Wi-Fi after validating ARP transfer
and RSSI and then switching out of Wi-Fi when we hit a low
signal strength threshold and waiting until the signal strength
improves and validating ARP transfer.

Change-Id: Ica593291ec7772da892f03cf45b649635b730c47
WifiManager.aidl
upplicantState.java
ifiManager.java
ifiStateMachine.java
ifiWatchdogStateMachine.java
79f5a0416fe76d5063b4d9995edd84a49b77995e 13-Feb-2012 Mike Lockwood <lockwood@google.com> WifiStateTracker: add support for overriding DCHP max retry count in an overlay

Bug: 5551068

Signed-off-by: Mike Lockwood <lockwood@google.com>

Conflicts:

packages/SettingsProvider/res/values/defaults.xml

Change-Id: I6a6519316a87bd1af39ea9dc51e0d312011135ef
ifiStateMachine.java
870084d26d72a9a58c665349dde3ce511dd28466 15-Feb-2012 Irfan Sheriff <isheriff@google.com> Merge "Initial support for concurrency"
4aa9bcd231d09eb62ea64799a2dfacf45a452049 14-Feb-2012 Irfan Sheriff <isheriff@google.com> Fix shutdown delay

We were timing out on commands after shutting down supplicant

Bug: 5973030
Change-Id: I442ae6a9ad206406dc5f1c8c27be2456a339bba2
ifiStateMachine.java
0e1ad89ca5487babb39c52abcff9da41e0b84462 28-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am 27d2ab8b: am dc8668c8: am 97818704: Merge "Wi-Fi: Handle disconnect in middle of DHCP operation"

* commit '27d2ab8b27e7e1927e18869e898fa556e5da3d43':
Wi-Fi: Handle disconnect in middle of DHCP operation
21bd79f51c032782e3d6ccd22c7e236200d28a94 27-Jan-2012 Vishal Mahaveer <vishalm@ti.com> Wi-Fi: Handle disconnect in middle of DHCP operation

Restore power mode and BT co-ex settings when disconnect
happens in middle of DHCP operation.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
ifiStateMachine.java
7d6d9c005e5cfad787bb62b7fee6be2d75b13ca3 11-Jan-2012 Irfan Sheriff <isheriff@google.com> Initial support for concurrency

Use of multiple socket connections over wlan0 and p2p and
p2p state machine is now controlled entirely from wifi state machine

Add discovery stop to allow STA scans to proceed after p2p is used

Change-Id: I790c9112d3f475f638f06fc3ae9e191f6d90ef35
ifiMonitor.java
ifiNative.java
ifiStateMachine.java
2p/WifiP2pDevice.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
fc7f95abcda6fa35c175f9225358ea75c22952ab 04-Jan-2012 Irfan Sheriff <isheriff@google.com> cleanup for concurrency

Allow multiple instances of WifiMonitor and WifiNative to be
created in preparation for multiple socket connections

Change-Id: I06a227f87f1406dc62f884d56ad639ac623414b6
upplicantStateTracker.java
ifiConfigStore.java
ifiMonitor.java
ifiNative.java
ifiStateMachine.java
psStateMachine.java
2p/WifiP2pService.java
576db76106e43129d3df256524c343d0768b2a39 12-Jan-2012 Irfan Sheriff <isheriff@google.com> Sync up state with supplicant at start

Bug: 5534039
Change-Id: I70b3e03b3039877b3c64167d0d246346f9131fc6
ifiStateMachine.java
44b330dfb0aeecb4e2ac97ff72a5abfb341c74fb 28-Dec-2011 Irfan Sheriff <isheriff@google.com> Add multi-interface support to native calls

Add the initial support for supporting seperate socket
connections on the p2p interface.

This is the initial change making primary interface connections
work alongside native support for p2p socket connection

Change-Id: I7619715ca75b10afd29af852279fe713331f75e0
ifiNative.java
ifiStateMachine.java
1f095869536472c178046bb63c59947508eac4a6 21-Dec-2011 Irfan Sheriff <isheriff@google.com> clean up jni code

- Move all supplicant commands out of jni code in preparation for multi-socket
changes

- Also, clean up some function names to remove the explicit command

Change-Id: Id609ac7df0792fb85b52554d159f22064227c584
ifiConfigStore.java
ifiNative.java
ifiStateMachine.java
2p/WifiP2pService.java
cbc46d145a799121424f677b62a0d438feb4f911 21-Dec-2011 Irfan Sheriff <isheriff@google.com> Merge "p2p fixes"
bfed2d6c618e0bf2c271dad1f4acf6d29ebbea51 09-Dec-2011 Irfan Sheriff <isheriff@google.com> p2p fixes

- Change default GO intent to 7
- Handle P2P invitation scenario
- Fix p2p STA connect notification handling to figure device address. Proper fix
for handling both STA connection and disconnection is after we update supplicant

Change-Id: I9ff82f84ad3913905952d1119b7224dff41c24d9
ifiMonitor.java
ifiNative.java
2p/WifiP2pDevice.java
2p/WifiP2pDeviceList.java
2p/WifiP2pService.java
cdc077c9dd6473b5abfad4edfaf1ff41a436caaf 12-Dec-2011 Irfan Sheriff <isheriff@google.com> Fix configured network status

For a connected network, keep status as CURRENT. For a network,
that is disconnected it should be ENABLED. A disabled network
will have the status as DISABLED

Also, add a unit test to ensure there is only one CURRENT network
that is connected

Change-Id: Iaa4a7124a0c372a8f6df3d846ae8c15d9b29cf13
ifiConfigStore.java
ifiStateMachine.java
e744cfff7ca5406f7bba17a14b89856c1ca83262 11-Dec-2011 Irfan Sheriff <isheriff@google.com> Clean up synchronization

- Add delayed disk write in WifiConfigStore
- Remove synchronization and keep all access to config store
throught the state machine thread

Change-Id: I53768a17895e48da7b99542ac95c6c2fddbcb021
ifiConfigStore.java
ifiStateMachine.java
ecd7798ce45f9c8f1901c9348ad5452e0bc88a95 10-Dec-2011 Irfan Sheriff <isheriff@google.com> am a3c7c358: am 583fdf00: Merge "Handle emergency call back mode correctly" into ics-mr1

* commit 'a3c7c35873235486787d58fa8310eebd87508bc9':
Handle emergency call back mode correctly
c4ea8dfd46a5eeeedd15664a6499ecde32985509 09-Dec-2011 Irfan Sheriff <isheriff@google.com> Remove explicit network disabling code

We are going to always disable the notification

Bug: 5556629
Change-Id: I981eb55a1bb6f44defd674e3a86d9c6f3805f4fc
ifiInfo.java
ifiStateMachine.java
ifiWatchdogStateMachine.java
1108e8ddad3ddf0dbc660229ca3be6de7f600c3a 09-Dec-2011 Irfan Sheriff <isheriff@google.com> Merge "Change RSSI notification levels to 5 in framework"
ea933cb3fddbf5971dd4c62090edabbed295c3a7 09-Dec-2011 Irfan Sheriff <isheriff@google.com> Change RSSI notification levels to 5 in framework

At some point the system UI switched to using 5 rssi levels
while the framework only broadcasts a change for 4 levels.

Hence RSSI change can be slow to be displayed on the UI, fix this

Bug: 5732700
Change-Id: I21700f96ba7a8dd678fb2ccfff8ef59f9b696666
ifiManager.java
ifiStateMachine.java
4494c906168f1b93eb9d130096036d06cfa1e291 08-Dec-2011 Irfan Sheriff <isheriff@google.com> Handle emergency call back mode correctly

Bug: 5726996
Change-Id: I5815dd402bd73c530b9ba6d545d8956064949aa2
ifiStateMachine.java
a6071c338b0f46a47fe9c4bce87d4684e3c93dc7 07-Dec-2011 Irfan Sheriff <isheriff@google.com> am 8c2122cb: am a85cc282: Merge "Fix CS wakelock handling" into ics-mr1

* commit '8c2122cb3e347c607126c49d76fb165125a02295':
Fix CS wakelock handling
87f0a7b1aa3fcd688358f92389d3eeaf1ae99008 07-Dec-2011 Irfan Sheriff <isheriff@google.com> Fix CS wakelock handling

Change-Id: Ibe1c1ab3e26ff0ae7cab7bfb0bd868bfab246037
ifiStateMachine.java
bb60ee97664667c7774aa3c45b473332a3757d21 07-Dec-2011 Irfan Sheriff <isheriff@google.com> am 7c92e2dc: am 8a4cd3b1: Merge "Disable poor network connection alone" into ics-mr1

* commit '7c92e2dccb4e5cb5314455692ac32d2ccff24292':
Disable poor network connection alone
19380daaf46815c80bd89fd9ca3af3c4095952b5 06-Dec-2011 Irfan Sheriff <isheriff@google.com> Disable poor network connection alone

- Keep the walled garden detection in place

Bug: 5719771
Change-Id: I9e5d69b6d56096be904106b1db48c02db4c0fb50
ifiWatchdogStateMachine.java
591f6fa7c7dc9b82ccd6d5b0d758116babbaa058 07-Dec-2011 Irfan Sheriff <isheriff@google.com> am 5e2e7d5f: am 40cb30c2: am 7b62313e: Disable wifiwatchdog for now

* commit '5e2e7d5fb81266640f8284abb25fe8be06693f5b':
Disable wifiwatchdog for now
40cb30c2df2176c03f24cbdc194e3af5a4f64758 06-Dec-2011 Irfan Sheriff <isheriff@google.com> am 7b62313e: Disable wifiwatchdog for now

* commit '7b62313eab4af8835a64fb3fe1e15e5e534a9479':
Disable wifiwatchdog for now
7b62313eab4af8835a64fb3fe1e15e5e534a9479 06-Dec-2011 Irfan Sheriff <isheriff@google.com> Disable wifiwatchdog for now

Change-Id: I2ac4fa706f3d0a415cb8e86002173b776aba4e02
ifiWatchdogStateMachine.java
6b66e9e4c95b1c866ea63a0122fc199994fd7053 25-Oct-2011 Irfan Sheriff <isheriff@google.com> Switch to notifications for walled garden

Also, switches the URL for browser to the actual URL used for checking
walled garden

Bug: 5398921
Change-Id: Ie4d4b1d47f4151d0f85975b10190bdcf5f2e7a57
ifiWatchdogStateMachine.java
d834aeb0f2fb78addd3d2e43b36939f911cd4bbd 05-Dec-2011 Irfan Sheriff <isheriff@google.com> Merge "p2p enhancements"
530040e0b9458994c02f4392765db168128d48da 01-Dec-2011 Irfan Sheriff <isheriff@google.com> p2p enhancements

- Add device name on SSID for legacy devices to discover a given
group and join

- Do not remove a group for a device lost event which only indicates
discovery is stopped

Change-Id: Id431c29da371986e694ab230d72d32061b209ebe
ifiNative.java
2p/WifiP2pGroup.java
2p/WifiP2pService.java
ddba10622dfd3122cf99c795706754e0d41858c3 30-Nov-2011 Jeff Sharkey <jsharkey@android.com> Clean up InterfaceConfiguration flags.

Offer modifier methods for interface flags instead of mutating
directly, and remove square brackets.

Change-Id: I4cce719dccedfb3f0e8448c111e65b93c0008cbb
ifiStateMachine.java
2p/WifiP2pService.java
a5d24d42ff8b99383a8c3051b9459e5248cf8536 29-Nov-2011 Irfan Sheriff <isheriff@google.com> Merge "Redesign p2p around provision discovery"
618455f7e7255019c8cc08a734ba7c52b67a7dc8 18-Nov-2011 Irfan Sheriff <isheriff@google.com> Redesign p2p around provision discovery

= Provision Discovery:Is an optional discovery technique for figuring out
if a peer supports the specific WPS option. For compatibility reasons,
we will now always use it during connection but at the same time support
devices that request to support connection without it

= State machine and UI redesign around the new interaction

= Specify config methods explicitly for compatibility

Bug: 5599949
Change-Id: Ib79435dda472c43cc0746f56bf79ea896b2e33a4
ifiMonitor.java
ifiNative.java
2p/WifiP2pConfig.java
2p/WifiP2pDevice.java
2p/WifiP2pProvDiscEvent.java
2p/WifiP2pService.java
4b173c0d8c168372c0056849cddc932328a6fdd5 24-Nov-2011 Irfan Sheriff <isheriff@google.com> am 694b266e: am 7b6d238b: Merge "Fix tethering interaction from wifi" into ics-mr1

* commit '694b266e0366e5400d577659d1bb8152f0a106e7':
Fix tethering interaction from wifi
c74694d5e12b66b1b234d2c8d02a8f72f0e3cd66 22-Nov-2011 Irfan Sheriff <isheriff@google.com> Fix tethering interaction from wifi

- Use the right interface for untether

- Wait till tethering service confirms that untether() is successful before
shutting down soft Ap. This helps to make sure interface does not go away
before clean up is done.

Bug: 5659166
Change-Id: Iff9d4a67ff40664c2114e766590d6a83b7739738
ifiStateMachine.java
af139db574d68f957740cccff74c0ef13bee84e8 09-Nov-2011 Irfan Sheriff <isheriff@google.com> am 1c9126c6: am 59c73b92: Merge "Convert soft ap config store to state machine" into ics-mr1

* commit '1c9126c64b56b6465fd551680461caed2e1ea20d':
Convert soft ap config store to state machine
9575a1bea1787efe1686bd8562bcc70c72d01721 07-Nov-2011 Irfan Sheriff <isheriff@google.com> Convert soft ap config store to state machine

- Create thread when needed
- asynchronous interaction with wifi state machine

Bug: 5587391
Change-Id: Ie6d01b5a6b398a3fa12c384920a473e242443131
ifiApConfigStore.java
ifiStateMachine.java
a4e1014d3658066516e6615f1dc78aecde6be291 05-Nov-2011 Irfan Sheriff <isheriff@google.com> am 45a04db3: Merge "Avoid quick shutdown after a driver start" into ics-mr1

* commit '45a04db3f95755829b24043d30d7da7182b4f33b':
Avoid quick shutdown after a driver start
45a04db3f95755829b24043d30d7da7182b4f33b 04-Nov-2011 Irfan Sheriff <isheriff@google.com> Merge "Avoid quick shutdown after a driver start" into ics-mr1
a25b1a272cd55af9d3a0d87d86f2095cf14c878a 04-Nov-2011 Irfan Sheriff <isheriff@google.com> am a3d9eba1: Merge "Reset IP failure counter on a success" into ics-mr1

* commit 'a3d9eba10461158a52acfc2a0324696b25db761f':
Reset IP failure counter on a success
a3d9eba10461158a52acfc2a0324696b25db761f 04-Nov-2011 Irfan Sheriff <isheriff@google.com> Merge "Reset IP failure counter on a success" into ics-mr1
e6daca5f53dbb872d0ba6682d0f98831a99c5d9f 03-Nov-2011 Irfan Sheriff <isheriff@google.com> Avoid quick shutdown after a driver start

Causes problems on our wext driver and potentially on cfg
based driver as well.

NLP can trigger very quick acquire and release within seconds
leading to driver switching between start and stop state.

We now keep driver up for atleast couple of minutes after a start

Bug: 5478196
Change-Id: I1b261578252c5fb9a65446241b51e5686d4d9cc3
ifiStateMachine.java
05c6756b5e3159fea91a1845c9fe7ff8ecf1228e 02-Nov-2011 Irfan Sheriff <isheriff@google.com> am b419abca: am 7f00c22b: Merge "Avoid duplicate dialogs leading to NPE" into ics-mr0

* commit 'b419abcadad79cd908acfe51dc6e8902c16ff728':
Avoid duplicate dialogs leading to NPE
7f00c22b7fa7b38b644585c0a3c6faadc5def94c 02-Nov-2011 Irfan Sheriff <isheriff@google.com> Merge "Avoid duplicate dialogs leading to NPE" into ics-mr0
1667a485d7cedcbd2cf0300e9a0dffdfaa93b0a2 02-Nov-2011 Irfan Sheriff <isheriff@google.com> Reset IP failure counter on a success

Bug: 5552673
Change-Id: I56c032577be217895b75bf72ecb2c986d2064ab4
ifiStateMachine.java
bbe77ca6be1f6fe5c13c97ccd8baa68ab0272cf5 01-Nov-2011 Irfan Sheriff <isheriff@google.com> Avoid duplicate dialogs leading to NPE

Bug: 5548268
Change-Id: I383d5dba5ed2d77c1623d03990f1139872a65e2a
2p/WifiP2pService.java
b68d7ab80a721661cdff300cd9b2e65a9769737f 27-Oct-2011 Scott Main <smain@google.com> am 12f9900b: am 737c3dd9: Merge "docs: add package description for wifi.p2p and update the one for wifi" into ics-mr0

* commit '12f9900bfb004a09ea6a8ce0df27c661124f46ac':
docs: add package description for wifi.p2p and update the one for wifi
737c3dd9f116ae68bcb9b5ce6855afaf2f59738b 27-Oct-2011 Scott Main <smain@google.com> Merge "docs: add package description for wifi.p2p and update the one for wifi" into ics-mr0
03bcbe75baf9135c947bb4827189f878e3542365 25-Oct-2011 Irfan Sheriff <isheriff@google.com> Switch to notifications for walled garden

Also, switches the URL for browser to the actual URL used for checking
walled garden

Bug: 5398921
Change-Id: I7eb6f463c9b2f7e11c1d423711fa8a3d2bd2ff13
ifiWatchdogStateMachine.java
2d57d860c2ddf792f4afd6101c19a6d0cf01547c 20-Oct-2011 Irfan Sheriff <isheriff@google.com> Fix handling in DisconnectingState

Now that we also handle supplicant state change to identify that
a network is disconnected (in case CTRL-EVENT-DISCONNECTED goes missing),
it is dangerous to defer all supplicant state change messages
while in DisconnectingState.

It may happen that the CTRL-EVENT-DISCONNECTED goes missing while in
DisconnectingState resulting in a supplicant state change of 0 (disconnect)
getting deferred.

Eventually after a connection completes, the supplicant state change events
get handled and the state machine goes into DisconnectedState.

Fix by having state machine switch out of DisconnectingState once we
do not immediately see a CTRL-EVENT-DISCONNECTED state.

Bug: 5490789
Change-Id: Ia2263795e53c51da0a2bfeefecfeb6256d6c5267
ifiStateMachine.java
d47d4f7b7713a4a05da7ea55c3e698b939fe81b1 20-Oct-2011 Maarten Hooft <mthooft@google.com> Merge "Add a delay before walled garden test" into ics-mr0
a81ac7c450d9d534c46abc7000cc53779a72c283 20-Oct-2011 Irfan Sheriff <isheriff@google.com> Add a delay before walled garden test

This allows a carrier app to authenticate before we notify the user.
For future, we will provide an API that allows app to disable
the walled garden check.

Bug:5398921
Change-Id: Iff98ddaaa9fa38def4f43b1995f4b2c36f93a919
ifiWatchdogStateMachine.java
63fcb397a2583255ec4a0f5e5d8c4c124c272616 18-Oct-2011 Scott Main <smain@google.com> docs: add package description for wifi.p2p and update the one for wifi

Change-Id: Iaf80f9640a4d56100e22d93954edd8aeb5ea4d2b
2p/package.html
ackage.html
a2a1078576187f1192e339c927478205a8bc937f 17-Oct-2011 Irfan Sheriff <isheriff@google.com> Disconnect without CTRL-EVENT-DISCONNECTED

Handle a supplicant state change indicating disconnection
even if we have missed the CTRL-EVENT-DISCONNECTED notice

Bug: 5437924
Change-Id: I28e314f47f17359926c091b2015cd1fb7422fb22
ifiStateMachine.java
0f43161150903a008a5fd703078cdf446601160a 05-Oct-2011 Irfan Sheriff <isheriff@google.com> Add a time threshold for re-enabling networks

Reconnecting to a bad network can be expensive (network down time wise and for the device as well).

Add a minimum threshold.

Bug: 5234206
Change-Id: I5ef1fe06038db73c29a3e95b6229506555f36c77
ifiStateMachine.java
56379d23971baafa0e6987fe2b18d7a1ffea439d 05-Oct-2011 Irfan Sheriff <isheriff@google.com> Handle unexpected interface up/down events

WEXT on crespo has an issue where the interface up/down events
can happen in an unexpected fashion.

At a driver start, we can go from interface disabled to interface enabled,
back to interface disabled and then eventually into an interface enabled state.

Earlier, we were just expecting a single interface enable event that would trigger
driver specific commands. Now, we just handle these events as individual driver
stop and driver start situations so that we do appropriate things eventually

Bug: 5239853
Change-Id: I6bd5d844edf9fadfdca4e8eb753c2ba738aa6ad5
ifiStateMachine.java
7f8a12c75cf2b376fce58fc22b5ecb1b64acf110 04-Oct-2011 Irfan Sheriff <isheriff@google.com> Reduce/Fix system logging

Bug: 5410239
Change-Id: I2f91dfde0b701e8905a1235696591b3154693c7c
ifiConfigStore.java
ifiStateMachine.java
ifiWatchdogStateMachine.java
7960d9f888e31602e17b8856c77a3826bf8c841e 29-Sep-2011 repo sync <isheriff@google.com> Fix IPv6 on wifi

Bug: 5388757
Change-Id: I3c8c776c26dad1daa9801d0455fde749c0206401
ifiStateMachine.java
cbb62bb81807ff83a0887b90111218d81a3f57df 27-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Switch to cfg based signal_poll command"
921df5cbc44c00abe85f04093afe7692e73d490a 27-Sep-2011 Irfan Sheriff <isheriff@google.com> Switch to cfg based signal_poll command

Bug: 5352916
Change-Id: Id2ba7091a5e4cc4c1e14aa2c49e5b943519019bf
ifiNative.java
ifiStateMachine.java
c21994bc26df959d1a7161e38b4402b7255ea321 24-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix watchdog to stop ping after wifi disconnects" into ics-factoryrom
32f04e9009046f72242932bf4e820802148e423a 23-Sep-2011 Irfan Sheriff <isheriff@google.com> Fix watchdog to stop ping after wifi disconnects

- The pings are delayed async messages that were getting handled
after a disconnect as well

- Increase poll time to 200 ms, so we block on a receive for 1ms every 200ms for a
sent packet

Bug: 5361564
Change-Id: I1931a1c4146e78a87407d541d8c3934ff8232604
ifiWatchdogStateMachine.java
cf54e4aafc0f4406567fc236b850e8dc507c7093 20-Sep-2011 Irfan Sheriff <isheriff@google.com> Add supplication shut down recovery

When framework fails to get a notice of supplicant shut down,
timeout and proceed with a forced terminate

Also, avoid killing supplicant immediate upon stop and use the
timeout for recovery

Bug: 5337272
Change-Id: Id8971c673dc3082a5f15a6d5cef907bebe1e0fa0
ifiStateMachine.java
7329361cdce711775542b112663bf71a6e0d5cef 14-Sep-2011 Irfan Sheriff <isheriff@google.com> Add support to change IPv6 privacy extensions

Bug: 3360737
Change-Id: I9136992d05f7abf15bdfd92aad3a3e0c0fe3bee2
ifiStateMachine.java
651cdfcbac6245f570475991588ddc2d30265e8d 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Unhide wifi p2p API

Bug: 5247957
Change-Id: Id93e30c0cb60f361ba13a840de8f843415777336
WifiManager.aidl
ifiConfigStore.java
ifiManager.java
ifiNative.java
ifiStateMachine.java
ps.aidl
ps.java
psInfo.aidl
psInfo.java
psStateMachine.java
2p/WifiP2pConfig.java
2p/WifiP2pDevice.java
2p/WifiP2pDeviceList.java
2p/WifiP2pGroup.java
2p/WifiP2pInfo.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
2367e75beebd44338d67c20270cecedd5ca3cb5c 13-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> am 61db35da: am 2f835a61: Merge "Make copies of NetworkInfo to give out." into honeycomb-LTE

* commit '61db35da2b4501dde5646f86f21cf5054c41ea26':
Make copies of NetworkInfo to give out.
616f3173e08ec6110cf5766c70f84c9e031fb7d7 12-Sep-2011 Irfan Sheriff <isheriff@google.com> Emergency callback mode handling

For wifi, track ECM and shut down and restart when device
goes in ECM and out

For p2p, simply turn off when in ECM mode

Bug: 5185246
Change-Id: I5f5bf75fac3e27db1d7c412135c796f2b137263d
2p/WifiP2pService.java
858c396e877d04843af6db663218b3992c8fee64 10-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Finalize wifi watchdog default settings"
6aecb98a627daa3f66c060ca5177a075e4e9bcca 09-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Make copies of NetworkInfo to give out.

Otherwise we'll change it out from under those we've given it too.
bug:5233462

Change-Id: Iffc886849edfa6ced3da1133f9d363e11b2733f8
ifiStateTracker.java
295da73f051e1a1280284d94d800c57f163a3986 09-Sep-2011 Irfan Sheriff <isheriff@google.com> Disable p2p when airplane mode is turned on

Bug: 5286610
Change-Id: Ia895dfbf0d1bc39458f4a4d24595c862750eea38
2p/WifiP2pService.java
998196d64d35c1767dbb08f059fe3af171e44e1d 09-Sep-2011 Irfan Sheriff <isheriff@google.com> Finalize wifi watchdog default settings

- Reduce DNS counts from 15 to 5. 15 was for debug.
- Keep success scenario as atleast 1 being successful
- Wait for a second to start checks (for some setups)
- Use one bar as a start for doing periodic DNS checks
- Do a DNS check every hour (instead of half hour)

Bug: 5284337
Change-Id: Ie64d8cac48318a0c4c59f91ad21f8c6712b71338
ifiWatchdogStateMachine.java
a420cc460c05b9f078327862a060b3ba67057582 08-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix system crash on p2p failure"
511f8e2ff23c480808d831125f3c93d4cbd15f59 08-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Use hasSystemFeature() API to check for p2p"
f0ef26af3430b9c6402a34eeb9248f805d570922 08-Sep-2011 Irfan Sheriff <isheriff@google.com> Fix system crash on p2p failure

A previous change missed out a function that accepts an
integer argument as arg1. Instead, it was being passed as
parcelable which causes a fatal exception

Bug: 5271220
Change-Id: I3b78d9ce9ab742aa89ceaae17116fb7245187863
2p/WifiP2pService.java
a8f63a38a0570d2521d5db73f05218d114fa902a 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Use hasSystemFeature() API to check for p2p

Bug: 5267396
Change-Id: I4ff3f77c15322564f63beea793c4585cece596e0
2p/IWifiP2pManager.aidl
2p/WifiP2pManager.java
2p/WifiP2pService.java
6f7d385d964949e507dcc9c88012372f48d0bce7 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Update documentation and cleanup to unhide API

Bug: 5247957
Change-Id: I3ef8ac013eec32eb540178ea5febec3d4c0a3428
ifiNative.java
ps.java
2p/WifiP2pConfig.java
2p/WifiP2pDevice.java
2p/WifiP2pDeviceList.java
2p/WifiP2pGroup.java
2p/WifiP2pInfo.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
489a9d81fd1458940e1ec01ba0cef36843732479 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Rename WpsConfiguration to Wps

For the purpose of exposing the class as a storage for Wps
info with p2p, it is better to just call it Wps

Bug: 5247957
Change-Id: Iaebef958dd8f08fdbeb4b9d7fa5ad5527400710d
WifiManager.aidl
ifiConfigStore.java
ifiManager.java
ifiNative.java
ifiStateMachine.java
ps.aidl
ps.java
psConfiguration.aidl
psConfiguration.java
psStateMachine.java
2p/WifiP2pConfig.java
2p/WifiP2pService.java
dff28d5293c16ac75f6db7a1c3b78fbaad1f2f6a 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Handle state transition for p2p enable reject

Bug: 5265878
Change-Id: Ifd0ecb98876ffe098af06d67226f312d2a3d49c7
2p/WifiP2pService.java
daf57e5ff495684f93d9ac2f5c5fc826a02f5f7a 06-Sep-2011 Irfan Sheriff <isheriff@google.com> Add notification when p2p is enabled

Bug: 5262278
Change-Id: I82890323c4e4e2952b4c9c9bc503856095d90c21
2p/WifiP2pService.java
4be4d31f34a0fd0e23de1cbda311c07412f8d0b8 03-Sep-2011 Irfan Sheriff <isheriff@google.com> Fix p2p API interface to framework

- Update the WifiP2pGroup class
- Add reason code response for all failures
- Fix display of self in peer list
- Retain p2p group when explicitly created by API and fix join behavior

Bug: 5247957
Change-Id: Ibd9b163887db1c8a9dd8213253fda20c436a49e3
ifiNative.java
2p/WifiP2pDeviceList.java
2p/WifiP2pGroup.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
9cc2718abc0152d79e3e8bf23be94ddd3cc9db87 01-Sep-2011 Irfan Sheriff <isheriff@google.com> Prepare for exposing p2p API

First part of documentation and cleanup before we can unhide
the p2p API for review by API council.

Bug: 5247957
Change-Id: Idb52f0b699d23e22aa829f60cfac2c98451d2e22
psConfiguration.java
2p/WifiP2pConfig.java
2p/WifiP2pGroup.java
2p/WifiP2pInfo.java
2p/WifiP2pManager.java
9b2886e24301e5d4e7052ec4a6eaff273d3f516c 31-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Create new isNetworkSupported API

Useful for checking if on a wifi-only device.
Similar to asking for NetworkInfo for a network type and checking for
null, though here the intent is explicit.

bug:5087537
Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
ifiWatchdogStateMachine.java
2a62b43e671ef893e606292e82bc9fb9a09a3bf5 31-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Remove persistent behavior"
329b79713c06944c02a431081e75ef5e1862d32f 31-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Reload STA firmware on start"
f9cb1d7082870d9fc5f90290e717065441f611ac 30-Aug-2011 Irfan Sheriff <isheriff@google.com> Remove persistent behavior

Until we figure out a good way to do it from both group owner
and client, remove persistent behavior

Bug: 5241839
Change-Id: I31bda672edaa17e6a500f185b6b879dcfdbd069d
ifiNative.java
e36fcea8cdad6ed654079a34104795b2fbf5d2a2 31-Aug-2011 Irfan Sheriff <isheriff@google.com> Reload STA firmware on start

Bug: 5242253
Change-Id: If8e07bc96b46a0e5022cc9d12191de2e4dbec212
ifiStateMachine.java
f99360bf8f8bd3bd9dfd91fa0e91384eaaeebc89 30-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Initialize p2p settings"
335e40c0f1c3aec550e61fa159130527fda597b6 30-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Use seperate config file for p2p"
ad4d2c99ed3a08a5090c38e9dd906df8fb894614 29-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Remove work around for driver state change"
3ac127ff477fa291f83f0906ce3c0981a9597aca 29-Aug-2011 Irfan Sheriff <isheriff@google.com> Remove work around for driver state change

When we first ported wpa_supplicant 0.8, we had a work around
to fix the supplicant state change behavior from the driver.

Remove the work around since the driver behavior is fixed.

Bug: 5195278
Change-Id: I320f21ab01704931a3def6214b0cc40f214a688e
ifiStateMachine.java
9322687d98ec425da03cc10ab64ea19ad7fe2d69 29-Aug-2011 Irfan Sheriff <isheriff@google.com> Initialize p2p settings

And fix associated changes from the settings.

With p2p_reconnect setting turned on, it means the p2p group can be
started without a group negotiation. Hence, handle p2p group started in
the P2pEnabledState

Also, reinvocation results in supplicant not reporting device address correctly.
Handle that until supplicant fix is fixed.

Bug: 5002384

Change-Id: I335f6e854acd6839f54da9b460b17ad7505b1098
ifiNative.java
2p/WifiP2pService.java
f42c39b3d188ebb3ba9003cffc530717829fe874 26-Aug-2011 Irfan Sheriff <isheriff@google.com> Use seperate config file for p2p

Keep p2p and sta config seperate to avoid conflicts.

Bug: 5002384
Change-Id: I8f8fc5f984f4f91f9ece4012bf536daa5cc00bba
ifiNative.java
2p/WifiP2pService.java
8136de08ff4b5c4cca11220143f5905dca38cc26 26-Aug-2011 Isaac Levy <ilevy@google.com> Fixed WifiWatchdog notification bugs

- Space was truncated on 'disabled' notification
- Disable reason was getting wiped out on subsequent disabled
- disable reason was not propogating to WifiSettings

Change-Id: I2e57ee33d285aad39aabe1b048e7436d364b02f3
ifiConfigStore.java
ifiConfiguration.java
b6dbd69fa958d162f638a92d1420cfc9602648ba 26-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Prevent dup network adding - b/5200491"
8fd4a3d0f72b3175936f1dd9ca174a91d196971f 26-Aug-2011 Isaac Levy <ilevy@google.com> Prevent dup network adding - b/5200491

Change-Id: I8260cf73c4261e8efb696bb8557a39e02754190e
ifiConfigStore.java
859e7de2359420dcc5275bdce588b96dcc9203f0 25-Aug-2011 Irfan Sheriff <isheriff@google.com> Fix connection notification for group owner

Bug: 5002384
Change-Id: I099d6907787a0becf9363c3709efd8d4ec2a97af
2p/WifiP2pService.java
ea5b16ac5751022de73e8f1225407eb01e7f1824 24-Aug-2011 Irfan Sheriff <isheriff@google.com> Update p2p state machine and API

- Simplify the API with minimal needed functionality
- Fix responses for all async messages from the framework
- Fix state machine handling of connection setup and supplicant communication

Change-Id: I2724c83760b2aaa2068f9cd81ca0754753f83220
ifiNative.java
2p/WifiP2pConfig.java
2p/WifiP2pDeviceList.java
2p/WifiP2pInfo.aidl
2p/WifiP2pInfo.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
2p/WifiP2pStatus.aidl
2p/WifiP2pStatus.java
a407aef8985f8a7503438ca33f271edceb2e11dd 24-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Added support for multiple DNS servers."
8e28b7d78232f6cf08739ca0d129cc7f9e650801 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Proactively disable data when over policy limit.

Add policy controls to NetworkStateTracker which are combined with
other user preference and internal flags to decide if data connection
should be established. Better locking around enabled flags.

When data network would be over limit, proactively disable data on
that network. Enable when policy is snoozed or when cycle resets.

Track and dismiss notifications from now-stale policies.

Bug: 4587023, 5178147
Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
ifiStateTracker.java
79e43f679d6102066ee9eff862912806f53bb0e8 17-Aug-2011 Isaac Levy <ilevy@google.com> Added support for multiple DNS servers.

Also increased delay on repeat checks for WWSM.

Change-Id: Ic11b1f37a910c483f48e04dadb539b39fe50e622
ifiWatchdogStateMachine.java
8c57bcdbc6b360ee27d59b957a53e64c03257c9d 19-Aug-2011 repo sync <isheriff@google.com> Fix device address and interface address usage

After a p2p group is formed, STA connect and disconnects come over
interface address. Figure out device address from interface address
and fix the device comparison

Bug: 5002384
Change-Id: I7d3aa4f0616e000550cd2b057adbac71cfd2adb4
ifiNative.java
2p/WifiP2pDevice.java
2p/WifiP2pService.java
2b8edd0c485f74067605c19983e3e7f44b20ec50 17-Aug-2011 repo sync <isheriff@google.com> Use supplicant control channel interface for p2p

Bug: 5002384
Change-Id: Id2131ef43a01288e84178a5b21d289b97db9d736
ifiNative.java
2p/WifiP2pConfig.java
2p/WifiP2pService.java
4a56c437b6fd02dce06fa8565953964b01d21b5d 16-Aug-2011 repo sync <isheriff@google.com> Merge "P2p enhancements"
aea743aaa43a833fd8ff3dc56205197583152d5f 30-Jul-2011 repo sync <isheriff@google.com> P2p enhancements

- ConnectivityService interaction and support for running dhcp server
and client

- State machine enhancements for connectivity interaction

Change-Id: Iba3beb8c87554ffd67a7b7e852bbb4dd8666a4f5
ifiStateTracker.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
7244c977ecbc1f73e4cfd9d824fc2b68aa886139 06-Aug-2011 Irfan Sheriff <isheriff@google.com> Ensure interface down before wpa_supplicant start

Now that the driver is built into the kernel, a runtime crash
followed by a driver unload and reload does not reset the interface.

Ensure interface is down before bringing up supplicant

Bug: 5032635
Change-Id: Ib8f3d47617e587139a8a91a82146ee3a2f329700
ifiStateMachine.java
5f6ddecdeed5a4a7113f98add9b0ec01802a0c19 10-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Add firmware reload support for P2P"
17262c454febcb04ad450cea01323b9eba41081d 10-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Do not log failed pre shared key"
cb30b22ff507a5a9a5d9c584f8b082f5e96c4d02 30-Jul-2011 Irfan Sheriff <isheriff@google.com> Add firmware reload support for P2P

Refactor firmware reload call to support various modes - AP, STA & P2P

Bug: 5002384
Change-Id: I10d20fe5a7842437cf80861bc8a834990db87db5
ifiStateMachine.java
2p/WifiP2pService.java
a25b42ba9aa810594ec3eb02f5e7f37907c36af6 10-Aug-2011 Irfan Sheriff <isheriff@google.com> Do not log failed pre shared key

Bug: 4320948
Change-Id: I1d10ca0c59e4f7f7157b6539786b32c57a202fc8
ifiConfigStore.java
f70430d6dcd4f85db7b173776857d3a4895df863 10-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "DnsPinger -- log setup problems"
26a8d71413f107603ad68f4fa80cf2bf3da9dab1 10-Aug-2011 Isaac Levy <ilevy@google.com> DnsPinger -- log setup problems

Changed class to send a pings for 1.5 seconds to see if conn problems are
resolving after time. Turning RD flag on for now

Change-Id: I05bcf208bda3ea8fb98bd7aec8f0109523d64583
ifiWatchdogStateMachine.java
50a928f41445141be50428b02bd86a9ffcfd5f8e 10-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Avoid turning off wifi tethering on interface down"
14f3ae7fe0a73aae4e023ed815c51597c1bc5455 09-Aug-2011 Irfan Sheriff <isheriff@google.com> Avoid turning off wifi tethering on interface down

The hostapd daemon can bring down an interface, followed by immediately bringing it up
and this results in us turning off tethering completely.

Wait for the right notification to enter tethered state after brining up hostapd.

Bug: 5135245
Change-Id: I95c8c0c4c2c99c03fce2d18c014eaff37ed4e762
ifiStateMachine.java
8dc6a1b2823f374a176fb21b8a174664a5f825fa 27-Jul-2011 Isaac Levy <ilevy@google.com> Watchdog notify on explicit connect

Notifies when user explicitly clicks on wifi dialog.

Change-Id: I5eee37d68b422d748d41e9384d5006482a223dc5
upplicantStateTracker.java
ifiConfigStore.java
ifiConfiguration.java
ifiInfo.java
ifiManager.java
ifiStateMachine.java
ifiWatchdogStateMachine.java
d6d0628051f259d03367fe4e71af7137f9184142 05-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Rewrote DnsPinger - now is async and concurrant"
d2fe04b71a89a0608eb7c67065dead2a1f540122 22-Jul-2011 Isaac Levy <ilevy@google.com> Rewrote DnsPinger - now is async and concurrant

Change-Id: I93e1374ae857832935202614e34ce18f040fcfc7
ifiWatchdogStateMachine.java
f6d09845be2d58b1de7af9f6edc8b9ee216520a5 04-Aug-2011 Irfan Sheriff <isheriff@google.com> Fix p2p package paths

Split change Iba3beb8c which will not go in master to fix package paths

Bug: 5002384
Change-Id: I15072b65422fcdfe17c3f130d169258d60748012
ifiStateMachine.java
2p/WifiP2pService.java
88bae17cfd3de40758c5296d15f012f06f08748a 28-Jul-2011 Isaac Levy <ilevy@google.com> Changed walled garden to better url

Now checking for walled gardens using 204 error code on
http://clients3.google.com/generate_204

Change-Id: I0a00dc8b956f35f6695d2085c9f03ce40dc7e231
ifiWatchdogStateMachine.java
4ad39d6ac16961df0e7a3e4b4e7075aaa5202787 27-Jul-2011 Isaac Levy <ilevy@google.com> Will not disable wifi on wifi-only devices.

- Turn off watchdog by default on wifi-only devices, b/5073657
- Do not disable wifi networks if connectivity manager reports
no mobile connection.

Change-Id: I835e753624fc5e447081cde473039011721112c6
ifiWatchdogStateMachine.java
7dd04132d370537a07d3ad0e0ee7c8ff75166876 26-Jul-2011 Irfan Sheriff <isheriff@google.com> Run hostapd on a seperate thread

Hostapd start can block and state machine can be slow to respond.
Refactor wifi state machine to handle this behavior.

Bug: 5079498
Change-Id: Id7707bf2b0e1cb46a1f1374598ec4d7f6403ae1a
ifiStateMachine.java
17b8451019543bc226e012bab09cd6da55c91cd2 25-Jul-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix interface notification race"
e8daf2a7000e12dc0d62cb98b06ca849cf40564a 24-Jul-2011 Irfan Sheriff <isheriff@google.com> Fix interface notification race

In one use case, I see that if we go straight from
wifi client mode to tethering operation, the interface change notifications
are reported in an order that causes to enter tethered state
without actually tethering through connectivity service.

It is because an interface down notification (from wifi going down) comes after
we have started soft ap and we think we have tethered after calling startTethering
and switch to Tethered state

Instead, we should make sure tethering has started before going to Tethered state.

Change-Id: Iba7e8fab0feeb5637d40938862a8638871df8b02
ifiStateMachine.java
55bc5f3e0408bcb5a39a6732de0b2d1aa99a55be 24-Jun-2011 repo sync <isheriff@google.com> Updated: Wi-Fi p2p framework

First stage. Get the bones in right now even though
we are not ready on the native side.

Once, we have things underneath working - we will further update the
framework

Change-Id: I4a7dab5cd4267373dc5f8989ae4122f91c384ed5
tateChangeResult.java
upplicantStateTracker.java
ifiMonitor.java
ifiNative.java
ifiStateMachine.java
psConfiguration.java
psStateMachine.java
2p/IWifiP2pManager.aidl
2p/WifiP2pConfig.aidl
2p/WifiP2pConfig.java
2p/WifiP2pDevice.aidl
2p/WifiP2pDevice.java
2p/WifiP2pDeviceList.aidl
2p/WifiP2pDeviceList.java
2p/WifiP2pGroup.aidl
2p/WifiP2pGroup.java
2p/WifiP2pManager.java
2p/WifiP2pService.java
2p/WifiP2pStatus.aidl
2p/WifiP2pStatus.java
23eb297c771bd996fe8559178feb1a07be43ad72 23-Jul-2011 Irfan Sheriff <isheriff@google.com> Handle hostapd and tether interface changes

The set config will only update hostapd config file right now and we need to restart after that happens.

Also, softap interface is changed to be the regular interface

Bug: 5069108
Change-Id: Ibe80129b58e5339f06f186870bcd8f37569c6db3
ifiStateMachine.java
e046975503e7c6ebd78e35afaad88e3fb1ebfb5a 22-Jul-2011 Isaac Levy <ilevy@google.com> Fixing WifiWatchdog log flag

Accidentally merged verbose logging - setting to false.

Change-Id: I6cd9321c7602d86aac4a8340ef0233310a665bd9
ifiWatchdogStateMachine.java
d7a374f6f8f52a88d7e9a4660d9bf9037cf0b659 21-Jul-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix multicast API"
b0c1b80f471bd49af60e7b78161d814e355a6972 20-Jul-2011 Irfan Sheriff <isheriff@google.com> Fix multicast API

Fix multicast API and disable mutlicast V6 packets at driver start

Bug: 5016558
Change-Id: I1e04a905a36045e52c785c1dc702cc246a381a57
ifiNative.java
ifiStateMachine.java
d7b3e6a39b6b2e155b24ef470023bafb3b9fa35a 21-Jul-2011 Isaac Levy <ilevy@google.com> WifiWatchdogSM notification for first wifi disable

Also moved customizable settings into Settings.Secure and
added listeners for setting changes into the state machine.

Change-Id: Ia6859c71f7edae13062685867959adc423af4643
ifiWatchdogStateMachine.java
3550ac919c492f3fbaebbf868f4df0d1ea7ee784 07-Jul-2011 Isaac Levy <ilevy@google.com> Adding WifiInfo object in CONNECTED broadcast

Adding a parsable wifiinfo object in Connected broadcast, public api.
The connected broadcast only occurs on successful setup on the wifi
interface, so in normal use is very infrequent (once if the wifi
sleeps, or once at new hotspots, etc...)

WifiInfo objects are small, <10 ints, <5 short strings, and contain info
that could be useful to listeners, such as SSID.

The alternative is to the poll the Wifi Manager, using getConnectionInfo.
Because the Wifi Manager can update state in its own thread, polling the
Wifi Manager might result in an info object that's out of sync from the
received broadcast.

Change-Id: Iafcec77f45dd094ea84e6022b7a40e8952ae8137
ifiInfo.java
ifiManager.java
ifiStateMachine.java
654f5090754e4e1bf4c1736d0a24769a15a6037e 14-Jul-2011 Isaac Levy <ilevy@google.com> WifiWatchdog rewrite to formal statemachine

Rewrote wifiwatchdog service to use net.statemachine

Change-Id: Id6fd42b13192ac2e99f842ff50e9edff1696675d
ifiWatchdogService.java
ifiWatchdogStateMachine.java
8171e6f690cca1bad354e7e352823d79d420daf3 08-Jul-2011 Wink Saville <wink@google.com> Use resetConnections with resetMask.

Bug: 4981919
Change-Id: I5dec2da0756d5083bc81494fd583672704537694
ifiStateMachine.java
6d815e9dd00a5cb36554acb7b2f76f47c03cd7cf 07-Jul-2011 Irfan Sheriff <isheriff@google.com> Merge "Moved WifiWatchdogService and DnsPinger"
a7bc1135c270fd4a84ab7ad45b7194e9b580300e 06-Jul-2011 Isaac Levy <ilevy@google.com> Moved WifiWatchdogService and DnsPinger

- Moved WWS and DnsPinger in prep for StateMachine rewrite
intent.

Change-Id: I912ca80d31ee2ded99eb345a2e5a55d01bd9910c
ifiWatchdogService.java
c4501f7710b8da1bc16f0670e4e7343db01f7146 04-Jul-2011 Ji-Hwan Lee <jihwan@google.com> Log supplicant restart count correctly

Currently, it's always 0.

Change-Id: I99b2d31e61e1ec7dfffc7a77e04f4059fd6869ef
ifiStateMachine.java
cf99765b6255d73aa4fbc61d5bd78ec65fbd0370 22-Jun-2011 Irfan Sheriff <isheriff@google.com> resolved conflicts for merge of 914ed90f to honeycomb-LTE

Change-Id: I616b7ba5c27d0cc4247f5cce4303effe14658e1e
c74eacde3028551864d8a9f8822803a835785c3a 22-Jun-2011 Irfan Sheriff <isheriff@google.com> resolved conflicts for merge of 267a6181 to honeycomb-LTE

Change-Id: I95d459c937f788ed15f178e85692e1c393bdaa04
914ed90f2c02092474d2db36626734ca1b2cf315 21-Jun-2011 Irfan Sheriff <isheriff@google.com> Revert "DO NOT MERGE Revert "DO NOT MERGE Add DhcpStateMachine""

This reverts commit 58d1bb497e0d83e28a02fbcdc1f33f29a992db7e.
ifiStateMachine.java
58d1bb497e0d83e28a02fbcdc1f33f29a992db7e 21-Jun-2011 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Revert "DO NOT MERGE Add DhcpStateMachine"

This reverts commit fe3b33d4ead06c546202753e38188db5e2eaa7fa.

Change-Id: I3a9ae1f0d17e7a154d27d4f3f3eb1efa21a34f64
ifiStateMachine.java
f2288c960cce22ea3971d79f6aa13ed61c699176 17-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix IP address cleanup on network disconnect"
f5600618df153d9c51388562ebf3524e3bdc8b7d 16-Jun-2011 Irfan Sheriff <isheriff@google.com> Fix IP address cleanup on network disconnect

We used to bring down the interface on network disconnect
which would in turn clean up all the IP addresses.

The interface bringup/shutdown is now handled by wpa_supplicant.
Add netd interface for clearing all IP addresses

Bug: 4676254
Change-Id: I7e24c0ab2e4a412b8d61e9c33ce028966913aaf6
ifiStateMachine.java
e1f9064e356a07a08222c8c4a588969b4c0a8c99 16-Jun-2011 Irfan Sheriff <isheriff@google.com> Fix network state handling

Change I242cda97 introduced a regression where network state
was being modified on any supplicant state change.

Revert the old behavior of only changeing network detailed state
based on supplicant state change in a disconnected state

Bug: 4690073
Change-Id: I927cc5fa36b862cc54661b033939f543cd15d31f
ifiStateMachine.java
4f1f7d3158b1576b72eabbb05f8ab8cfb25cd403 16-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 241b65ac: am 5f350512: Merge "Reset connections AFTER we take down the network." into honeycomb-LTE

* commit '241b65aca93e263f0869c5bec4ad1dbda0dec6db':
Reset connections AFTER we take down the network.
ec896c6a863b3cc0a55538a19879e2112b5b8658 15-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Reset connections AFTER we take down the network.

If you do it before you have a race condition and some apps will
manage to reconnect on the dieing network before it goes and then
get no notification when it goes.

bug: 3408025
Change-Id: I5386ff313c759b3f687bc38731454ab43dbe76b8
ifiStateMachine.java
1523da22e91217e06a01610c202d5e52c2e9dfce 10-Jun-2011 Irfan Sheriff <isheriff@google.com> Fix driver start/stop handling

The driver start and stop events will be removed as they are now
redundant (and incorrect)

Move to using supplicant INTERFACE_DISABLED indication for deciding
if driver has started or stopped

When driver start is given, the supplicant will first switch to
INTERFACE_DISABLED state and then out of it to start connecting.
We should use this indication to find out driver has started

When driver stop is given, the supplicant will just switch to
INTERFACE_DISABLED state and this indicates driver has stopped

Bug: 4550125
Change-Id: I242cda97951a733c8707c8d99cdfcc9a33b75c2d
upplicantState.java
ifiMonitor.java
ifiStateMachine.java
680e0a4782a2b8012343794a36e8e7debcb2305c 10-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "Remove interface disable in wifistatemachine"
89f2ea6fc24d6010f83caf89b462b7caa75ce022 10-Jun-2011 Irfan Sheriff <isheriff@google.com> Remove interface disable in wifistatemachine

Supplicant now handles interface disable/enable on its own

Change-Id: Ib104989dd49654befff82261cc531b0646c7b15d
ifiStateMachine.java
dd65ed25c47acf5d551f56a232e1656f2f8c3483 09-Jun-2011 Irfan Sheriff <isheriff@google.com> am 92593dc4: am 84db79bb: Merge "Clear IP configuration on lost network" into honeycomb-LTE

* commit '92593dc49b348c4951037a1ae2fa17bb6644ffb9':
Clear IP configuration on lost network
0c13d479398ab4d940a302d2efd37cfeee51f872 07-Jun-2011 Irfan Sheriff <isheriff@google.com> Clear IP configuration on lost network

Bug: 4391449
Change-Id: I574128083a5612f13fcccaf5ed091eae114b7943
ifiConfigStore.java
ifiStateMachine.java
319da8c4c59be36fe2e221a0aba230ef6b77a14f 27-May-2011 Irfan Sheriff <isheriff@google.com> Add new states to support wpa_supplicant 0.8

Latest supplicant introduces the INTERFACE_DISABLED state. This
is entered when the interface is brought down (which is effectively
done by us and tracked already through the driver stop operation)

Also, added is a state for tracking authentication when supplicant acts as
the SME

Change-Id: I76090068d0ebba6df76f16707da559fcbd7512c5
upplicantState.java
upplicantStateTracker.java
ifiInfo.java
d57f5067e6465f18dfb27eaf0454a65d28ce1548 25-May-2011 Irfan Sheriff <isheriff@google.com> am c2ff0e70: am 9a737639: Merge "Clear network id when invalid" into honeycomb-LTE

* commit 'c2ff0e7031b54810d26e1d2a1ba9cdb529f25306':
Clear network id when invalid
0a8bd60a8e064c8d310f0abd9503350633b05eca 21-May-2011 Irfan Sheriff <isheriff@google.com> Clear network id when invalid

Bug: 4391449
Change-Id: If0902a3fe4ad65d34dfc3d60f0e630d5e868d6a9
ifiStateMachine.java
e526cfb490a4c855d3b6c89096c9f606b02190f8 20-May-2011 Irfan Sheriff <isheriff@google.com> am 5b9ceeba: am a4815c0e: am 9c9088a5: Merge "Move softap config handling to WifiConfigStore" into honeycomb-mr2

* commit '5b9ceebafd36db4491a49c1f00750ce50c4d4433':
Move softap config handling to WifiConfigStore
a4815c0ec06c293ea9f50b2b925d5a98d11f1143 19-May-2011 Irfan Sheriff <isheriff@google.com> am 9c9088a5: Merge "Move softap config handling to WifiConfigStore" into honeycomb-mr2

* commit '9c9088a54f6dee7a13dcc7a12297137147b01baa':
Move softap config handling to WifiConfigStore
ffcea7ae7316ab748a49f5e8f6c6798356f35719 11-May-2011 Irfan Sheriff <isheriff@google.com> Move softap config handling to WifiConfigStore

Move softap config to flat file and read/write on a seperate handler thread

Bug: 4391796

Change-Id: Iafe43200d7f829df7ced20a4e7b0ed451ad22a05
WifiManager.aidl
ifiApConfigStore.java
ifiManager.java
ifiStateMachine.java
fe3b33d4ead06c546202753e38188db5e2eaa7fa 07-May-2011 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Add DhcpStateMachine

Add DhcpStateMachine for interation with dhcpcd

- Supports wakeup and renewal on dhcp
- Supports multiple controllers to use the state machine
simultaneously
- Optionally, a controller can request a notification prior
to DHCP request/renewal being sent

Change-Id: I5324814b19ff19863aa6fa89f1e3f0a202930c98
ifiStateMachine.java
fba19ff5e8135878a1d87ed696e0a89cc776f37e 28-Apr-2011 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Define Protocol class

Adds a common namespace for communication across
different state machines

Change-Id: Ib6a29715c651371f91a950348a8525275b6026a0
ifiStateMachine.java
a8e0dfae06298b375637813a3263a62749dd0b82 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of db46fa25 to master

Change-Id: I8df9d5d07588fbd70e417dae567be26f645b74b6
d713683f9f5230d6a234ce8efbaf3c0959b81e22 02-May-2011 Irfan Sheriff <isheriff@google.com> am d369d64e: am 8ab6a6d4: Merge "Add DhcpStateMachine for interation with dhcpcd" into honeycomb-LTE

* commit 'd369d64ee7931726d479e60e64d76a31fdba4a8f':
Add DhcpStateMachine for interation with dhcpcd
a47c40193fcbe9ca07facea78b2828afdae5e025 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Add RouteInfo objects for tracking routes." into honeycomb-LTE
aa70f101e08098ed9cb190abe2d7f952561026b8 28-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Add RouteInfo objects for tracking routes.

Used to have list of gateways for default routes, but general static routes
should be supported.

Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
ifiConfigStore.java
31be7cf4c7aef140f2a576975a7fd31e062f6964 28-Apr-2011 Irfan Sheriff <isheriff@google.com> Add DhcpStateMachine for interation with dhcpcd

- Supports wakeup and renewal on dhcp
- Supports multiple controllers to use the state machine
simultaneously
- Optionally, a controller can request a notification prior
to DHCP request/renewal being sent

Change-Id: I3a9d7e6a02ff26be3a86ddca6964683ad3c28f93
ifiStateMachine.java
2dbf683b61cd2e6389fed2c028a18928234e315f 28-Apr-2011 Irfan Sheriff <isheriff@google.com> am c1f39396: am 8f87f838: Merge "Define Protocol class for use with StateMachine" into honeycomb-LTE

* commit 'c1f39396b94837f728c56b4c3e2f5c37e1d0eef7':
Define Protocol class for use with StateMachine
3fc75e9267a585101a06edc13d141b58efb9691f 28-Apr-2011 Irfan Sheriff <isheriff@google.com> Define Protocol class for use with StateMachine

Adds a common namespace for communication across
different state machines

Change-Id: I0a9ae872112567afd35a1dc95ac9283170f3f459
ifiStateMachine.java
5cd8d4decea60fccb52614b15bd0ceaa9fecc384 08-Apr-2011 Irfan Sheriff <isheriff@google.com> handle supplicant stop after child states exit

When a user explicitly disables wifi, wait on the supplicant shut down until after
all child states have handled exit - this avoids time outs due to communicating with
supplicant after breaking the socket connection

Bug: 4052161

Change-Id: Iec5bb3e14a2df4a8a12de8bb81d9c10aeb992ad4
ifiStateMachine.java
343c1ad7200619230a55caa6aa8a9d041e62b29d 19-Apr-2011 Wink Saville <wink@google.com> am 37677849: am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

* commit '37677849998e6c9a39afe0a730b2f0131a371f3b':
Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
64c42cae4482fe0157e977b8ddd0f2c2436b3f31 18-Apr-2011 Wink Saville <wink@google.com> Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7
upplicantStateTracker.java
ifiStateMachine.java
psStateMachine.java
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 07-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These haven't been working since before 1.0.

Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
ifiMonitor.java
80f7c594fae3f1b19e3ea78938de450418fe183c 07-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am f4a29403: resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aosp

* commit 'f4a29403ae5b6d3e8e754a025d33f0c33adecb21':
Add external dependency API.
d55a6b498d66d8fc415908ecf63e50f46cce67e8 25-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Add external dependency API.

An APN will not be connected to if some external dependency is not met.

bug:3486704
Change-Id: I7d94df343b260013efd11faa978deb13f07f1389
ifiStateTracker.java
2b7f63887e39079a52592fb4507d8daaf90e8afa 25-Mar-2011 Irfan Sheriff <isheriff@google.com> Add support for supplicant SCAN_INTERVAL

Also, allow scan interval for framework and supplicant
to be configured at build time or run time

Bug: 4144882
Change-Id: I877f4bcc872597b44d3f4da85cf2bc0f16e09444
ifiNative.java
ifiStateMachine.java
d710fb500c121b3f9563ccfbe488f7c9d3ec4985 16-Mar-2011 Kenny Root <kroot@google.com> Update WakeLock-related docs to mention permissions

android.permission.WAKE_LOCK permission is required to use WakeLock or
WifiLock, but nowhere is it mentioned that you must declare that
permission to use it.

Change-Id: Ib5f5294d37e39169fe5678743f380d95c4e5a842
ifiManager.java
4aeca7c5908387bc7efb0785830aea1053264062 11-Mar-2011 Irfan Sheriff <isheriff@google.com> Backup and restore IP and proxy settings

Bug: 4081954
Change-Id: I27266637c6ade0c5c8242792176d1edae0983446
WifiManager.aidl
ifiConfigStore.java
ifiManager.java
ifiStateMachine.java
84cffa45261519a96949ec5c6cd8e21fea950ff5 03-Mar-2011 Irfan Sheriff <isheriff@google.com> DO NOT MERGE update current config with dhcp settings

After DHCP completes, update the current configured
networks list with the IP setting details

Change-Id: I1ece1eda20224c69a4635bd38fdc5bef15818bb2
ifiConfigStore.java
ifiStateMachine.java
04e04fe333874afdbc4bb5936533c5a6f0855cfd 03-Mar-2011 Irfan Sheriff <isheriff@google.com> Merge "fix network disconnection handling"
9b3710b253db932d560f2f08d62b6eb2d37e3c67 01-Mar-2011 Irfan Sheriff <isheriff@google.com> fix network disconnection handling

We should avoid network id set unless the access point is associating.
Also, we should reset network connection state before sending
out network change broadcast.

Finally, we should reset connect mode settings when we disconnect from
an access point

Bug: 3424635
Change-Id: I41db5399810218abd6a77155166db5a9b1dbd22c
upplicantState.java
ifiStateMachine.java
7e48e76cab10377367b925790cf3a840651009fa 02-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start using NetworkUtils.numericToInetAddress."
e590373ea71251cfffc8f22f011e2e6335dce716 23-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Start using NetworkUtils.numericToInetAddress.

Generates InetAddresses without risking an accidental dns lookup. For use with supposedly
numeric-only ip address strings.

Change-Id: I694f3976ce1c6382854706f6557ea88a289add3a
ifiConfigStore.java
ifiStateMachine.java
2f6409686f4ecced13474db9307fcd33a805b2bf 01-Mar-2011 Irfan Sheriff <isheriff@google.com> Merge "Using AsyncChannel for wifi connectivity"
d86dbb9e00c998979db488a720ce263291f22c6a 01-Mar-2011 Irfan Sheriff <isheriff@google.com> am 5af7cf7c: am f9e2a491: Fix issue to clear scan alarms

* commit '5af7cf7c558e6febfa5d48b62900929743d2f7bb':
Fix issue to clear scan alarms
ebe606fccd9293674273d5f73246e0e8e6e6ddcf 24-Feb-2011 Irfan Sheriff <isheriff@google.com> Using AsyncChannel for wifi connectivity

Change-Id: Ieee5a3a1a739238d8a6659493684f1be0cbea691
WifiManager.aidl
ifiManager.java
ifiStateMachine.java
psStateMachine.java
f9e2a491176b086cd3c238b209e025cd68d76001 28-Feb-2011 Irfan Sheriff <isheriff@google.com> Fix issue to clear scan alarms

If PNO is set after the device is disconnected, the scan
alarm should be cleared to prevent both PNO and alarm
being active at the same time

Bug: 3495698
Change-Id: Id48c87fef68a34a05799e6b82de4088e0573009f
ifiStateMachine.java
74ff3d23f9c0bf0f13a9635473626e9d3cc21103 18-Feb-2011 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Add support for background scanning

Background scanning (preferred network offload) allows us the
host to sleep while the dongle monitors the presence of any
preferred networks. This allows us for significant power savings
since the system does not have to wake up often to initiate
a scan

Bug: 3453021
Change-Id: I73dcf4e1c9ab4de280c40b6df6147a74ac003123
ifiNative.java
ifiStateMachine.java
563db5343f93fec6897304443b501e397292401b 23-Feb-2011 Irfan Sheriff <isheriff@google.com> Merge "Add support for background scanning"
fcc0845cf9990470d498dcaa036f0ae6487ddf34 18-Feb-2011 Irfan Sheriff <isheriff@google.com> Add support for background scanning

Background scanning (preferred network offload) allows us the
host to sleep while the dongle monitors the presence of any
preferred networks. This allows us for significant power savings
since the system does not have to wake up often to initiate
a scan

Bug: 3453021
Change-Id: I7c1dbfd0c3f717df81e4da6091c4c5657c9ec9ca
ifiNative.java
ifiStateMachine.java
e5a3e9790110cb42ff0c4e882eec04e6961ed402 21-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Remove some unused code."
645b83f3ec2ead154c2062fd6d4498713d11de7e 21-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Remove some unused code.

Change-Id: Id29bf7d2118065e2e772b22d910bda1c6de2a475
ifiStateTracker.java
227bec49157bc496f7c9e8e8f63c12728a448922 16-Feb-2011 Irfan Sheriff <isheriff@google.com> data activity reporting on wifi

Initial checkin, need icons to complete the feature

Bug: 3412258

Change-Id: I9a3ecc8159cc314d84707065dafe23d402409a84
WifiManager.aidl
ifiManager.java
ifiStateMachine.java
7cb0d07fcf03150ecd04cc5c2573923dae72a366 17-Feb-2011 Irfan Sheriff <isheriff@google.com> Merge "Add WPA support for soft Ap"
ec8d23af7372204f068aebaa1bfae87dc9260e23 17-Feb-2011 Irfan Sheriff <isheriff@google.com> Add WPA support for soft Ap

Bug: 2771935

Change-Id: Ib16c1c3b9aaccbcdf372365d3c0825bdf0680207
ifiConfiguration.java
016d37e6c557a760c6508f5c06c8e65d2492772d 17-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Make WifiInfo not use int for ip address."
124b44d89bc00b150c9478ccddfa83cac0f1df24 17-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Make WifiInfo not use int for ip address.

Change-Id: Ib27824cd0722099e157024ee2a9797236157bc8e
ifiInfo.java
ifiNative.java
ifiStateMachine.java
652bc96444b0a82d34e6c3766b7862effac11adb 16-Feb-2011 Irfan Sheriff <isheriff@google.com> Make high performance wifi lock public

gtalk and sip already use the high perf lock. Improve
the comments and make the constant public.

This will allow applications that use voice or video
to keep the connection good even when device screen
is off

Change-Id: I3608cd478175c773bd835b26a686a61b8baf5471
ifiManager.java
19f8ca846b5234278d3001782077b90aad61a85c 15-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Remove some unused wifi dhcp code.

Change-Id: I114b3772b334a41936c6ed4bb8304f6914481ef1
ifiNative.java
614613e2d2fe51d484bfbeed6eeb8b66b151df37 11-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Update LinkProperties treatment of gateways"
992564e481af13cbcb058ee801f9254a520c54a1 09-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Update LinkProperties treatment of gateways

A link can have multiple gateways (think ipv4/ipv6 for a trivial example).
.

bug:3438810
Change-Id: I28c90a6947cd50b82e5ca9a0113148f98b3f4dd8
ifiConfigStore.java
34ee52e60c7bd220d755f30ee7924cc04e0b3ca2 10-Feb-2011 Jesse Wilson <jessewilson@google.com> Adopt LruCache in WifiStateMachine.

Change-Id: I2d2f07e8b9895ae2fd05299033336fbca047373f
http://b/3184897
ifiStateMachine.java
ed1264093234b1f1354cd5f669eb82a50bb56869 29-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Bind addr and prefixLength together in LinkAddress

bug:2542681
Change-Id: I90200446216d78c676498144946832afe75efdb8
ifiStateMachine.java
0216e618198393bfd7ac0625fa6ad251d5ea682f 15-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Make the interface with DHCP IPv6 capable.

It doesn't work (yet) for IPv6, but we can remove v4-centric notions from the framework.

bug:2542681
Change-Id: I21c058f5c88d07706c9265bf0ea902fc90357e56
ifiConfigStore.java
ifiStateMachine.java
a9a4f5cc88a373ffcea8902f178fe0a6572c0aa8 21-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Switch from NetworkUtils to netd for iface config."
27d3c5907cc6f4366a7af3f0941d8d29d9b2440b 20-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Switch from NetworkUtils to netd for iface config.

Moving more stuff to netd and getting rid of unused NetworkUtils.

Change-Id: Ibb5a11dca58d07291fe33e6d33027553f6158ea7
ifiStateMachine.java
43e747ef59e67734392d2d189e59fb9d11901037 20-Jan-2011 Irfan Sheriff <isheriff@google.com> Add untether call during softap shutdown

Bug: 3355187
Change-Id: Ie4381648883186a216807bcd0d586ecfd00ca15c
ifiStateMachine.java
d033e9caa1ad56bc6c4cc23c2104fc8370773e08 20-Jan-2011 Irfan Sheriff <isheriff@google.com> Merge "Handle EAP authentication failure" into honeycomb
b98d878f43748a64c68ffe05ce64c5b7c72fe922 20-Jan-2011 Irfan Sheriff <isheriff@google.com> Handle EAP authentication failure

Avoid the scenario of an EAP network indefinitely trying to connect
due to an EAP authentication failure by disabling the network

Bug: 2149114
Change-Id: Iec8da7551c2dff9b153f41a2139529133130399d
upplicantStateTracker.java
ifiMonitor.java
ifiStateMachine.java
0c7e16450c9060551bd0bea6e08bc9fb2ba411b4 19-Jan-2011 Irfan Sheriff <isheriff@google.com> Fix soft Ap handling on system restart

When system server restarts, a soft AP
start can fail. Fix it by doing a stop
and start through netd.

Bug: 3236625
Change-Id: I95f31eb34a03b64cb7e2b6b8bdd56fc2119b605b
ifiStateMachine.java
fcb659b66756ac02bd1491ae1365b27e8509a890 16-Jan-2011 Irfan Sheriff <isheriff@google.com> Report WPS overlap error

Add certification requirement to report an overlapping
WPS session failure to user

Bug: 3354319
Change-Id: I8c51bc20c2ec8e8d92a86ed2dfe2a3ede9c56885
ifiManager.java
ifiMonitor.java
ifiStateMachine.java
e4c56c9655bf936454e2f3ee434aacb403876c7d 13-Jan-2011 Irfan Sheriff <isheriff@google.com> Fix WPS to provides immediate feedback

If WPS is already active, we drop user's request
and convey an in progress message

If WPS fails to start, a failure indication is conveyed
to the user

Bug: 3316078
Change-Id: I238c55973cb29cf5c1be66197ffcb4978316cb89
WifiManager.aidl
ifiConfigStore.java
ifiManager.java
ifiStateMachine.java
psResult.aidl
psResult.java
psStateMachine.java
6bb7652b47b7c3068fa5e20a20263e651180c856 11-Jan-2011 Irfan Sheriff <isheriff@google.com> Fix network availability reporting

Report wifi is available as long as it is kept on

Change-Id: I5be9461106ef4968cbc423f90e0ff168e089791f
upplicantStateTracker.java
ifiStateMachine.java
65eaec88f3670384ac6c63e8c21ca13c21d2a407 06-Jan-2011 Irfan Sheriff <isheriff@google.com> Use BluetoothAdapter broadcast for coex settings

Use the bluetooth adapter broadcast so that we capture
various bluetooth profiles for both scan coex settings
and coex settings during DHCP

Change-Id: Idec41940514efe7ea9927f67b6199b4893794e2a
ifiStateMachine.java
8e86b89860114386e6c43f55fc034a26798b73e2 22-Dec-2010 Irfan Sheriff <isheriff@google.com> Enable networks on screen on

We now all configured networks on screen on.
Also, removed event logging for scanning and rssi polling

Bug: 2129037
Change-Id: I995893d77f8575a8d987d9d8604c8272f636d12d
upplicantStateTracker.java
ifiConfigStore.java
ifiStateMachine.java
b45e726bf5df9650e8a67a7c05bf2f41f414c07d 21-Dec-2010 Irfan Sheriff <isheriff@google.com> Fix wifi broadcasts

Add the missing wifi disable broadcast and also send out
supplicant disconnect on shutdown.

Added unit test cases.

Bug: 3294055

Change-Id: Ia56a8ec9d17784c5aac5b8b369c04837f9057c54
upplicantStateTracker.java
ifiStateMachine.java
d3040307abe598367ada0c878686f2b71284ef58 16-Dec-2010 Irfan Sheriff <isheriff@google.com> Merge "Fix ssid storage regression"
58938159ec378670ea784d07aa13ac47f4730cbb 16-Dec-2010 Irfan Sheriff <isheriff@google.com> Fix ssid storage regression

I introduced a bug with change Ic12fd78f. Quite
possibly a copy-paste issue.

Bug: 3281928
Change-Id: I040fa8580c3d6d5c585d0e5cc4306daab2f44c3d
ifiConfigStore.java
5d001ea0271eeedb05984ac00d5e41d767f0cb87 15-Dec-2010 Irfan Sheriff <isheriff@google.com> Use clear names for native API

Change-Id: I96c3089e10c75f433410f66c01204b7e5de2dc55
ifiNative.java
ifiStateMachine.java
3a65de795d5bf8f575a38a2ad83d5e3e234ae4a6 15-Dec-2010 Irfan Sheriff <isheriff@google.com> Initialize network state on start

Bug: 2542613
Change-Id: I5b16b2dc866c7f25bc61f1a04cf5fa9938ec2c3e
ifiStateMachine.java
96071a7031bac06e3f249610b010ad5651efe8ae 14-Dec-2010 Irfan Sheriff <isheriff@google.com> Handle supplicant stop correctly

- Use a clean terminate for a regular stop and on failure kill supplicant. This prevents
WifiMonitor from getting hung permanently on a socket in case of a kill

- When WifiMonitor exits, kill supplicant and cleanup sockets

Change-Id: I87c32e03d945433f33eed8c326d7f0368925bf55
ifiNative.java
ifiStateMachine.java
02fb46a297c4f645f2a30b574151401dd0978521 08-Dec-2010 Irfan Sheriff <isheriff@google.com> WPS fixes and refactor

- Allow IP and proxy set up for WPS
- Use string for WPS pin to avoid losing leading zeros
- Add a seperate WPS state machine and WpsConfiguration class

Change-Id: I87f43fff8bba0ae8ff02e5fc495a8bc628a8c8cf
WifiManager.aidl
upplicantStateTracker.java
ifiConfigStore.java
ifiManager.java
ifiNative.java
ifiStateMachine.java
psConfiguration.aidl
psConfiguration.java
psStateMachine.java
e798268f16ec6d0542616ea45ca0bb18ae2645ee 07-Dec-2010 Wink Saville <wink@google.com> Have MobileDataStateTracker & DataConnectionTracker communicate directly.

Added CMD_SET_DATA_ENABLE which is sent when data is enabled/disabled
via the ConnectivityService. It is anticipated that the communication
channel will be used for additional commands and to receive unsoliciated
commands from DataConnectionTracker back to MobileDataStateTracker.

Change-Id: I3863e7385155d503f069b1dcb7e4f766ec78b5f8
ifiStateTracker.java
cf34f47eddedbeab4ace8150d026e81a5d9485ae 06-Dec-2010 Irfan Sheriff <isheriff@google.com> Update scan results when frequency band is set

Change-Id: I4864b66f96744682a0de274fd49cca035ffc5d3c
ifiStateMachine.java
9beea36441ef805a8a3c343553e281f1966c047e 04-Dec-2010 Irfan Sheriff <isheriff@google.com> Hold network hand-off wakelock only when connected

Change-Id: I31132cb2966cfc1eb205e070116b4c784d292f46
ifiStateMachine.java
be9ee6a498afc08df1ca6d796b703b703b25c9a9 02-Dec-2010 Irfan Sheriff <isheriff@google.com> Fix configuration change handling

When IP or proxy config changes, we now reconfigure
the network and inform connectivityservice.

Also, fixed the naming for changes on configured
networks.

Bug: 3237735
Change-Id: I2a94b3158b6b0e0d27442d7fd525a8a23f0497f8
etworkUpdateResult.java
ifiConfigStore.java
ifiManager.java
ifiStateMachine.java
ifiStateTracker.java
3c661bde458b7c69f494673c7d6728a7a871b586 23-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Fix Wifi's setting of isAvailable.

Manifested itself in ConnectivityService reporting no connectivity.

bug:3220092
Change-Id: I4c0149125b8e2b9c2493f87d208aecbf21590fff
ifiStateMachine.java
44138f15cef6cfc84686f39227cf61062eb7817e 19-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Notify all VMs when proxy changes."
434203a277cd2f237a71508a3d5a7d1602126cd5 12-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Notify all VMs when proxy changes.

bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
ifiConfigStore.java
19d245b792e1d941fbba9b04ae20ce9d6e6e18f8 12-Nov-2010 Irfan Sheriff <isheriff@google.com> Split SupplicantStateTracker and refactor

- Move SupplicantStateTracker into a seperate file. In the
process clean up code that needs to be present only in SupplicantStateTracker

- Retry twice for password failures

- Clean up supplicant state handling. Dont treat supplicant states
as HSM what values. Instead, just retain SUPPLICANT_STATE_CHANGE

- Add event logging in SupplicantStateTracker

- Move scan handling out SupplicantStateTracker

Change-Id: I083e1c40ef5a858164493b1440b82c5751b3bfb5
upplicantStateTracker.java
ifiStateMachine.java
36f7413dabfab50699135019ba55151e9227f59d 05-Nov-2010 Irfan Sheriff <isheriff@google.com> add frequency band control API

Change-Id: I6cc6cdef27d493d4ef76cec17fdca7e49d9dc8d7
WifiManager.aidl
ifiManager.java
ifiStateMachine.java
090813ac95b1bd5f60f67f70bb49b0886954de09 04-Nov-2010 Irfan Sheriff <isheriff@google.com> Initiate wake up scan only in a disconnected state

When wifi is connected to an access point, we should
not wake up the device to initiate scans.

Change-Id: I1a48387a0cac7b23a8d947d8409cafc63da18d38
ifiStateMachine.java
ed4f28b492da3ff140bbaabbbda798a08c40ea5b 30-Oct-2010 Irfan Sheriff <isheriff@google.com> Set country code in the driver and remove channel set

With dual band support, using country code
settings is the way to go

Bug: 2936741
Change-Id: I760dce4c43b1af19ee205c28f0d287420c8d9e85
WifiManager.aidl
ifiManager.java
ifiNative.java
ifiStateMachine.java
1406bcb75150e8386b4d858f27089cc1359e7f14 28-Oct-2010 Irfan Sheriff <isheriff@google.com> Use AsynChannel for synchronous API

also cleaned up some unnecessary synchronous commands from state machine,
and fixed an issue with a synchronous WPS command

Change-Id: I55bf4379d9810e11f2ba2e03e2e703b132d1488f
ifiStateMachine.java
5876a4273e67271f0eca607af9520f7e5abbe4f3 13-Aug-2010 Irfan Sheriff <isheriff@google.com> WifiLock extensions for high performance mode

Add extension to WifiLock to allow apps to operate
in high performance mode (high power & disable suspend
optimizations for battery consumption).

Bug: 2834260
Change-Id: Id394d265b9876bf0230efb3d222056e9b80b44fd
ifiManager.java
ifiNative.java
ifiStateMachine.java
f235c5ab91b040b88ceb61beb819e15f1b19e9e4 22-Oct-2010 Irfan Sheriff <isheriff@google.com> add wps pin from device capability

Bug: 3119043
Bug: 3112178
Change-Id: Iaae6bcf53e11f7fac82b3c604ddc27ff05e00542
WifiManager.aidl
ifiConfigStore.java
ifiManager.java
ifiNative.java
ifiStateMachine.java
5a1e4cf83f5be1b5d79e2643fa791aa269b6a4bc 19-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Update BT APIs return type from Set to List.

Change-Id: Ia27220dd26cde13007f6938c830517ee7f6968ce
ifiStateMachine.java
4b7ba09c8bf773dbd045b4bbe7831fa16e33653d 21-Oct-2010 Wink Saville <wink@google.com> Change removeNetowrk to a synchronous channel call.

Change-ID: Iad0380d56972826615e044fa2aaee418b617d732
ifiStateMachine.java
4f5f7c968339a83b6af98ac8893a1ac33c7aa7bc 15-Oct-2010 Irfan Sheriff <isheriff@google.com> Fix wake and scan behavior

- Add wakelock for driver start/stop to ensure a wifilock
acquisition kick starts driver. Also cleaned up state machine
driver start/stop behavior.
- Add periodic scans when driver is started to ensure wifi
reconnections when wifilock exists or when user chooses
never to sleep
- some minor clean up

Change-Id: I844eb70491d5aa2f8c8933b3d8dd01ba237ee534
ifiStateMachine.java
138f10e3f140ea84b976607ada7081a498a3610a 20-Oct-2010 Dmitry Shmidt <dimitrysh@google.com> wifi: Allow dual-band support

Change-Id: I90e421efca783080261789378ef6054ac394c1e2
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ifiStateMachine.java
cdf8edeec2f5a063e94966449744c7f513578847 11-Oct-2010 Irfan Sheriff <isheriff@google.com> Remove synchronous bluetooth callbacks

Also, fixed an issue with disabling bluetooth coexistence

Change-Id: Ia7f68dfe6e8d587101ba8513783a0123ff0561a1
ifiStateMachine.java
68825ac32deb00991e18b5b40b455b68e9d78324 13-Oct-2010 Irfan Sheriff <isheriff@google.com> state machine fixes

- When supplicant dies, restart it
- When wifimonitor fails to connect in time, restart
supplicant
- fix dhcp counter reset
- defer all load/unload actions when waiting for supplicant
control connection
- we dont need to disconnect & reconnect at start with the
faster monitor connection and handling of failures

Bug: 2973023
Bug: 3090725
Change-Id: I5c834ddd08e6300e2b29da0941a24633825b4d3b
ifiStateMachine.java
c949b9c3ffe5ed9e2112a15224a86c55651fedfd 12-Oct-2010 Irfan Sheriff <isheriff@google.com> Retry quicker for control channel setup

Bug: 2976277
Change-Id: Ifedb0c1aebefc251028e8d2f578f530a3840c702
ifiMonitor.java
96ca91761e6857c1ca2e4fafe5b35e4b5fefe5a1 06-Oct-2010 Irfan Sheriff <isheriff@google.com> Use LinkProperties for IP and proxy configuration

Change-Id: I4ae817fb00141e9a742216b7fd02dca1ed228270
ifiConfigStore.java
ifiConfiguration.java
ifiStateMachine.java
ed5d7d17c9e9837ce7a6a10698cce9f6e4101acd 02-Oct-2010 Irfan Sheriff <isheriff@google.com> Add LinkAddress

LinkAddress stores IP address + prefix for a network link

Change-Id: Id3e74e9d0a62121d097ebdc9be064eeea257ba1f
ifiStateMachine.java
128cecab968337038591cc14e3cdd5b37b2e5cb9 23-Sep-2010 Irfan Sheriff <isheriff@google.com> Add proxy settings per wifi network

Provide per network proxy settings configuration
for wifi. This is stored along with the ip configuration
in ipconfig.txt

bug: 3039302
Change-Id: Ic8bc14493583be19fde3d7c463d1e5a77e6df25f
ifiConfigStore.java
ifiConfiguration.java
ifiStateMachine.java
7440fc2e0e0257043b967a80dceb0b33797d1d12 28-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Wifi: Update code for new BT Apis.

Change-Id: I1deb0a9a1533958cdb79179bebd2d3b435b0b07c
ifiStateMachine.java
5ee89800bee7c6c755778795a536e0e2f12b85ff 17-Sep-2010 Irfan Sheriff <isheriff@google.com> Add Wifi Protected Setup support

Add WPS PBC and WPS pin method support with pin obtained
from AP

Bug: 2277571

Change-Id: I6ff8e447ab8c5e59456a55152588fd4d6386c610
WifiManager.aidl
ifiConfigStore.java
ifiConfiguration.java
ifiManager.java
ifiNative.java
ifiStateMachine.java
03f3cb083d708d4d3226b80ed42c9d2876a56edc 18-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 1f377298 to master

Change-Id: I0d92abae3a86792b47777f795143acc0489adfe4
1f377298e2aaf6a1736295c0413d468eb1db5091 18-Sep-2010 Dianne Hackborn <hackbod@google.com> am 58e0eefe: Improve power tracking of WIFI use.

Merge commit '58e0eefeb5e2e270e2b04369bbf29fc22abda8d5' into gingerbread-plus-aosp

* commit '58e0eefeb5e2e270e2b04369bbf29fc22abda8d5':
Improve power tracking of WIFI use.
58e0eefeb5e2e270e2b04369bbf29fc22abda8d5 16-Sep-2010 Dianne Hackborn <hackbod@google.com> Improve power tracking of WIFI use.

We now distribute "wifi started" time across all apps that are
holding WIFI locks that cause it to be started. But only when
WIFI would not normally be running. Also have a mechanism to
distribute other WIFI work that has happened across those processes
based on their use.

Also fixed a bug where we were not retaining the CPU speed step
stats across boots...!

Change-Id: I00e3153b98429166273750512cc37e7975211ab9
ifiStateTracker.java
f61101f6266be243c481d163b95e65d67b8d1669 17-Sep-2010 Wink Saville <wink@google.com> Add LinkCapabilities

Change-Id: Ia1599ade936b79f12526252c0a2e6b453abb136e
ifiManager.java
ifiStateTracker.java
31b62322bfa9470d648fbfd69510e03da29b29af 30-Aug-2010 Irfan Sheriff <isheriff@google.com> Add per network static IP settings

Remove the existing global static IP settings and add support
for per network configuration

Change-Id: I5a6d8b877471b8c8ad07951c96d273893754607f
ifiConfigStore.java
ifiConfiguration.java
ifiStateMachine.java
e746f03c6c8b8d0897d322ab524d545ace200fcd 14-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 53686433 to master

Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
53686433a9790bcfe7211a661b26783ee12bb436 13-Sep-2010 Dianne Hackborn <hackbod@google.com> am 7e9f4eb2: Track client requests through location manager.

Merge commit '7e9f4eb2608148436cef36c9969bf8a599b39e72' into gingerbread-plus-aosp

* commit '7e9f4eb2608148436cef36c9969bf8a599b39e72':
Track client requests through location manager.
7e9f4eb2608148436cef36c9969bf8a599b39e72 11-Sep-2010 Dianne Hackborn <hackbod@google.com> Track client requests through location manager.

This fixes a problem where applications could ask the location
manager to do very heavy-weight things (like... say... update
location every minute), which would get accounted against the
system instead of the application because ultimately it is the
system making the heavy calls (wake locks, etc).

To solve this, we introduce a new class WorkSource representing
the source of some work. Wake locks and Wifi locks allow you
to set the source to use (but only if you are system code and thus
can get the permission to do so), which is what will be reported
to the battery stats until the actual caller.

For the initial implementation, the location manager keeps track
of all clients requesting periodic updates, and tells its providers
about them as a WorkSource param when setting their min update time.
The network location provider uses this to set the source on the
wake and wifi locks it acquires, when doing work because of the
update period.

This should also be used elsewhere, such as in the GPS provider,
but this is a good start.

Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
WifiManager.aidl
ifiManager.java
ee923072eb65cbf4f007458450e182a1289c2b7b 03-Sep-2010 Irfan Sheriff <isheriff@google.com> Merge "Add set/get band in WifiNative"
25c9bf2396ceb48fc5cfd5c1dd58aa4d4750d056 02-Sep-2010 Irfan Sheriff <isheriff@google.com> Add set/get band in WifiNative

Add support for set and get band and set the default
to 2GHz for now till we get a fix on issues
with 11A

Change-Id: Icb9bddc353e4bf013bdb8a08d9b4ee3451c282f4
ifiNative.java
ifiStateMachine.java
5de38d11f6bb277ac0930f4264f012dac14a05a9 02-Sep-2010 Wink Saville <wink@google.com> Remove unused Intent filter values.

Change-Id: I902cdbbff9238b2ac975441ef6ecb3c6d5c7a56f
ifiStateTracker.java
04db1d5d3a51f9b710b707cfdc1c2f41ad948237 31-Aug-2010 Irfan Sheriff <isheriff@google.com> Add WifiConfigStore to manage networks

Split configuration management into a seperate class,
next to come is per configuration ip management as part
of WifiConfigStore.

Bug: 2876746
Change-Id: I44b85fb0e23a83d97a5052ba6beafe06f2027f5a
ifiConfigStore.java
ifiStateMachine.java
37e65ebb7eb932e1a144b1cab262e11ca5fd109b 30-Aug-2010 Robert Greenwalt <robdroid@android.com> Rename NetworkProperties to LinkProperties

Also add copy constructors and use them when giving out data.

Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
ifiManager.java
ifiStateMachine.java
ifiStateTracker.java
585ac0fc8dde3fe35ec4c71c8f215f2c84139b8b 27-Aug-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 4ea54f44 to master

Change-Id: Ia77bb59a6e1950648c8ebf7db307e204f93a9f56
ifiStateMachine.java
e3f55d45cf91177cf610f95da67435c3719d1877 27-Aug-2010 Ben Dodson <bjdodson@google.com> Merge "Updated documentation for upcoming fix for @code tags"
4e8620f868e2490782ebb960404140ea9482c91d 25-Aug-2010 Ben Dodson <bjdodson@google.com> Updated documentation for upcoming fix for @code tags

Change-Id: Id7b163179132b9cf180afecb4e9e10ee39bcd415
ifiConfiguration.java
bbc85ab3229ea51b1358711fba99e3bf170ab825 26-Aug-2010 Irfan Sheriff <isheriff@google.com> Add WifiStateMachine details for dump

Change-Id: I3015411dd11f3df57422b41125d4db44be1e0854
ifiStateMachine.java
a2d5fbf569cb81d3d89bf61393c9ebd2c8a54aed 24-Aug-2010 Irfan Sheriff <isheriff@google.com> fix connectNetwork corner cases

1. if we try to use the api for an already connected network
we could end up in disabling other networks since we dont
get events back in that scenario. fix to ignore connect.

2. force transition to mDisconnectingState since we expect
a disconnection when we connect to a network. If we
are in the other child states in ConnectModeState and dont
transition, we could ignore the connection/disconnection
which would cause other networks to get disabled.

Change-Id: I603d504af21c5ba09411d5e2515b8031b9f8a97a
ifiStateMachine.java
50454c2718fe4f2921da02670f8cc69fd0baf9da 25-Aug-2010 Irfan Sheriff <isheriff@google.com> sendBroadcast needs protection

we need to check if system is ready for broadcasts

Change-Id: I342c51ae85c9ca1aa0cb289c673a20f582eb0423
ifiStateMachine.java
9e6222f4c126252c9950d072ab67d8b849d17643 23-Aug-2010 Irfan Sheriff <isheriff@google.com> cache configured networks

Remove the sync-wait call into state machine for
fetching configured networks

Bug: b/2876746
Change-Id: I4434627abb78f7112fd613008c4c77374ac1b966
ifiConfiguration.java
ifiStateMachine.java
d8134ff9d8178470116108bb7815fd0ab2a606a1 23-Aug-2010 Irfan Sheriff <isheriff@google.com> Clean up synchronous calls

We dont plan to have asynchronous versions of the existing
synchronous calls since we have added more powerful
asynchronous calls. Remove functionality to check for
synchronous calls.

Also, remove unused sync call for fetching status

Change-Id: I2982cb7b2aabc88a63289d49686a6e3645085263
ifiStateMachine.java
b65444df013020000a0d60491e9cf14c950c9500 21-Aug-2010 Irfan Sheriff <isheriff@google.com> am 80db4381: Merge "DO NOT MERGE Enable all networks on screen on" into gingerbread

Merge commit '80db4381c010c4dec74c2bf1e02380759e4ff97b' into gingerbread-plus-aosp

* commit '80db4381c010c4dec74c2bf1e02380759e4ff97b':
DO NOT MERGE Enable all networks on screen on
fae66c3ab59c741aad631e6f2dd82b77b1d4a353 16-Aug-2010 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Enable all networks on screen on

Connectivity to a disabled network never happens.
An old dhcp issue for example prevents
connectivity again in future. Allow connectivity
on all networks on screen on.

Bug: 2129037
Change-Id: I42afc17ddb5cd238e46d7e50f1b6e708e107b35d
ifiStateTracker.java
2338f48ddb3d1746c2d46df85fdc4dcd6cfa240b 20-Aug-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 34df5ccc to master

Change-Id: I55558b2ab9452b2a819a1fce5b3ee5af29688e98
cdea9193f2745fd46e69858a7c5570d95f8182dc 20-Aug-2010 Irfan Sheriff <isheriff@google.com> update ssid in WifiInfo

Bug: 2876746
Change-Id: I58295e01f07f168e234ab344065fe50047902c76
ifiStateMachine.java
f99819e47cbef2ec066a21b426c7e6fe95e3de48 20-Aug-2010 Irfan Sheriff <isheriff@google.com> clean up scanresults on exit from driver start state

Bug: 2934389
Change-Id: I918bb9e198aba0bdbb2be356a680789c9678e47c
ifiStateMachine.java
e498475b187277309c81b38240c7e71ec049e369 19-Aug-2010 Irfan Sheriff <isheriff@google.com> asynchronous driver commands

Make some of the common driver commands scan/disconnect/reconnect/reassociate
asynchronous. We already have broadcasts to indicate results.

Change-Id: I343c6be077fb11a3d488e586ab10ab2373b269d8
WifiManager.aidl
ifiManager.java
ifiStateMachine.java
4c0d81b8add0372cc7194b17cc6d2bfc58baacd1 19-Aug-2010 Daniel Sandler <dsandler@google.com> Fix divide-by-zero when calculating signal level over a large output range.

Change-Id: I17eff6fb458532465a836414e1973a8d5b7c715b
ifiManager.java
34df5ccca4c31d131eccc96c2ebf5cc698edfe21 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Merge "fix build" into gingerbread-plus-aosp
a00f8db5ef724bf9a695ac43c1538557f2dffe1f 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> fix build

Change-Id: I13a6a34e8eae73b046769df365be8a46489bd111
ifiStateTracker.java
aea40e3c5746d754f96b76b7845bbbf7effe2677 18-Aug-2010 Irfan Sheriff <isheriff@google.com> am a1af0d7c: Merge "Fix SDK build" into gingerbread

Merge commit 'a1af0d7c80a0119630926810644e6cdee481ba80' into gingerbread-plus-aosp

* commit 'a1af0d7c80a0119630926810644e6cdee481ba80':
Fix SDK build
3719f8568e809ffd30f90adc38993256a9d3d066 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> DO NOT MERGE resolved conflicts for merge of 8c11e952 to gingerbread-plus-aosp

Change-Id: I29703133654f0f80a4425914d290e9dc50cbc3cc
f93951851052f14e3263adff22266b61f487b018 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Revert "- updates NetUtils to use new libnetutils headers"

This reverts commit 9bf3bb21c097cc96f30d9bf3ec7dea62a74a738b.
ifiNative.java
ifiStateTracker.java
4d32d81bd7abb77ab9663f4f800bd96dca0c0e03 18-Aug-2010 Irfan Sheriff <isheriff@google.com> Fix SDK build

Add the tag and documentation when we open up the high perf mode

Change-Id: I921e46a7519561e59fb917d08a36dd1d3d2fc7f3
ifiManager.java
8c11e952305327183db9f7be719e4c94fde15a7c 13-Aug-2010 Irfan Sheriff <isheriff@google.com> DO NOT MERGE WifiLock extensions for high performance mode

Add extension to WifiLock to allow apps to operate
in high performance mode (high power & disable suspend
optimizations for battery consumption).

Bug: 2834260
Change-Id: I8b33d307f3d569bc92ba2139b9ed224ffc147547
ifiManager.java
ifiNative.java
ifiStateTracker.java
c7a98341b053bd8090accca151e8f3522f2dd126 14-Aug-2010 Wink Saville <wink@google.com> Add documentation to NetworkStateTracker and a small change to the API.

Also, removed some unused NetworkStateTracker event codes.

The API change was to add context and target to startMonitor, this makes
it easier to document what the actual interface contract is.

Change-Id: If9b52486c3c281fe4794bc78417c8b03888414b1
ifiStateTracker.java
993f85f3194000d0eb212f361431c9319548b144 14-Aug-2010 Robert Greenwalt <robdroid@android.com> am e300b8c1: Merge "DO NOT MERGE Always set/remove default routes." into gingerbread

Merge commit 'e300b8c10c306b575bbbec29d5572ba92a97785e' into gingerbread-plus-aosp

* commit 'e300b8c10c306b575bbbec29d5572ba92a97785e':
DO NOT MERGE Always set/remove default routes.
b738fb9938631a2e4540f9a9308f49e6be5565b8 13-Aug-2010 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Always set/remove default routes.

Must clean up default route if a default 3g connection is replaced
by a non-default (ie, mms) connection on teh same interface.

Also stop mucking with all connections dns and routes - do it only
for the connection that has changed.

bug:2865974
Change-Id: Ifdf49080fa0413a4d826813706c809975a562dfa
ifiStateTracker.java
876247784ee6202066abdefd8366f2e09e681fab 07-Apr-2010 Mikael Kanstrup <mikael.kanstrup@sonyericsson.com> DO NOT MERGE WLAN: Reset power save mode to startup value after DHCP response.

When the driver was configured to run with power save mode disabled the
power save mode incorrectly got reverted back to AUTO mode right after
DHCP response. The power save mode value is now saved so that the device
properly reverts back to a previous mode after DHCP response.

Change-Id: Ie68cd107872d233bf422e24130a1eb9f6432db91
Bug: 2834260
ifiNative.java
ifiStateTracker.java
e04653cbd0e8303eba92088344312b827e6b0bab 09-Aug-2010 Irfan Sheriff <isheriff@google.com> Asynchronous API

Add asynchronous API for simplified connect, save
and remove.

Add a SUPPLICANT_CONFIG_CHANGED_ACTION broadcast to
notifiy a supplicant configuration change.

Change-Id: I69ae116246094de4a469cb2af5baf37e5ad4d6dd
WifiManager.aidl
ifiManager.java
ifiStateMachine.java
994c57828f5bc5519197e8b8ed2d2cba40429ce0 11-Aug-2010 Irfan Sheriff <isheriff@google.com> Fix build

A local change had remained.

Change-Id: Iad01d6da7f6cc75b470296383e1121d21008883a
ifiStateMachine.java
0d25534fed91f636def5776ddc4605005bd7471c 28-Jul-2010 Irfan Sheriff <isheriff@google.com> Split WifiStateMachine from WifiStateTracker

Notifications handled in WifiService. WifiStateTracker tracks
state for connectivity service

Change-Id: Idb0cf494898d28712af0f95f9e60c5417cd4a053
WifiManager.aidl
ifiManager.java
ifiMonitor.java
ifiStateMachine.java
ifiStateTracker.java
34fe791453ec139086237d9ac902d9a502de0798 29-Jul-2010 Irfan Sheriff <isheriff@google.com> Handle loss of supplicant events at start

If the supplicant events are lost even before connection,
we stay stuck without doing IP address.
The earlier implementation used polling at connection to handle
this case.
A disconnect after connection handles this cleanly.

Bug: 2876987
Change-Id: I7509c5f332f87b91e1ff8438cf859a0e49df2e6d
ifiStateTracker.java
22c2b25ad7c6ed175831bd2421ee110a343c78dd 28-Jul-2010 Irfan Sheriff <isheriff@google.com> sticky broadcasts dont need system ready check

Fix an issue where checking for system ready status
for sticky broadcasts can lead to boot up with wifi
turned on and settings showing incorrect status.

Bug: 2876746
Change-Id: Iae39855c255513e28a13bd819b3d14d81fbaba43
ifiStateTracker.java
a2a1b911a31dd94ee75e94845f762b91f1db1368 07-Jun-2010 Irfan Sheriff <isheriff@google.com> Refactor WifiStateTracker

Implement WifiStateTracker as a HSM.

Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb
ifiManager.java
ifiMonitor.java
ifiNative.java
ifiStateTracker.java
47f69fe2999e46004f2f2463b70d38de9ff7079a 16-Jun-2010 Robert Greenwalt <robdroid@android.com> Pass network properties to ConnectivityService.

Used as a bag to hold ipaddr, gateway, dns, proxy info.
addr's are InetAddresses for v4/v6 use. Cleaning up some old v4-only code

bug:2655015
Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59
ifiStateTracker.java
30683b2ad0754cc834ccdc07829dbf5b46563b0b 26-Jun-2010 Irfan Sheriff <isheriff@google.com> am 53dca61f: am 9005e7f4: Merge "Add setWifiApConfiguration interface" into gingerbread

Merge commit '53dca61f26f4ff348418add60599213297acc899'

* commit '53dca61f26f4ff348418add60599213297acc899':
Add setWifiApConfiguration interface
53dca61f26f4ff348418add60599213297acc899 26-Jun-2010 Irfan Sheriff <isheriff@google.com> am 9005e7f4: Merge "Add setWifiApConfiguration interface" into gingerbread

Merge commit '9005e7f4297a3f04263e81cb61ba2703d5667b0a' into gingerbread-plus-aosp

* commit '9005e7f4297a3f04263e81cb61ba2703d5667b0a':
Add setWifiApConfiguration interface
17b232b5b59ab91ab543b87e849583678a000f9b 24-Jun-2010 Irfan Sheriff <isheriff@google.com> Add setWifiApConfiguration interface

Bug: 2538623
Change-Id: I779044173a2fa0e9b851ea92aeec5ca25eb9c86f
WifiManager.aidl
ifiManager.java
3b9f0a33a110d01e587ffd5ec7708af68723ad4b 21-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Recover a handful of commits that were reverted earlier
ifiStateTracker.java
6c9a30045b1e6b9ef5d756e0a9657576c546c9bd 21-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I36dd4460cae6e3212d724e70ff1091cb791670cd
bd580127fca2797ba1a0f6653fe4cb2fd427ec83 16-Jun-2010 Irfan Sheriff <isheriff@google.com> am 1af48920: am f897b443: Fix driver stop check

Merge commit '1af489205a3942630e6203237213e98ef53d4118'

* commit '1af489205a3942630e6203237213e98ef53d4118':
Fix driver stop check
1af489205a3942630e6203237213e98ef53d4118 16-Jun-2010 Irfan Sheriff <isheriff@google.com> am f897b443: Fix driver stop check

Merge commit 'f897b443fed5c88c6b12e3fa1da72f231db67673' into gingerbread-plus-aosp

* commit 'f897b443fed5c88c6b12e3fa1da72f231db67673':
Fix driver stop check
f897b443fed5c88c6b12e3fa1da72f231db67673 15-Jun-2010 Irfan Sheriff <isheriff@google.com> Fix driver stop check

- Remove check for supplicant command: setScanResultHandling
- Add check for stopDriver
- Fix condition for rest of commands

Bug: 2771298
Change-Id: I1262b2228814c4f6a4c251390af2f445c5f47234
ifiStateTracker.java
14f2ef4c9da27a3d58d65dc9f684c5f764ee279a 15-Jun-2010 Robert Greenwalt <robdroid@android.com> Move the net transition wakelock to ConnService.

When the default network goes down we lose the wake-on-incoming-data capability
until the new net is brought up and apps rebuild their connections. We fixed this
in Wifi, but it's a general connectivity issue, not a wifi issue so moving the
mechanism to connecitivty so other networks can use it.

bug:2734419
Change-Id: I39b5d825eb6b548bd9bb8f179b89254f4db53147
ifiStateTracker.java
7d10df4e2402c55dc827cb6675a15957071c00af 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I0684cac9eb230d864614aef0634c072f4e3ef6a3
9bf3bb21c097cc96f30d9bf3ec7dea62a74a738b 09-Jun-2010 Szymon Jakubczak <szym@google.com> - updates NetUtils to use new libnetutils headers
- updates WifiStateTracker to track net.XXX.dnsX properties for name servers
- removes dhcp from WifiNative (use NetworkUtils instead)

Change-Id: Ic69ff253e8784cad34e9291e7970ee38bfa235b9
ifiNative.java
ifiStateTracker.java
fa804aa367e4c5c52c8a92d489b1a4ef405811f7 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I227bf1b5f1de8f858df72d58a4463aed5cc09cbc
baccb91ece4ac650cae465ae36f5d7397a1f32af 02-Jun-2010 Kenny <gongwuchun@gmail.com> Fix the ssid display issue

Reproduce steps:
1. Set a special AP name that contains "=" (looks like "-=^-^=-");
2. Connect to this AP;
3. The display of ssid will be incorrect;

Change-Id: Idc7433a42cf59932f5fb147f5500e0175f745399
ifiStateTracker.java
e377032899fd7a9f88ad1313847e77c098b9f248 14-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 864c68ea: merge from froyo-plus-aosp

Merge commit '864c68ea452baa0f4f298faf2155af45a9b6d60c'

* commit '864c68ea452baa0f4f298faf2155af45a9b6d60c':
Added an addAll to the ArrayAdapter
WLAN: Reset power save mode to startup value after DHCP response.
Add PageUp and PageDown hot keys
Should accept "application/vnd.wap.multipart.alternative" message.
replaced deprecated getIntent with parseURI
864c68ea452baa0f4f298faf2155af45a9b6d60c 14-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I9cede57e10df9d6ba411b2960a77d7b9b60a1489
0631c608b0997efe5c0bd8e8955e65f1a7b3f32c 12-Jun-2010 Irfan Sheriff <isheriff@google.com> merge from open-source master

Change-Id: I8a950276787e9439420db396d0e32f88bd6e04cc
9e30a6e374c0ac154d6ea256f50597c4b0b63cca 11-Jun-2010 Irfan Sheriff <isheriff@google.com> am 749defb0: am f4f614f5: am 9f2a0115: Merge "Remove indefinite DHCP retries" into froyo
f4f614f5edeeceddf1145df73b30f7066d00d7fa 11-Jun-2010 Irfan Sheriff <isheriff@google.com> am 9f2a0115: Merge "Remove indefinite DHCP retries" into froyo

Merge commit '9f2a0115220c8e288c32d8cf90e235a2f2be115b' into kraken

* commit '9f2a0115220c8e288c32d8cf90e235a2f2be115b':
Remove indefinite DHCP retries
60d0d22c75ef49d151290592652b92f3e199679b 10-Jun-2010 Irfan Sheriff <isheriff@google.com> Remove indefinite DHCP retries

Replace indefinite DHCP retries
with a sufficiently large retry count

Bug: 2761057
Change-Id: I4570b74476aa78c71c73e06c2aafac33d924e867
ifiStateTracker.java
d649c12815bcf944b2c97371f3f60716a42a1557 10-Jun-2010 Irfan Sheriff <isheriff@google.com> Make NetworkStateTracker an interface

As part of the WifiStateTracker cleanup, need
to have NetworkStateTracker as an interface.

Change-Id: I2ac48d7e4c7274ac4df40bc3b8591b182956a936
ifiStateTracker.java
ea8bd1d1676dd96f8f9726bb8f67fa18dec7b9c1 07-Apr-2010 Mikael Kanstrup <mikael.kanstrup@sonyericsson.com> WLAN: Reset power save mode to startup value after DHCP response.

When the driver was configured to run with power save mode disabled the
power save mode incorrectly got reverted back to AUTO mode right after
DHCP response. The power save mode value is now saved so that the device
properly reverts back to a previous mode after DHCP response.

Change-Id: I5035aad10146812ecef1be8ea4b22a03e230ccc9
ifiNative.java
ifiStateTracker.java
02648a4b8422733ed401f07edf8e426318bb2f8d 18-May-2010 Robert Greenwalt <robdroid@android.com> Clean up APN notifications.

Add APNType info to notifications so you can tell what's happening. Now, even if a new APN
shares a connection with an already-connected-to- apn type, the new type will get all
the connecting and connected messages on connect and disconnecting/disconnected on disconnect
even though the shared connection remains connected.

Cleaning out the hacks MobileDataStateTracker needed to deal with the old situation.
bug:2226092

Change-Id: Iddd7421d6b91cda7c8405f9c3d5404ac04ef8e42
ifiStateTracker.java
740e39be6af3e366a4b82c030b5ea67ab144b42a 02-Jun-2010 Jaikumar Ganesh <jaikumar@google.com> Pass BluetoothDevice to the Bluetooth Headset calls.

This is to support multiple headsets at the same time, atleast
at the framework level.

Change-Id: I91d05c6c2828c9a09d00806d5e79f1e9c9c7cf84
ifiStateTracker.java
2d1a6e9429ea5cec8aa45e0508f97ab4573c9f09 19-Apr-2010 Irfan Sheriff <isheriff@google.com> Reset notification state on wifi enable

Bug: 2600111
Change-Id: Ifaa63cd7c05dfa27fbd851de6f7e92f7fc38907b
ifiStateTracker.java
3bf504df9fc1971078fdde7eed418a0dd8f601e2 23-Mar-2010 Irfan Sheriff <isheriff@google.com> Fix WakeLock issue for driver stop

Due to message removal, wakelock could be held forever.

Do a timer only based wakelock release until we do this
more cleanly in ConnectivityService for later release.

Also, add an optimization to prevent use of wakelocks when driver is
already stopped.

Bug: 2529883
Change-Id: Ia1c2ddd44213ef3aa609855613bf155945bef8e4
ifiStateTracker.java
49de491379fc56960d00ff6c52472fe1a7d907a7 22-Mar-2010 Irfan Sheriff <isheriff@google.com> Use a single mWifiState instance

mWifiState was split up to speed up access
of wifi state when things are synchronized.
Use a single atomic state variable throughout.

Change-Id: I345981e3ffa3d2b0b7e70a5c6efc43185cba9062
ifiStateTracker.java
90dd21eff5f4799dd770a6e1a0390ac68734429a 22-Mar-2010 Brad Fitzpatrick <bradfitz@android.com> Make getting wifi state lockless.

Previous it was synchronized on the same lock that was held while
transitioning wifi states, effectively making it impossible to ever
find out about such states, and worse: making calls during transitions
block.

This manifested itself in a really laggy power control widget, which
I'm working on fixing in general in a separate change.

Change-Id: Ia34af98c73d7f5662e41360a213df87f6adaf130
ifiStateTracker.java
4f31a00376fa0907ab167af51525455ef4b4e638 18-Mar-2010 Irfan Sheriff <isheriff@google.com> Fix null pointer exception

Bug: 2525763
Change-Id: If2f334187af26e0352d754d7e00a9ca3efc5dffa
ifiStateTracker.java
9ab518ad793385f8405edf19363fe825fb64f5f8 13-Mar-2010 Irfan Sheriff <isheriff@google.com> softAp framework changes

Remove AP persist settings
Add new netd interface
Handle errors
Handle AP config change
Bug: 2413908
Change-Id: I31a1221ef5479da8d4a2620f0f0ee0b62539bc69
WifiManager.aidl
ifiManager.java
0f344060096329f091af20a16d69547a47c1a9d5 10-Mar-2010 Irfan Sheriff <isheriff@google.com> Clean up native access from framework

Driver commands should be issued when driver has started.
Supplicant commands should be issued when Wi-Fi is enabled
Bug: 2339709
Bug: 2371609
Change-Id: I9ba6ddfa0cf4c4b8ca049b0eb7eaaa8edb42bad1
ifiStateTracker.java
a8fbe1fb74d3bd40b73c90c85ac25e5176475ca5 09-Mar-2010 Irfan Sheriff <isheriff@google.com> Re-organize access to native interface through WifiStateTracker

Bug: 2339709
Change-Id: Ibb2eeb09b83dc24897116ea15a9016f81a08d442
ifiMonitor.java
ifiNative.java
ifiStateTracker.java
5321aef4a22daef6ed01ed48d936cdd82f2e38b7 12-Feb-2010 Irfan Sheriff <isheriff@google.com> Wifi AP framework changes first pass

Bug: 2421638
Change-Id: Ic5ea8f7560a7fe5e1b0769daa5d92cc33eefc692
WifiManager.aidl
ifiManager.java
c1ba7431a45dbf10f211e7b0bbf5b03e64bf020c 24-Feb-2010 Irfan Sheriff <isheriff@google.com> Remove redundant interface disable

Bug: 2274930
Change-Id: Ia1eafe422f6e18b826e53e72a306dd2961b948a6
ifiStateTracker.java
102d05fa9135bef5c6b875f9a6485566b06ebd18 05-Feb-2010 Irfan Sheriff <isheriff@google.com> get DHCP IP on each connection

The IP state was not being refreshed when the supplicant transitions
from COMPLETED to ASSOCIATED to COMPLETED. This can lead to
a connected state with no real connection due to old IP settings.
The fix refreshes IP on each connection.

Bug: 2329261
Change-Id: I38cd56369ee2d8ab3e0f06f5c9f5712b9b2f35a0
ifiStateTracker.java
05d72117f9b449914979b008c17edd6c5645565b 28-Jan-2010 Irfan Sheriff <isheriff@google.com> Handle error strings from monitor connection

Bug: 2399119
Change-Id: I481cfbfb11fb453659134004aafa3df236ba050b
ifiMonitor.java
0049a1bf3f8bae3a10cfeff38aefce215bf1298b 14-Jan-2010 Irfan Sheriff <isheriff@google.com> Blacklist APs instead of disable

We currently disable networks upon too many reconnects. This leads to asking
the user input for reconnects. Blacklist it instead.

Bug: 2129037
Change-Id: I23d69daf3964c066ed7f70d32fefb81016f19aa2
ifiMonitor.java
ifiStateTracker.java
7aac5547daf54005243c5d685cf60c5a4ff74a44 23-Dec-2009 Irfan Sheriff <isheriff@google.com> Synchronize all WifiNative calls

Some of the native calls were left unsynchronized in the framework. Pre-empted IOCTL call
interrupted by another call from the framework cannot be handled in the driver.

Bug: 2310455
ifiStateTracker.java
1c633fc89bae9bf0af6fe643ac7ad2e744f27bed 09-Dec-2009 Dianne Hackborn <hackbod@google.com> Implement API to have new broadcasts replace existing broadcasts.

Use this in various places where it should serve no purpose to deliver
both broadcasts. This is intended to reduce somewhat the flurry of
broadcasts that we churn through during boot.
ifiStateTracker.java
7614d3d819315b1ca15088e617f12d0f0ea41b06 09-Dec-2009 Robert Greenwalt <robdroid@android.com> am 68b15b68: Porting change I064698b3 from mr2 to eclair.

Merge commit '68b15b68497e373fe63a13f11e18349a738a7989' into eclair-mr2

* commit '68b15b68497e373fe63a13f11e18349a738a7989':
Porting change I064698b3 from mr2 to eclair.
68b15b68497e373fe63a13f11e18349a738a7989 09-Dec-2009 Robert Greenwalt <robdroid@android.com> Porting change I064698b3 from mr2 to eclair.

Add support for "HANGED" driver state - we'll reboot the driver when requested (by the driver).

bug: 2310372
ifiMonitor.java
ifiStateTracker.java
f75aa36fc86989ca3bae2f46207e6b897a32d7ae 23-Oct-2009 Robert Greenwalt <robdroid@android.com> Add wifi "HANGED" driver state triggering reload.

The driver can now report to us that they are hosed and we'll shut
down wifi and restart it - only to be used as a last resort.

Also fixing synch problem with updateWifiState.

bug: 2173119
ifiMonitor.java
ifiStateTracker.java
e2d155a51e68694e17fa6e27d05c928215a5dbcf 21-Oct-2009 Robert Greenwalt <robdroid@android.com> Add a new API for initing Wifi multicast filtering

Gets rid of the old method which generated Log noise.

bug: 1973855
WifiManager.aidl
ifiManager.java
ifiStateTracker.java
1538dba4b00f767ddc4010e05b5983d6377999c2 08-Oct-2009 Robert Greenwalt <robdroid@android.com> Make FWK start a wifi scan if supplicant forgets. (do not merge)

Waits 15sec after getting a DISCONNECTED or INACTIVE state. Also tracks
the number of supplicant state transitions. After the period is up
if we haven't received any more supplicant state transitions, it requests a scan.

bug: 2168081
ifiStateTracker.java
b106118c2cc558a9ea2ade69ff47766280a35e17 08-Oct-2009 Robert Greenwalt <robdroid@android.com> Make FWK start a wifi scan if supplicant forgets.

Waits 15sec after getting a DISCONNECTED or INACTIVE state. Also tracks
the number of supplicant state transitions. After the period is up
if we haven't received any more supplicant state transitions, it requests a scan.

bug: 2168081
ifiStateTracker.java
bb5626c569bb9ccedd7b7d4197a2dace4c997c49 01-Oct-2009 Robert Greenwalt <robdroid@android.com> Stop bringing the wifi interface up on reset.

The driver will bring up the interface when needed and bring it up
at reset time has caused some problems.

bug: 2144870
ifiStateTracker.java
5f55d8c9d447f492aed955ac29454e0c482a4956 22-Sep-2009 Chung-yih Wang <cywang@google.com> Fix the incorrect field name in EAP wifi network.

The field identity should not be "anonymous_identity".
ifiConfiguration.java
7121ac5644f222763c99975bcce93c28775a6386 22-Sep-2009 Chung-yih Wang <cywang@google.com> Fix the issue of 'Wifi framework is not aware of state change'

Problem:
Connect to AP with WEP security.
Change AP's WEP password.
Phone will quickly reassociated (less than in 5 sec) and will not restart full "reconnect".
Indication will show "connected" but it will be no network access.

Fix: (for non-static IP only)

With WEP mode, the association could be successful if we change the AP's WEP password. However,
the phone wont be able to send/recv any traffic with the old password. What we could quickly
fix here is to send the DHCP request if the network is not configured to use static IP. We
can do nothing but ping access point to see if it we are able to communicate with it.
ifiStateTracker.java
4282a5bad44b1b994a26a8eb02051f29f410d33a 17-Sep-2009 Robert Greenwalt <robdroid@android.com> Reintroduce wifi RssiApprox, reducing driver calls

Only do the full signal strength calc when we need to, otherwise use
an approximate value.

This change was introduced a while back but was lost in some merge.

bug: 2125543
ifiStateTracker.java
8e9ef0e78970d0ca399bd3c9aaf9011f0e4aaebe 16-Sep-2009 Chung-yih Wang <cywang@google.com> Add the hide for the inner class definition.
ifiConfiguration.java
4337476a6669ce52549ce4a60f5e4d07f8e3033f 16-Sep-2009 Chung-yih Wang <cywang@google.com> Fix the missing part for reading enterprise fields in wifi configuration

+ refactor the enterprise fields.
ifiConfiguration.java
7c9bf7caa2936e8b76598be9fffea980d81c61d3 12-Sep-2009 Robert Greenwalt <robdroid@android.com> Don't init wifiChannels until after supplicant up

The supplicant can take up to 15 seconds to start - setting the number of wifi channels
immediately after requested wifi start often will fail.

Changed to set the number of channels when the supplicant is reported as alive.

bug:2083601
ifiStateTracker.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
ifiManager.java
bd022f423a33f0794bb53e5b0720da2d67e4631c 15-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: API change.

Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
(pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
ifiStateTracker.java
0cbdb39991d65909e00700db0c8e9e9447365882 30-Jul-2009 Robert Greenwalt <robdroid@android.com> am 41c10433: Fix MulticastLock API to match WifiLock API.

Merge commit '41c104339951e0e5e78240e1f48455c21b3ba5fd'

* commit '41c104339951e0e5e78240e1f48455c21b3ba5fd':
Fix MulticastLock API to match WifiLock API.
41c104339951e0e5e78240e1f48455c21b3ba5fd 30-Jul-2009 Robert Greenwalt <robdroid@android.com> Fix MulticastLock API to match WifiLock API.

Adds option to make lock refcounted or not. Fixes 2017680.
ifiManager.java
6ee4b5b504a2542b47befe5d6c5f9aaff9b40ed9 28-Jul-2009 Mike Lockwood <lockwood@android.com> Wifi: Make sure the interface is up before telling supplicant to start the driver.

This fixes a problem that resulted in the interface not being up when resuming
an authenticated connection.

Signed-off-by: Mike Lockwood <lockwood@android.com>
ifiStateTracker.java
d72aa3b92c206092d3b3ce563e0ebf25e1a0be07 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 356d4a14: Merge change 8172 into donut

Merge commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3'

* commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3':
Add the phase2 field for EAP WiFi configuration.
b96ea206d93b6cd7fe2106a8427d41a8e90d8322 22-Jul-2009 Chung-yih Wang <cywang@google.com> Add the phase2 field for EAP WiFi configuration.
ifiConfiguration.java
e2a5385c70b48b57476a0c8c52bad4ea40398641 15-Jul-2009 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of f7703519 to master
f32be166d56302b59c242a1296a6b03862f3c061 14-Jul-2009 Mike Lockwood <lockwood@android.com> wifi: Disable RSSI polling when the screen is off.

Signed-off-by: Mike Lockwood <lockwood@android.com>
ifiStateTracker.java
0900f3657664d9046e6723825fd32b244eef2b6c 10-Jul-2009 Mike Lockwood <lockwood@android.com> wifi: Keep the WLAN network interface up whenever wifi is enabled.

We now only bring it down briefly and bring it back up again when
we want to reset the interface.

Signed-off-by: Mike Lockwood <lockwood@android.com>
ifiStateTracker.java
622f82a0c78aa69d9b3b29ea0617cb8002b57c16 10-Jul-2009 Mike Lockwood <lockwood@android.com> WifiService: Remove hidden AP counting logic for active/passive scanning mode.

Apparently this code was not 100% correct, and now the Wifi driver is responsible
for setting the scan mode to active for hidden networks, so this is no longer needed.

Signed-off-by: Mike Lockwood <lockwood@android.com>
ifiStateTracker.java
6811355d9683412cb3651e75c59c3256ceaddcec 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 463aacfb: Merge change 6661 into donut

Merge commit '463aacfbd220c9ef2f6ed915d54092289fdac05b'

* commit '463aacfbd220c9ef2f6ed915d54092289fdac05b':
wifi: WifiManager.startScan() will now do passive scans by default.
a5ec95cdb1a7d2024249277dff1f99d0046c9b56 08-Jul-2009 Mike Lockwood <lockwood@android.com> wifi: WifiManager.startScan() will now do passive scans by default.

Active scans will only happen if a hidden AP is in use, or if the new method
WifiManager.startScanActive() is called.
This fixes some audio playback problems with bluetooth A2DP.

Signed-off-by: Mike Lockwood <lockwood@android.com>
WifiManager.aidl
ifiManager.java
ifiNative.java
ifiStateTracker.java
58c714c41ac3799b0b408affd9804056070d358c 06-Jul-2009 Chung-yih Wang <cywang@google.com> am 699ca3f2: Add password field for WiFi configuration.

Merge commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91'

* commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91':
Add password field for WiFi configuration.
fca3ae1517b19c3cd40b761cd4bc134e98c0c565 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 3bc64a2c: Merge change 6088 into donut

Merge commit '3bc64a2cb97da7bf7dc203416ad6c7d86c5925fc'

* commit '3bc64a2cb97da7bf7dc203416ad6c7d86c5925fc':
WifiManager: Limit the number of WifiLocks that can be active simultaneously.
699ca3f2518360ea3250ff5a0e5d39e122c64a91 04-Jul-2009 Chung-yih Wang <cywang@google.com> Add password field for WiFi configuration.

1. the certtool.h is modified for avoiding the side effect,
for saving the configuration with wpa_supplicant.
2. put the loadLibrary back in CertTool.java
3. Fix incorrect JNI declarations.
ifiConfiguration.java
617750604c69e6068f68266d0e30324273aa990e 02-Jul-2009 Mike Lockwood <lockwood@android.com> WifiManager: Limit the number of WifiLocks that can be active simultaneously.

This is to prevent a bad app from using up all the global references in the
system process due to allocating too many DeathRecipients.

Signed-off-by: Mike Lockwood <lockwood@android.com>
ifiManager.java
56c59da434354e1efaebbd0e5c135814605f9842 10-Jun-2009 Mike Lockwood <lockwood@android.com> WifiStateTracker: Add support for positive RSSI values.

Signed-off-by: Mike Lockwood <lockwood@android.com>
ifiStateTracker.java
91f22f901bee5d52d81ca4070a1b187ac8b90dad 09-Jun-2009 Robert Greenwalt <robdroid@android.com> Use new wifi cmd rssi-approx when polling.

Cheaper approx call should be used when polling every 3 sec for
wifi signal strength. Fixes bug 1903653.
ifiNative.java
ifiStateTracker.java
36d3ebb880e922859d4fd83792e13069072c19b2 06-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 19cd309f: Merge change 3017 into donut

Merge commit '19cd309f9eccdf8454dc6e5076013588b7a170a3'

* commit '19cd309f9eccdf8454dc6e5076013588b7a170a3':
Add the EAP related fields for WiFi configuration.
5069cc78497209c035a7019b2f407bd1ed57f64a 03-Jun-2009 Chung-yih Wang <cywang@google.com> Add the EAP related fields for WiFi configuration.

-- added the EAP/802.1X related fields in WifiConfiguration for
supporting EAP/802.1X authentication.
-- hid the related fields for now.
ifiConfiguration.java
96cdc61c69aa735e65295a50e3e2922425b3c877 28-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 1e2e44e9: Merge change 2365 into donut

Merge commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc'

* commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc':
Fix wifi multicast API for public use.
Revert "Bug fixes and performance improvements"
fc1b15cfbfc5f69235ec1f367abd7a909381cd05 23-May-2009 Robert Greenwalt <robdroid@android.com> Fix wifi multicast API for public use.

Applying API review comments and taking it public.
WifiManager.aidl
ifiManager.java
ifiStateTracker.java
b5010cc3c33c74cc406a70f34f93d330a3f0db6a 22-May-2009 Robert Greenwalt <robdroid@android.com> Add carrier/mcc factors to wifi-channel decision.

Uses ro.carrier and MCC when available to try to set
(non-persistingly) the number of allowed wifi channels.
Part of the fix for 1625953.
WifiManager.aidl
ifiManager.java
ifiStateTracker.java
58ff0217a617d5b03d18f0ef532f254f8ba6de2b 20-May-2009 Robert Greenwalt <robdroid@android.com> Increment BatteryStatsImpl's VERSION.
That'll make it stop trying to interpret older records with the new format.
Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
WifiManager.aidl
ifiManager.java
ifiStateTracker.java
d9c32bc838cb618dcbc1e48df02a34b6596b8930 18-May-2009 Mike Lockwood <lockwood@android.com> WifiService: Wifi power management change

Put Wifi into an idle state immediately if the screen is turned off and the Wifi interface has no IP address.
We will continue to keep Wifi up for 15 minutes in the case where the screen is turned off when Wifi is fully connected.
This will allow us to go into a low power mode faster when Wifi is not actively being used.
It also avoids bringing up Wifi if the user just turns on the screen for a few seconds to check the clock, etc.

Fixes bug b/1736920

Signed-off-by: Mike Lockwood <lockwood@android.com>
ifiStateTracker.java
5347bd4cda2b6afc18f8acab48e52131f35ed13c 14-May-2009 Robert Greenwalt <robdroid@android.com> Add wifi multicast filter api (enable/disable).
Fixes 1833432. Automatically re-disables any request when the app
exits/crashes. Also hooked into Battery Stats for power managment analysis.
WifiManager.aidl
ifiManager.java
ifiStateTracker.java
99001278289036a3c645e599ed832943ff1b6e15 14-Apr-2009 Eric Shienbrood <> AI 145980: am: CL 145881 Adding on to CL 145383, unhiding some additional methods and constants
that ought to be exposed. Hid and deprecated the single-arg public
constructor for NetworkInfo, and modified a CTS test that was testing it.
Ran the android.net test package to make sure it still works.
Original author: ers
Merged from: //branches/cupcake/...

Automated import of CL 145980
ifiManager.java
f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 11-Apr-2009 Andy Stadler <> AI 145778: Manual merge changes 145382-145384 from cupcake.

Automated import of CL 145778
ifiConfiguration.java
5711fadfc48f0e77bc25a91ef36c76acb0d2f55a 28-Mar-2009 Eric Shienbrood <> AI 143266: am: CL 143124 Fix bug #1731826, in which auto-connect to remembered networks does not
take place.
This has the same underlying cause as bug #1739874, so this fixes that
bug as well. The problem was that if the supplicant was in the DORMANT
state at the time a scan-only Wi-Fi lock was released, the command to
stop the Wi-Fi driver would never be issued. This had two main results:
first, the driver would stay awake when the screen was blank and it was
supposed to be sleeping, leading to excessive battery drain, and second,
when the screen was turned back on, there would be no DRIVER-STARTED
event generated (because the driver was already running). The
DRIVER-STARTED event is the trigger for the framework to issue a
RECONNECT command to the supplicant to cause it leave the DORMANT state
and look for available remembered networks.
To assist in tracking down this problem, and any such problems in the
future, I added four counters to keep track of how many times full and
scan-only Wi-Fi locks are acquired and released. The counter values
are output in the dump() method of WifiService. While doing this, I
noticed that because of missing "break" statements, the battery stats
that keep track of how much time Wi-Fi locks are held were including
the time for full locks in the time reported for scan-only locks.
Original author: ers
Merged from: //branches/cupcake/...

Automated import of CL 143266
ifiStateTracker.java
d4c5f8919b0522bcaab41a5863c313fec52d3a79 25-Mar-2009 Eric Shienbrood <> Automated import from //branches/donutburger/...@140679,140679
ifiStateTracker.java
b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
ifiNative.java
ifiStateTracker.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
WifiManager.aidl
canResult.aidl
canResult.java
upplicantState.java
ifiConfiguration.aidl
ifiConfiguration.java
ifiInfo.aidl
ifiInfo.java
ifiManager.java
ifiMonitor.java
ifiNative.java
ifiStateTracker.java
ackage.html
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
WifiManager.aidl
canResult.aidl
canResult.java
upplicantState.java
ifiConfiguration.aidl
ifiConfiguration.java
ifiInfo.aidl
ifiInfo.java
ifiManager.java
ifiMonitor.java
ifiNative.java
ifiStateTracker.java
ackage.html
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
ifiMonitor.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
ifiStateTracker.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
WifiManager.aidl
ifiManager.java
ifiMonitor.java
ifiNative.java
ifiStateTracker.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
WifiManager.aidl
ifiManager.java
ifiStateTracker.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
WifiManager.aidl
ifiConfiguration.java
ifiManager.java
ifiMonitor.java
ifiNative.java
ifiStateTracker.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
WifiManager.aidl
canResult.aidl
canResult.java
upplicantState.java
ifiConfiguration.aidl
ifiConfiguration.java
ifiInfo.aidl
ifiInfo.java
ifiManager.java
ifiMonitor.java
ifiNative.java
ifiStateTracker.java
ackage.html