History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4fa99f57077ab287d6ed1b51cf308c44ce8bbe0b 11-Jan-2015 vandwalle <vandwalle@google.com> aggressively blacklist WifiConfiguration for the purpose of switching network

In cases where networks are not properly configured, WiFi might tries to repeatdly
switch from one network to a bad network, or might try to roam and renew DHCP which can fail.
In KK, WiFi autojoin would try other networks (by cycling to network it sees) and
end up associated to a "good" network. In L release even thought WiFi might pick
a good network it will still repeatedly try to switch to what it thinks is a better
network and fail, thus annoying the user whose connection becomes unstable.

This CL tries to remember networks that have seen multiple DHCP or auth failure in
the past and for those networks it disable roaming temporarily.
That is, if wifi is not associated to any network, it will tries to join a network
aggressively, however if wifi is currently associated to a network, it will not try
to switch to a new network if that new network has seen multiple failure in the past.

The maximum blacklist time is set to 2 days for now.
An example of such situation is:
- user has multiple SSID at home, one of which is incorrectly configured with a wrong password
- broken DHCP situation (potentially: multiple servers on home network, broken implementation incorrecting NAK'ing DHCP requests but properly serving DHCP offer...)
Bug:18792931

Change-Id: Ib09eaaea978c772f630e86696f9a49f18ad708e2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
80aa8fb1a21a6df522235287d7b6835cc46310e2 16-Jan-2015 vandwalle <vandwalle@google.com> Merge "prevent null BSSID being inject as scan results Bug:18917134" into lmp-mr1-dev
2f05eff93e2503c9f29a0d7ede62c71c430ccf5f 12-Jan-2015 vandwalle <vandwalle@google.com> prevent null BSSID being inject as scan results
Bug:18917134

Change-Id: I0c4d0a2bd5383bac473a588af89589bf70f47c6c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
e98d4c2729d25123d6b6063e8f1b05e9ce3ca0da 13-Jan-2015 Erik Kline <ek@google.com> Merge "Disconnect if we had IPv4 and lost it." into lmp-mr1-dev
ac9667902d52ef3efdb53125080419fbbdc7ba80 07-Jan-2015 Erik Kline <ek@google.com> Disconnect if we had IPv4 and lost it.

More specifically, the DHCP_FAILURE case is entered when a
DHCPv4 RENEW fails. Even though we would connect to a network with
no IPv4, when roaming to a "same network" and losing IPv4 it's
probably better to disconnect and start afresh.

Bug: 18867306
Change-Id: Ie667b4f0481ae0510d0dc00db819f4e5d43d98a9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
1456ea5d08ed5a4e697b58ededde4b5a90809d76 06-Jan-2015 Jeff Davidson <jpd@google.com> Merge "Split untrusted NetworkFactory from regular one." into lmp-mr1-dev
104a9803187593ab25d3784b420077022686dbe4 29-Dec-2014 vandwalle <vandwalle@google.com> Keep AutoJoin enabled when user has manually selected a network
Bug:18865214

Change-Id: Iae9297cd50ebaf12217d12e4c5d55ae05316e917
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ebe870ef4051da2fc307114ed3c14927f548d9d4 20-Dec-2014 Jeff Davidson <jpd@google.com> Split untrusted NetworkFactory from regular one.

This ensures that we see all requests for untrusted networks.

Bug: 18815795
Change-Id: I9aaba6095b934fee27a27b20fa3adb2a10648e80
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f57f8918b8c5872ff4bb141fa9e407bec8442e8d 16-Dec-2014 vandwalle <vandwalle@google.com> add debug logs to confirm network flapping issue is fixed
Bug:18706288

Change-Id: I27a86aeb650a63511b667244b0138afbc1bc059e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a1c02f0a73ee35e198e2652cd65b8830a163d9dd 10-Dec-2014 vandwalle <vandwalle@google.com> autojoin scanning + P2P
- discard autojoin scan when both infra and P2P are connected
- reduce autojoin scan period when P2P is connected and infra is disconnected
Bug:18692653

Change-Id: Id1891e6a9f2863d8876915cfefd158fb1712b8fe
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
4724608dce2e37b9c0b260c2c7dcf3161f474df2 06-Dec-2014 Prem Kumar <premk@google.com> Merge changes I0d49fa29,I0acacd3f into lmp-mr1-dev

* changes:
rework scan logic so as to make use of delayed messages instead of scan alarm
reenable disabled config after a few minutes
8242cc81341c80ab5bc057ffdad99a3a1d95be5c 01-Dec-2014 vandwalle <vandwalle@google.com> rework scan logic so as to make use of delayed messages instead of scan alarm

Bug:18594119
Change-Id: I0d49fa2908d824de6adb125cf862de47f8ba5e91
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
abd1740f753ac14e9dec8fced8d3de5059122c2a 05-Dec-2014 vandwalle <vandwalle@google.com> reenable disabled config after a few minutes

This change also loose stale user selection which prevents device to re-join potentially
reenabled configs

Bug:18571727
Change-Id: I0acacd3fb1fbb64a48d0407d7b9e4e5403a93726
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
2ce99b40c36ed0352b31aa85d5f9383d5f0506f5 04-Dec-2014 vandwalle <vandwalle@google.com> - keep track of ephemeral configurations that are deleted by user
- make sure we cleaned up prior ephemeral WiFiconfiguration from wpa_supplicant.conf
Bug:18525241

Change-Id: I773cb9b28fe139d1cd5df622619b4a9cf866d6ce
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
935a9c0c9e091829ac359a6d99ae3bd69fe9041b 26-Nov-2014 Dianne Hackborn <hackbod@google.com> Work on issue #18118255: StateMachine aggressively keeping its own logs...

...(512KB RAM, 10K objects)

Pull this back to 300 entries on Svelte devices... we also need to reduce
this on non-Svelte devices, but at least right now we desperately need it
fixed on Svelte.

Change-Id: I301bf8a4637c066166a5a69c178d581c072b8dc5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0eae6501fd8144806ab5598bc8e3210f2b18769f 26-Nov-2014 vandwalle <vandwalle@google.com> Merge "remove dfs channel from location restricted scans" into lmp-mr1-dev
9f2b11623eec3b20edc93e30f94b263f287a4ca3 26-Nov-2014 vandwalle <vandwalle@google.com> register network factory before processing scan results
Bug:18512598

Change-Id: I79aa972f686f2c4090012a36dcad13a9e53d5566
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
9086afccf6938a49eb9a2cd248917c1cb0943942 22-Nov-2014 vandwalle <vandwalle@google.com> remove dfs channel from location restricted scans

Change-Id: I387816c8682e9f595229ecbb20c35711ea1f069b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
833dcce8f6712f7594f06ea33208e3e106c15afc 23-Nov-2014 vandwalle <vandwalle@google.com> - dont loose explicitely selected bit when autojoining same network
- use scorer only for untrusted networks
Bug:18490330
Bug:18368125

Change-Id: I13f21a2247d071d2e8edc48546c14e0a9e2bc5d6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
68fee36dac1dda5c596c00ef33fdbc0962e9ec9f 19-Nov-2014 vandwalle <vandwalle@google.com> perform regular autojoin when turning wifi on
Bug:18451553

Change-Id: I729ae360209e852e4e64bed0c584ed076b1281b4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f5a84fcd66298ee6e96b781d2645422a1571ac07 18-Nov-2014 Vinit Deshpande <vinitd@google.com> Trigger auto-join from WifiManager.reconnect()

Bug: 17397676

Change-Id: I0356c363b90a40a9f9424cf9c50e0d9f1c370414
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
1d1a18d00e2dfd8b29aee3e3ea48d188c5b630ff 15-Nov-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix connections to unintended networks" into lmp-mr1-dev
69f6bd2ac21ce836de0aa728b887f74addaf8caa 15-Nov-2014 Vinit Deshpande <vinitd@google.com> Merge changes I578e0d92,I248695b2 into lmp-mr1-dev

* changes:
Handle bad WifiHAL implementation
Don't allow SCAN_REQUEST broadcast to launch apps
db65f5219f9664b64a9ba40e042c9283c5a4f985 14-Nov-2014 vandwalle <vandwalle@google.com> Merge "check for null pointers when processing CMD_START_SCAN" into lmp-mr1-dev
12ecdb7b85152b47a5469f0942f3e9d811d6d90b 13-Nov-2014 vandwalle <vandwalle@google.com> check for null pointers when processing CMD_START_SCAN

Change-Id: Icc3bcb37d181e6f28673808d5c3239d18c6a482f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
d406991cea796c4b75e484bd0d47a85a0f8a4dae 13-Nov-2014 Jeff Davidson <jpd@google.com> Fix call to startScan for untrusted setting change.

Bug: 18221007
Change-Id: Idb526b1f275100ab2a004e7923a032f2e98db6de
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
005c1ef113192f898499a407dd266393a8d6b076 12-Nov-2014 vandwalle <vandwalle@google.com> - better handling of deleted configurations, only keep a crc32 of deleted SSIDs
- trigger a scan when changing settings allowing use of untrusted networks
Bug:18221007
Bug:18269621

Change-Id: I7eec8913737726a1bf468a96eae562cc567ecfd3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
cce5b9e0eded28096991578e020883484ece8c54 11-Nov-2014 Vinit Deshpande <vinitd@google.com> Fix connections to unintended networks

This change fixes a bug in Wifi state machine - it unintentionally
enables all the networks and results in connecting to a network that
may not have been chosen by AutoJoinController.

Bug: 18266514

Change-Id: I0d5d274819194c0eea4f3812d506a92899f3eb54
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
cc9395f7b604c626e8c45021b52dad3abff9bd18 07-Nov-2014 Vinit Deshpande <vinitd@google.com> Don't allow SCAN_REQUEST broadcast to launch apps

This change sets the package to Wifi package for all the timer
broadcasts it schedules. This way, the alarm manager won't wake
up any other apps.

Bug: 17611296
Change-Id: I248695b2c4763c799b730a236945e91757dfde16
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
d30127db46224e45554f8964209221bba8ad41d9 08-Nov-2014 vandwalle <vandwalle@google.com> dont blacklist wifi config that have had validated internet status in the past

Change-Id: I4498888ffb1d3189204a553462ff4342239ed2af
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
6b7f403e4cef10029159c75bc311142a56099aef 06-Nov-2014 Jeff Davidson <jpd@google.com> Merge "Support conversion of untrusted networks to trusted." into lmp-mr1-dev
3aed1e5a7a7f2ec730c393e2c7d129e3e551a711 05-Nov-2014 Jeff Davidson <jpd@google.com> Support conversion of untrusted networks to trusted.

When the user requests to connect to a network which already has an
untrusted config, we update the existing config and clear the
ephemeral bit rather than creating a new config. We also maintain the
current connection if that ephemeral config matches the currently
connected configuration, and merely tell the system that the network
is now trusted.

The above also applies for AUTO_JOIN_DELETED networks, which are
similarly filtered out from the list of WifiConfigurations.

Bug: 18206275
Change-Id: I1dff7e3c073888c619e6a5c3a40295a44b12e403
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
917a6ea431a8137e7ceba46ec9efc84c68882dc0 04-Nov-2014 vandwalle <vandwalle@google.com> Merge "propagate noInternetAccess flag and network status" into lmp-mr1-dev
cdc5b747a9c6ff40a38a66bdd8f86dbf11852a7a 04-Nov-2014 vandwalle <vandwalle@google.com> propagate noInternetAccess flag and network status

Change-Id: I7a1ac684c11c3ef93462e02cfc9d6fde3c9b81d7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
efad8ec6cb12e5658ee0288cc7e5aa755267aeb6 30-Oct-2014 vandwalle <vandwalle@google.com> read packet counters before and after DHCP

Change-Id: I0c1d94a6d687c2788b71523adae01cde59d34aa7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
cfa3bfefdaebf6213a067fa2fc6e377b4f25605a 29-Oct-2014 Erik Kline <ek@google.com> Merge "Make isProvisioned() use LinkProperties' concept of same." into lmp-mr1-dev
b5120326b58f35217dcedc5f19e8cf3eb42b28d0 29-Oct-2014 vandwalle <vandwalle@google.com> print both uptime and milli since boot in the wifi state machine logs

Change-Id: I5521b59efcf1c3fb6d0e2dc62b3db92a27c49ebd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f9715cc118c446695b2a82211881c7d6c5e59761 23-Oct-2014 vandwalle <vandwalle@google.com> various fixes:
- Carry over the IP config when self adding a configuration
- fix null pointer exception in wificonfigstore, trying to read the IPConfig file
Bug:18058314
Bug:18057271

Change-Id: Ia1922f0cf44aa6eaf67928ac392a6ec92431f279
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0af9c80053bd2736d5bea095b363d6a0c8ce71d0 22-Oct-2014 Lorenzo Colitti <lorenzo@google.com> Don't connect if the NetworkFactory has not requested it.

This fixes persistent oscillations that occur if Ethernet is
plugged in, where wifi connects, gets torn down because its
score is too low, reconnects, ...

Bug: 17632610
Change-Id: Icfeed9b46d97a8868b64a0be3cb83ac2884f3228
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
6d66b5730446fa4df96c6dcda8612a64ed5bf383 24-Oct-2014 Erik Kline <ek@google.com> Make isProvisioned() use LinkProperties' concept of same.

Change the concept of provisioned to rely on LinkProperties#isProvisioned,
unless a static configuration (possibly incomplete) is in effect.

Bug: 17769720
Change-Id: Ie45e45016d3b33d98097727d49b9c09349fc9021
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
c1bcb77843fecb661b5733ed5813e327313ce002 22-Oct-2014 vandwalle <vandwalle@google.com> am 1ec92c57: - detect that firmware cant stay connected to 5GHz AP and tune down 5GHz preference accordingly - use a long random string so as to obfuscate PSK of WiFiConfiguration we have deleted but keep around in the autojoin database - if autojoin doesn\'t find a kn

* commit '1ec92c57244311c7fca3ab6b244a06c2b2b58902':
- detect that firmware cant stay connected to 5GHz AP and tune down 5GHz preference accordingly - use a long random string so as to obfuscate PSK of WiFiConfiguration we have deleted but keep around in the autojoin database - if autojoin doesn't find a known network to join, and sees a known network that ConnectivityService never marked as UNWANTED due to bad signal, then add a boost of up to +8dB to this network's autojoin threshold, also includes the boost in the network's score that is sent to connectivity service
1ec92c57244311c7fca3ab6b244a06c2b2b58902 21-Oct-2014 vandwalle <vandwalle@google.com> - detect that firmware cant stay connected to 5GHz AP and tune down 5GHz preference accordingly
- use a long random string so as to obfuscate PSK of WiFiConfiguration we have deleted but keep around in the autojoin database
- if autojoin doesn't find a known network to join, and sees a known network that ConnectivityService never marked as UNWANTED due to bad signal, then add a boost of up to +8dB to this network's autojoin threshold, also includes the boost in the network's score that is sent to connectivity service

b/17960587
b/18038705
b/18030088
b/17870963

Change-Id: I6cb2c6fdff799453b3d780c43f99d070117e0dc7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0fd84c2577121d02f0d6436c84dcb1dd311911e5 18-Oct-2014 vandwalle <vandwalle@google.com> am dd0c5587: Taking into account user join preference more aggressively; add debug info for roaming Bug:17669859 Big:17651877

* commit 'dd0c558776fcfba3f754bb0cd6533f2c9c23ec1e':
Taking into account user join preference more aggressively; add debug info for roaming Bug:17669859 Big:17651877
dd0c558776fcfba3f754bb0cd6533f2c9c23ec1e 16-Oct-2014 vandwalle <vandwalle@google.com> Taking into account user join preference more aggressively; add debug info for roaming
Bug:17669859
Big:17651877

Change-Id: I3f763f354848d2bc3863f2887bccaf0ff9af426e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0e89e0535f4f7b2a48384fc0b7ae779acd0376c7 16-Oct-2014 vandwalle <vandwalle@google.com> am 6db73827: Merge "fix bssid blacklisting Bug:17960587 Bug:17966377" into lmp-dev

* commit '6db73827acdedb707dd3e0f2fa2add833380a3b6':
fix bssid blacklisting Bug:17960587 Bug:17966377
6db73827acdedb707dd3e0f2fa2add833380a3b6 16-Oct-2014 vandwalle <vandwalle@google.com> Merge "fix bssid blacklisting Bug:17960587 Bug:17966377" into lmp-dev
078a7527951b1e8fb7722ab930760730cf54e572 15-Oct-2014 vandwalle <vandwalle@google.com> fix bssid blacklisting
Bug:17960587
Bug:17966377

Change-Id: I6ead5386f961e8bd0705ceea190752dd20f7e38a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
8639f6266cb70bf92d1561af43ac2d7b2b97298e 19-Aug-2014 Jeff Davidson <jpd@google.com> Allow connections to untrusted SSIDs when requested.

When at least one NetworkRequest for an untrusted network is active,
autojoin will allow connections to untrusted connections. Upon
successful connection, we tell the framework whether Wifi is currently
connected to a trusted or untrusted network. If all requests for
untrusted networks are withdrawn, and we are currently connected to an
untrusted network, that connection is dropped.

Bug: 15892711
Change-Id: I3f8625996013ee850927fc2290a24c591e3db691
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
85f2d77b1b858c063471951f3a5f93c96bd5e72b 14-Oct-2014 vandwalle <vandwalle@google.com> In case of driver roaming and auth failure, allow for fast reconnect
Bug:17747008

Change-Id: I87eefc5a0952dd5f7159385aa180c02a38d92432
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a5283c01ac413e378e2261050cac3a6d6e9cf385 11-Oct-2014 vandwalle <vandwalle@google.com> reenable networks completely, 5 mins after DHCP failure blacklist; revert aggressive wifi to cellular handover when handing over due to link speed
Bug:17949093
Bug:17947372
Bug:17897698

Change-Id: I1d398238022fd380952cb8dc28f47cc38d0b7b06

Conflicts:
service/java/com/android/server/wifi/WifiStateMachine.java
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a0708b09ad17b086c008ab100aec7143d7613c80 07-Oct-2014 vandwalle <vandwalle@google.com> various fixes:
- adding debug information to bug report for Bug:16751877
- reenable networks when entering DisconnectedState
- dont force MSG_INFO log level at supplicant
Bug:16751877
Bug:17811889
Bug:17881399

Change-Id: I89b4f5c05a1f64f9d1e8c407f62036efa0265043
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
e0ba94ba9abde13173ae0de8c8939aa4eb9a9085 01-Oct-2014 vandwalle <vandwalle@google.com> - slightly better network log
- add debug option to enable/disable associated full band scans
- networkHistory.txt and wpa_supplicant.conf file get out of sync regarding config.status variable
Bug:17648443

Change-Id: Ie1c6dac9f94b7d71599734e2263b9456cf6278ee
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
fb09741166b68bf69dbd0afb22f83a699c5f8a7e 26-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Don't fire SCAN_RESULTS_AVAILABLE broadcast for partial scans" into lmp-dev
765b9dc1c45bbeed87243d21cc5938bd5f1ba0d4 26-Sep-2014 Vinit Deshpande <vinitd@google.com> Don't fire SCAN_RESULTS_AVAILABLE broadcast for partial scans

This ensures that apps don't get partial scan results

Bug: 17612695

Change-Id: Id5d7b9831a54c9fc430f329b4b83b8342f5063ea
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
7736c07a4cad4e2d86e1ec2f4221c7f788c18d3a 25-Sep-2014 vandwalle <vandwalle@google.com> drop score more aggressively based on link speed, Bug:17514346

Change-Id: Ib7a09adc961d76bc5da49cfff2edd4120175562c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
5b56b25942679fa7a608691e70d210c1032d9e4b 25-Sep-2014 vandwalle <vandwalle@google.com> Merge "- make rssi poll and wifi scan when associated configurable - fix regression when forgeting network - fix NPE in calculateWifiScore Bug:17564108" into lmp-dev
099e31798ed1c675a9ad654debac96f975ebcc82 25-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Introduce config setting for scanning mac OUI" into lmp-dev
70468b47454c8657e8963932f2e08a3f4d7e3881 25-Sep-2014 vandwalle <vandwalle@google.com> - make rssi poll and wifi scan when associated configurable
- fix regression when forgeting network
- fix NPE in calculateWifiScore
Bug:17564108

Change-Id: I47329b1fb0f23c72886bdd3de99b4f9242d59eec
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
9d082c381274f27dad1e344223189e00148e2124 24-Sep-2014 vandwalle <vandwalle@google.com> inconditionally issue the reassociate command in the case of linkdebouncing, dont treat AUTO_SAVE commands coming from autojoincontroller as user triggered WifiManager.SAVE_NETWORK commands
Bug:17624613

Change-Id: I2c586646bd967cb2d699433b0c228210647f4ee3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
eedd70ee3fa7f161ea1f4ae26543ac927e82a681 23-Sep-2014 Vinit Deshpande <vinitd@google.com> Introduce config setting for scanning mac OUI

This setting will allow an OEMs to override the default Google OUI
for scanning.

Bug: 17468465
Change-Id: I3d9a6cf6451bcc98d0cad158bc52c7b3a52cb0ea
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
e0aa0a004d161173992a0e9af1b431fae91f4a71 19-Sep-2014 vandwalle <vandwalle@google.com> - better sanity check on psk for linking config
- black list BSSID in case of repeated DHCP failures
- black list network with noInternet connectivity from autojoin
- clean up Disconnecting state transition
Bug:17512891
Bug:17395269
Bug:16480230
Bug:17518367
Bug:17545859

Change-Id: I1683a66fd58424ad2177c6508b101fd49392e22a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f17f8070a966778bf9e405ed50757ea929bbb545 18-Sep-2014 vandwalle <vandwalle@google.com> Merge "various fixes:" into lmp-dev
7b581f46f6c9bc6edf0edd287d47106712fb2144 17-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- additional debug logs
- allow a scan result to be associated to mulitple wifi configurations
- additional logs to track 17516271
Bug:17510471

Change-Id: I39975f17494c541989f7f0e0fd8fcf890934ee15
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
fc797cf48feed42a76fccef73eeed535e1848702 17-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Add NetworkAgent event for ExplicitlySelected" into lmp-dev
99d385e3b4d34841d6efcfd7cc9bf1d5ae25de14 16-Sep-2014 vandwalle <vandwalle@google.com> set proper link quality thresholds

Bug:17514073

Change-Id: Icf4dbd81e8547bb837c8346c9af5cfc98d7b00ab
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
4d29f96e9085b71b01edb4c3dfd2d5b0bb621fea 16-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix conditions that my leave ScanAlarm running in background" into lmp-dev
7c8a4effa2442b9d00fd421b443ea9645f8651c8 16-Sep-2014 Vinit Deshpande <vinitd@google.com> Fix conditions that my leave ScanAlarm running in background

This can happen because of race - you could get DISCONNECTED from
supplicant between CMD_SCREEN_STATE_CHANGED (for screen off) and
CMD_ENABLE_BACKGROUND_SCAN - which sets the background scan. This can
cause Disconnected state to leave a scan alarm running.

This change removes that possibility by combining processing of
CMD_ENABLE_BACKGROUND_SCAN into CMD_SCREEN_STATE_CHANGED.

RTC_WAKEUP alarm is also changed to RTC when PNO is supported; so
we shouldn't wake up the AP anymore.

Bug: 17261586

Change-Id: Ic7c3dbf6ed5e042f9ed6b96349bf5ec50e509552
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
9e806a8d9f297e4de826e65322859a89e4d95c8b 15-Sep-2014 vandwalle <vandwalle@google.com> improve debugging messages & logging

Change-Id: I7c668c24357663fff418c62d21c1fc6cb571590a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
17e828848eebb4eb11d27ce32d02716334dd6011 13-Sep-2014 vandwalle <vandwalle@google.com> make wifi cellular handover params configurable

Change-Id: Icc1f722d3e0293ec58027770b941fc98dc24ce44
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0eebae7334d6129f7ca1344e4b20199794994358 12-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- add null pointer check to wifi watchdog state machine
- correctly parse the REQUEST IDENTIY event sent by wpa_supplicant
- make autojoining wificonfiguration more aggressive based on user input
Bug:17469863
Bug:17426395
Bug:17475816

Change-Id: I1785c917c0e570de0edaa02bd0ca6536be9d7c0b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
448c9536a302c58a79e271b1721c08b8882f800e 11-Sep-2014 vandwalle <vandwalle@google.com> dont accept CONNECTION_EVENT until roaming is complete

Change-Id: Iedde560abc9d2f4c3a3b9b9bfc5caaaa5584472e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
2f2cf21662275a0e93d7d7a6ad3d98b4c596dcf0 10-Sep-2014 vandwalle <vandwalle@google.com> make autojoin configurable, clean up BSSID info that may be stake in WifiConfiguration

- allow scans in verifying poor link
Bug:17420929

Change-Id: I310ad60a443d648666ebac49b3eeb56c7e9a0ecc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
b664cfeab6f02e24376ea0a15beb83d142f0b14d 09-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- persist Wificonfiguration.ephemeral
- dont trigger attemptRoam on previous configuration
- treat ADD_OR_UPDATE_NETWORK with highest priority as a user network selection
- add associated scan period in framework/base/core/res/res/

Bug:17202406

Change-Id: Ibd92af49c6b79c6799d90d4b72b72547a4c936ca
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
2dbf6c027271518d868ae52ad90789eb2bc3c363 08-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Add NetworkAgent event for ExplicitlySelected

Lets Wifi tell us when the user selected this AP vs auto-connected.

bug:17396168
Change-Id: I6e067ab62ed49040629aa31fe07ff880d3d542f0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
c9b047b4cb480edbb490516746cfcbb4a4eedeea 08-Sep-2014 vandwalle <vandwalle@google.com> dont debounce on locally generated disconnect

Change-Id: Id75a866959fc99828f6143230a9ade3e6a2b81b9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
9f3349fa2cd39d690d1e2b7c3b71ced412e24f2c 05-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- cleanup setWifiEnable transitions
- dont scan right when entering connected and Disconnected state, instead startScan() adds a 200ms delay before starting the scans, so as to let the state machiine time to process deferred message
- dont forget to send the NetworkStateChanged Broadcast when we set the network detailed state
- autojoin dont attempt to join WifiConfigurations marked as noInternetAccess, unless explicitely selected by the user
- keep stats of user triggered wifi state disabling requests
- fix bad roaming situation when BSSID is specified in network block

Bug:17193677

Change-Id: Ia103a93232f40519c7b4eef07254f32342ea5615
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ebb7e0cb4572f73325a749539d589ebdefb8635c 04-Sep-2014 vandwalle <vandwalle@google.com> adding debug logs

- add debug status to WifiStatemachine message handling
- tracking scan requests: add scan request counter and addl debug information
- clean wifi packet stats when we disable RSSI polling
- count home network as >=6 BSSID for the purpose of calculating wifi score

Change-Id: Ic13ef303fdcfe60c0e27f225af4e233b9a2cffaa
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f4c6a897fbb61e8bb31646db6fed78b579d10574 03-Sep-2014 vandwalle <vandwalle@google.com> Merge "fix processing of CMD_SAVE_NETWORK" into lmp-dev
0ff9728ea843a291b2665c705cfe6f0357e1aa44 03-Sep-2014 vandwalle <vandwalle@google.com> fix processing of CMD_SAVE_NETWORK

Change-Id: Ia42e6f3e983f69b38f899c56afd07da1e78a10b3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
82199a285f4a45a46b44eb8253999aa918534753 03-Sep-2014 vandwalle <vandwalle@google.com> help debugging scan issues:
- adding additional logs
- make handleSCreenStateChanged a message
- track sender of the CMD_GET_CONFIGURED_NETWORKS message

Change-Id: I5717d07850ed563193b694a74d236bb8795fbd38
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
cbdd43105d9c12041a0b9edea714526c64542caf 03-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Address API Council feedback for WifiAdapter/WPS APIs" into lmp-dev
be3095ed758fca076b9ccb9fdae48f7f865c078a 01-Sep-2014 vandwalle <vandwalle@google.com> AutoJoin fixes:

- Additional logs
- re-enable all network upon screen on and connection, even for blackliste networks due to auth failure
- watchdog the DisconnectingState
- remove mFrameworkAutoJoin which is not used anymore
- dont remove WPA_PSK configurations, instead mark them as AUTO_JOIN_DELETED and loose their history and keys

Bug:17261906
Bug:17330171
Bug:17339150
Bug:17063789

Change-Id: I12ea25142d0dcfc670d8970ed67624e8573d1ac2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
048dc8df2bd9394979dbb090b0cfe8d6627d23e3 29-Aug-2014 Vinit Deshpande <vinitd@google.com> Address API Council feedback for WifiAdapter/WPS APIs

This change addresses concerns from the API review. Things that
are fixed are -

1. WifiAdapter is removed, until we have 'real' support for it
2. All the methods from WifiAdapter are moved to WifiManager
3. Changed WPSListener API names to be onFailed/onSucceeded et al

Bug: 16403303
Bug: 17115004
Change-Id: Ie886334f9381b678deb5f0248b9a5ec21f446949
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
e67ec726c07410073575473c0f50dc737629f5da 26-Aug-2014 vandwalle <vandwalle@google.com> autojoin fixes:

- Bug:17291273
- add persistent Wifi verbose logging option (/data/misc/wifi/autojoinconfig.txt)
- add config option for the associated scans period and backoff (/data/misc/wifi/autojoinconfig.txt)
- dont lock BSSID when roaming to 2.4GHz config
- issue single reassociate on roam
- make extended roaming 5GHz preference consistent with roaming 5GHz preference

Change-Id: I1525349e220cebb1b300753a707eb00fcc9d7d7b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
10ab519ea2e4a3c5665ac047fe0239939512fa6d 26-Aug-2014 vandwalle <vandwalle@google.com> Merge "remove passpoint - DO NOT MERGE" into lmp-dev
fdde6bf4dc075b4f2807a4940edc2be694b326b6 26-Aug-2014 vandwalle <vandwalle@google.com> Merge "add radio stats to link layer" into lmp-dev
200e8ee5097134010a6edee8d031bb02ff7eeb5a 19-Jul-2014 vandwalle <vandwalle@google.com> add radio stats to link layer

This CL is dependent on I3d2a230b0362520b9f1b2bc3792260116971e106

Change-Id: If7e73ae9813ea79a98744d7f0096316d241998fd

halutil updates for link layer statistics

Change-Id: I00ea13b1a932f40891a0d65026a1c87f01f09587
Signed-off-by: Chilam Ng <chilam@broadcom.com>
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
3e883d5461ec819b7db51470e387c4bf0b09ce1f 25-Aug-2014 vandwalle <vandwalle@google.com> remove passpoint - DO NOT MERGE

Change-Id: Ia399d98fa7d1ecff5c06bf4802f70dc22c8e5713
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
042c54bfd5144ce8e720585b2093796e7e28de5e 21-Aug-2014 Vinit Deshpande <vinitd@google.com> Set scanning mac OUI for mac address rotation

This change enables mac address rotation feature if it is
implemented. The OUI being set is Google's OUI; which should
prevent from scanning mac addresses colliding with infra mac
addresses.

This change also stops from linking to Qualcomm's and Marvell's
WifiHAL implementation - since none of the new features are
expected to work with this HAL

Change-Id: I50979a8b20c59f5d40007eb4e0ff945e529cbb49
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
1d799fd875b604be33d2aa0a879d93b4b1f79735 23-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Use new config resource for tcp buffersize" into lmp-dev
3c3c5b64726f04920109e4c8f20a1c58ea7050aa 22-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Use new config resource for tcp buffersize

bug:16549611
Change-Id: I01ecca0a2a7893c1911cead503594ce9e17fa69e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
56d0178183460eed9afbd85e5c0d215e27d5f5bc 21-Aug-2014 vandwalle <vandwalle@google.com> fix spurious disconnect while associating, dont set AP configuration with NULL SSID

Bug:14568953
Bug:17144830

Note: this CL address cases where framework sends spurious disconnect to driver while associating, this issue was only one of the root cause of 17144830, the remaining issues in this bug are "missing scan results" and "wifi chipset disconnects from AP due to missing beacons or receiving deauth from AP"

Change-Id: If888f11bb3c66b55ca8ff991651f9e4457aaea31
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0d616ef3bf635dff8722e064c0be842676390ed8 20-Aug-2014 vandwalle <vandwalle@google.com> add roam state watchdog.

Bug: 16823537

This CL is dependent on Id9411c8097337b37ac1ce1a6ac8b28b4bda31ff3

Change-Id: Iff32fae2cd67343e63046d58d75fa1e10d9775d0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
1fd74be7eae25d58cc068e3e2f5eb9269ef4e369 20-Aug-2014 vandwalle <vandwalle@google.com> Merge "debug messages for link loss issues" into lmp-dev
e6574ec7b6b2e7a678da7f77bdaaf31463852b2f 19-Aug-2014 vandwalle <vandwalle@google.com> debug messages for link loss issues

Change-Id: Icbea4bac528eac8f25b8d1f9f1fa79d1ecadb7da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
24adb81839865a6f27fceb8ef709f5c23973cb47 20-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Clear IPv4 addresses when switching from DHCP to static." into lmp-dev
0ebd6d71cecb5147fad1ca7a7f807aec7ffeddd9 12-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Clear IPv4 addresses when switching from DHCP to static.

This prevents the previous DHCP address from remaining assigned
to the interface, fixing a TODO.


Bug: 16893413
Change-Id: I84e09b8ac0325b839059b2d38086603bd11c7948
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0e916560ab551ac44e6ce0324bdc511f66268944 20-Aug-2014 Brian Williammee <bwill@google.com> Fix copy/paste error in 5GHz connection count

Change-Id: Ic377c5b4b0ab7db060b3b6ec86a3b0a862c32b28
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
3b26801d62a06475b722bbf29cba7f48f376654e 31-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Stop using LinkProperties for static configuration.

Bug: 16114392
Bug: 16893413
Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
8c0a54e9b0d3713cab52d06ad8fd7f3a1b6f73a8 14-Aug-2014 vandwalle <vandwalle@google.com> provide autojoin config threshold, fix bug16990104

Change-Id: Iac9ec4fe0a721df5f08b90d631025df4d944d088
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0c3dfa471750e99231c9bf4d9a53f1e4a2d0daa4 18-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Add tcp buffer size data for wifi" into lmp-dev
e693d9490d27bcd91bb1f012bb88ef4c95cdaee3 07-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Add tcp buffer size data for wifi

bug: 16549611
Change-Id: Ia3819da9d85863a273b93e30c8a9d223ddc7d667
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
dbd6933aae99302b75683f8463cd17df554dc599 14-Aug-2014 Vinit Deshpande <vinitd@google.com> EAP-SIM End-To-End

This change fixes all remaining issues with EAP-SIM. It now handles
multiple challenges coming from supplicant and corrects supplicant
command syntax.

Change-Id: Idc47b454863aa1990d4f53138f00f312622792d2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
981e966999f4448a682084d6657d07bab2bbc13e 14-Aug-2014 Vinit Deshpande <vinitd@google.com> Fix getAdapters() hang

getAdapters() hangs in certain Wifi states because there is no code
to generate a default reply. This change adds default reply so it
returns something in all states.

Bug: 16982058

Change-Id: I07cae455c6335e622fbd9a79f3837128e73e302c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
68a6d9ba04f68ec4c76edc049ac827331d10e707 12-Aug-2014 vandwalle <vandwalle@google.com> Merge "handle supplicant disconnected state change in roaming state + make roaming less erratic" into lmp-dev
33b575ca6bee66183929f9474b5a161432918604 09-Aug-2014 Vinit Deshpande <vinitd@google.com> EAP-SIM End-to-end

Change-Id: I9478e6a492c469d57bb020b8f858e523ea6a92d1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
97b9c4fef6e372d1f19b333c7a67ff27ef80baf0 08-Aug-2014 vandwalle <vandwalle@google.com> handle supplicant disconnected state change in roaming state + make roaming less erratic

bug: 16753407
bug: 16823537

Change-Id: I47f1073b3775880d261ec2a963732c35454173cf
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0a0694d89195ac361a02bf73d5bf35b1e9050c6c 07-Aug-2014 Chelsea Derrick <chelsead@google.com> Revert "Broadcast wifi credential change from WifiStateMachine. [DO NOT MERGE]"

This reverts commit a618f986e12b0f68f7b4cdfff51c6fa8baed22d5.

Bug: 16871063
Change-Id: I93623be92f2de41789b16827867f3f95bf0480c5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
c7af335ba2adbb95fffacf99828287f93b4b2d38 06-Aug-2014 vandwalle <vandwalle@google.com> Merge "check null pointer on mNetworkAgent" into lmp-dev
6e51388c5b7d7840644570de5bc61edbd173b203 06-Aug-2014 vandwalle <vandwalle@google.com> check null pointer on mNetworkAgent

Bug:16776614

Change-Id: I6af588a0bc7f9048174d359f41f63ac9acb98147
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
7806f8c800754da0f76d7a0c1a6a590381dac7a8 05-Aug-2014 vandwalle <vandwalle@google.com> add debouncing of the Layer 2 spurious disconnects

Change-Id: I45291d0369977c7a3bdbf65ef10632c203d359b4

Changes to be committed:
modified: service/java/com/android/server/wifi/WifiAutoJoinController.java
modified: service/java/com/android/server/wifi/WifiStateMachine.java
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
badd604178e757a65dcff91ab1ff818e3527c8e3 01-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Unbreak WifiStateMachine IP provisioning logic.

The change from switching to CONNECTED based on DHCP to
switching to CONNECTED based on link properties, necessary to
support IPv6-only networks, broke some of WifiStateMachine's
IP provisioning logic. Among other things:

1. DHCP success when roaming would get stuck in ObtainingIpState
state because the updateLinkProperties would see that nothing
had changed and take no action.
2. DHCP timeout would not cause a disconnect. The code to handle
that was just not there. :-(
3. Wifi would notify ConnectivityService that it was ready as
soon as it had an IPv4 address, but before DHCP completed, at
which point the network was unusable because it had no
default route and no DNS server. The network was fixed
immediately afterwards, but it caused a 5-second switching
delay because NetworkMonitor immediately tried to validate,
failed, and waited 5 seconds.
3. Wifi would not reconnect to the current network after a
runtime restart, because the IP address was already there.

All these problems happened because we changed the code from
edge-triggered to level-triggered, but that doesn't work well
in IPv4, because it's not possible to tell from LinkProperties
alone whether IPv4 configuration succeeded on the interface.

This change switches IPv4 provisioning back to being
edge-triggered, which should hopefully fix all the above
problems in the right way. Testing so far includes:

1. Connecting to GoogleGuest works.
2. Connecting to a network without a DHCP server (and without
IPv6) disconnects after 30 seconds, and gives up completely
after 9 tries.
3. Connecting to an IPv6-only network works.
4. Configuring a static IP on GoogleGuest works.
5. Wifi disconnects if a DHCP renewal times out.

I'm not sure how to test roaming.

Bug: 16269674
Bug: 16631731
Bug: 16663980
Bug: 16667349
Change-Id: I8e28c630c54a5f3f66bf0feb9fd328ab452de740
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
08b2a6f380652e7836687632a10e5183fd7ac689 31-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Clear IP addresses before starting the supplicant.

This is necessary because if the runtime crashes when the
interface has an IPv4 address assigned to it, and wifi reconnects
and gets the same IPv4 address, NetlinkTracker won't tell us
about the address, because nothing has changed. This causes us to
think that we have no IPv4 address, when in fact we do.

Bug: 16631731
Change-Id: I4878408d5fb4c0128657aabb7670e48c689021d8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
326120045502363422cf5c52a467163d4bcb703a 30-Jul-2014 vandwalle <vandwalle@google.com> add debug log for RSSI_PKTCNT_FETCH

Change-Id: I54f920e7373febf3874deb194011e98c05eb1a23
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
c25ff5183d509e8a2ecaf1b52f83cbd7023e6a79 29-Jul-2014 vandwalle <vandwalle@google.com> Merge "add verboser logs for network scorer" into lmp-dev
e8c89583e489d451880471b7cc7659bd9fa802f4 29-Jul-2014 vandwalle <vandwalle@google.com> add verboser logs for network scorer

Change-Id: I8e461615f1ae85cd0712a627561cee329a5fb4e5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
2f3b6d4a82bfb828ba7ce5f7cf4e54ff57821888 29-Jul-2014 vandwalle <vandwalle@google.com> treat all dhcp completion without provisioning as errors

Change-Id: I4f27e166491006a3432e73a490653c6252fbb95d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
c290d8dff6172d5fde7b9dfd74d3a20785dab246 29-Jul-2014 vandwalle <vandwalle@google.com> fix handling DHCP status

Change-Id: Ib4dfc9a1f84d6faaaf71adf63c8e2457e95646fd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ede507649471f1113e9e1919812115ca5a6bc0c8 29-Jul-2014 vandwalle <vandwalle@google.com> add logs and fix compareWifiConfigurationsWithScorer

Change-Id: I7eeb489b89519bd79d7e3df0fe3ae400debfe566
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
c298087de50ea56c31a4ade7ee1e83b313bb63c7 26-Jul-2014 vandwalle <vandwalle@google.com> introduce WifiConnectionstatistics

This CL is dependent on I51fbbf062feb22c5f16b438675519064cc43e160

Change-Id: I10584a447fecd977df3eefd8e2cc028bd26ec0e3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
82d20190c3ec3a080d928a581c40311c66345cc8 24-Jul-2014 vandwalle <vandwalle@google.com> handle IP address loss if DHCP fails

Bug:16525514

Change-Id: I367a024835acf06cf4dda7f357b70494b9981e03
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
2451dbcc4f9641df188326215b204b798eb70c46 23-Jul-2014 vandwalle <vandwalle@google.com> autojoin fixes:

- make use of network scorer for autojoin
- Bug:16484607

Change-Id: If658d82bb6e3f61ed0476d41b40bb274a1931b2f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f01a9c36967a56d0d042e63984c2c17d978d50e3 22-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Clean up Verifying state so we don't churn." into lmp-dev
4dd46ff3cff8e4e66516600ffdac98601e8bf73d 18-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Clean up Verifying state so we don't churn.

If it goes to disconnected we will actually get unwanted and
do an L2 disconnect. Instead, rely on down scoring.

Change-Id: I87dc52957fd6515920482ba929331567cf7b8253
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
931338d1533d1bd11ba0e5aebb4e4b7b2c8ab056 18-Jul-2014 vandwalle <vandwalle@google.com> a few additional logs and code standard rules

Change-Id: I932e895fefd7b6c9d8ad58ef99312c980643f2d2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
7b051c83f9bb0855ba5442f0dcd471002832c62c 17-Jul-2014 vandwalle <vandwalle@google.com> Merge "fix connecting to OSU server" into lmp-dev
52e79f112225e158c5de12685e55906de5e222b9 17-Jul-2014 vandwalle <vandwalle@google.com> fix connecting to OSU server

Change-Id: I93d50dac9a052736d63300d1cdd3d72d90614e7f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a618f986e12b0f68f7b4cdfff51c6fa8baed22d5 08-Jul-2014 Chelsea Derrick <chelsead@google.com> Broadcast wifi credential change from WifiStateMachine. [DO NOT MERGE]

Bug: 15703353
Change-Id: I62f582ac8cbfd8748c35d73daa2f733665cc0fa8
(cherry picked from commit 09295c2d809d1c7f797eafe039b6b68e7a49c82f)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
9878c61bbd81176561991be025af44efc67332fe 17-Jun-2014 Wenchao Tong <tongwenchao@google.com> Add a new SystemApi, getPrivilegedConfiguredNetworks(). Part 2 [DO NOT MERGE]

Implements the getPrivilegedConfiguredNetworks() in WifiServiceImpl.

Bug: 15703353
Change-Id: If3eaca3286e77b780272f42a28772d1d8d39db65
(cherry picked from commit 76ddde4965b1460248eb21d0ccebed687c2b3fb3)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
e0e491671f348cceb6e20fdc55438d8cfd2f07f1 15-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Fix 2.4/5 wifi roaming.

The redesign of wifi ip address optaining assumed we would never
go from have-ip -> have-ip, ie we must lose our ip config before we can
gain an ip config. Unfortunately at least one condition does just this:
Our inter-band roaming
To leave OBTAINING_IP_ADDRESS we need to tweak the code to generate
the success signal even if the new address is the same.

bug:16269674
Change-Id: I340b24839565fa62fd3c7d9d373695d1d4007412
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a632d8a6edd350c7644b593b18eceaa5b368505b 01-Jul-2014 Vinit Deshpande <vinitd@google.com> Introduce Wifi Adapters

This change extracts all the wifi interfaces on the device; and provides
its supported features.

Change-Id: I7fbdbec684d653a6e4bf851797e3065ce222e873
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
8b2bd657976c86e0909ad792f6f96ad94db45c28 24-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Keep IPv6 enabled whenever L2 is connected.

Currently we only enable IPv6 (which starts IPv6 configuration)
when DHCP succeeds. This obviously will not work on networks
that don't have IPv6.

Instead, enable IPv6 when we start DHCP, so IPv4 and IPv6
configuration proceed in parallel. Also don't disable IPv6 when
verifying poor link. I believe the reason for doing so was that
the captive portal detection code was IPv4-only, but now with the
multinetwork APIs we can support captive portal detection over
IPv6.

Bug: 9180552
Change-Id: I52c8776f1c910255784981ed77a14693ad52d674
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
da2ec427a621afecd800f59b8004542d083be92b 10-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Get DNS configuration from Netlink too."
12bc7aa45700513cace98ab43f309121c39780ed 10-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Decide if IP configuration is complete independently of DHCP"
40ff222cec1bd05879edb53abc75c6deead734ca 01-Jul-2014 vandwalle <vandwalle@google.com> handle IDENTITY message and bssid blacklist

Bug:15990551
Bug:15977507

Change-Id: I78b03915781bd6d5f9f5881c80324a2788b9e837
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a43d6d71ad51ce7fe54198d9b60d554208054eb8 24-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Get DNS configuration from Netlink too.

This is required to learn IPv6 DNS servers, which come in from
netlink via RDNSS options in IPv6 Router Advertisements.

Bug: 9180552
Change-Id: I035f4c3cac6d8edd94ff1b3d586d6bd40e0889b1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
14be3cde626bd5935f599cd6e0fca72cf1c4695d 23-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Decide if IP configuration is complete independently of DHCP

Currently, WifiStateMachine assumes that IP configuration is
complete and transitions to VerifyingLinkState when it receives a
DHCP_SUCCESS message. This won't work if there no IPv4. Instead,
decide whether IP configuration is complete by examining the
actual configuration inside LinkProperties.

Bug: 9180552
Change-Id: I4499b59030e8e581cce620b57bc4e58b7b7d1ab1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
2c141fc79e1e66c5b5f7dd7307ad7cb8d1e9aaac 02-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Simplify the network transition wakelock."
b57df70bdf17ba45ef4d18b11414cb24dcbe1fb9 28-Jun-2014 vandwalle <vandwalle@google.com> clean up the connect/disconnect procedure

Change-Id: Iba87591e790106b882d465dbba3ddac120f044d9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
5394340995ed67c8da3f00b7aae886aec47d6bcc 26-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Simplify the network transition wakelock.

Make it all internal to ConnectivityService - we know when a network
is lost, so grab a wakelock then.
Moves the call out of WifiStateMachine which was grabbing at bad times
like every dhcp renewal or corp-network roam. These would always
go the full 1 minute and chew up battery.

bug:15595155
Change-Id: I80157a818cc149072cc7706d78c1e79c6e679ab3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a2903b7c6fc2419d48fd9976fa24852370653c4a 26-Jun-2014 vandwalle <vandwalle@google.com> fix a merge issue

Change-Id: Ic1e9bab8ec6cf4b4525d2815b29db8e617960504
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
dbfe9e532b02797d08c8bdf9915659aef55fff64 25-Jun-2014 vandwalle <vandwalle@google.com> Merge "improve link flapping"
b07da189850a4bfa268f8ab9be7867935eb2ecb5 24-Jun-2014 vandwalle <vandwalle@google.com> improve link flapping

Change-Id: Ie378dde318dccaa566f660c9497bae31d4a9f1ab
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
51991e784c605a7432a90c9e9a91b080fb106197 20-Jun-2014 Dianne Hackborn <hackbod@google.com> Add tracking of some wifi stats to battery stats.

Change-Id: I50cbd480b8c3ddc4cc8ccbe78b1fe6de98efd9e6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
4b50786546ce4c4fee555d66028991fe257b8811 20-Jun-2014 vandwalle <vandwalle@google.com> add home network boost, better hadling of 5GHz configurations

Change-Id: I2417844b58e1839cb22649565404d76b792cdc65
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
c6f06c628ee3583b60ff31a7da442e0ac7b26d97 19-Jun-2014 vandwalle <vandwalle@google.com> autojoin tuning, making LTE handover less aggressive

Bug: 15700122

Change-Id: I2836abf791f8c71c63a901170f247c4030e8e8f9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ec474c010a79c12d24c34e79383b328cc53d5ece 13-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Read IPv6 routes from netlink as well.

Bug: 9180552
Change-Id: I926e1ea0ff59a258da2472d8a1d8b4c80727e87e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
d60cf2efc576f016506ebe6d8a83b4a6217b2e0e 10-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Move netlink updates to a new NetlinkTracker class

This will allow us to use this logic on other link types such as
Ethernet, and will also avoid increasing the complexity of
WifiStateMachine as we get more information such as routes and
DNS servers from netlink.

Bug: 9180552
Change-Id: I79034827cb0c5f24d783d7243e04b69e12aa3cc6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
810ab83f336a6406220ef73b69377290671d6419 13-Jun-2014 vandwalle <vandwalle@google.com> Merge "auto-roam fixes, disable scanning based on traffic at interface"
b97e66604f472f67c233bb8f8d9630bb36131e2c 13-Jun-2014 vandwalle <vandwalle@google.com> auto-roam fixes, disable scanning based on traffic at interface

Bug: 15575229
Bug: 15577651

Change-Id: I1157c7c9b83c1cafd67d4d4f1d4e1e6fc8d95323
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a0d0db0e9e39b04613e4b5c1d9cf51c488fc9af0 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am 1d838f7a: Merge "Make NetworkCapabilities publicly immutable." into lmp-preview-dev

* commit '1d838f7a55fa178d2ab12716b889ad4e381c852f':
Make NetworkCapabilities publicly immutable.
4dc6f3a322806b25d50039614cde1b94fe91ab17 11-Jun-2014 vandwalle <vandwalle@google.com> auto-roam initial implementation

Bug:15553951

Change-Id: I04ebca4a4f5a9b408893ce1e9874f08aeff50ba2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
1d838f7a55fa178d2ab12716b889ad4e381c852f 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Make NetworkCapabilities publicly immutable." into lmp-preview-dev
937be0625eb1daa1b9d5a0991a3fe6ab2f4804c7 10-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Make NetworkCapabilities publicly immutable.

Applying API council comments.

bug: 15142362
Change-Id: Ie0bde68b72656a676d90c0343b9756fe9268d8d6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
4b1c8e0159c021f0ae1b53b6ec7431b050d6a899 08-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Apply LinkProperties API change.

bug:15142362
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
(cherry picked from commit 82d1c6aeadfa24797b314ae2b2a55717df064b57)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f62893bfeaebeaa0f6a840b29f1b7f33493c8894 10-Jun-2014 vandwalle <vandwalle@google.com> Merge "remember and report network score"
27355a942653264388e909a4276196ee63e57811 03-Jun-2014 vandwalle <vandwalle@google.com> remember and report network score

Change-Id: Ie54afe724a3618ec3fd557850dbbbb8bbae49ecc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
82d1c6aeadfa24797b314ae2b2a55717df064b57 08-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Apply LinkProperties API change.

bug:15142362
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
5c2d5c27293a6df796e56f57b14c2a9aced675bd 28-May-2014 Robert Greenwalt <rgreenwalt@google.com> Apply refactored NetworkFactory.

Make NetworkFactory a concrete class and divide responsibilites between it and NetworkAgent.
Factory will track requests and by default give a single connect/disconnect api for ease
of use. Then NetworkAgent is created and destroyed as needed with very simple logic.

Change-Id: I401c14a6e5466f2fc63b04219b97ff85bb9af291
(cherry picked from commit 7d6e0b86655bf9862ae81fe37c9c8dc3f70d51f9)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
8f679e3b9db68bcd29bb33f430ed11ef21065208 03-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Apply refactored NetworkFactory."
aff01c338585f4411f61a9aa7ea35201f924ec6c 30-May-2014 vandwalle <vandwalle@google.com> add debug info to wifi configure, check auth method for real before self-adding

Bug:15111865

Change-Id: I095fff870c7871e3cb7ae4b8e99034519eb26fa1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
511a412adce5a46c41e61f90c0df6de5fb4e491c 31-May-2014 Yuhao Zheng <yuhaozheng@google.com> WifiService and WifiPasspointService hook up

- add a reference to passpoint service in wifi state machine
- break dependency loop at boot phase

Change-Id: I0acdf02dcb4a62a4e27af8bb3640784ee2691e26
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
dfcb187e5608e125fe161d70226c300bd7b781ad 24-May-2014 vandwalle <vandwalle@google.com> logs improvements, fix reading back networkHistory file

Change-Id: Iec4b11a3e0d8820b558abea6cc068a905199896d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
7d6e0b86655bf9862ae81fe37c9c8dc3f70d51f9 28-May-2014 Robert Greenwalt <rgreenwalt@google.com> Apply refactored NetworkFactory.

Make NetworkFactory a concrete class and divide responsibilites between it and NetworkAgent.
Factory will track requests and by default give a single connect/disconnect api for ease
of use. Then NetworkAgent is created and destroyed as needed with very simple logic.

Change-Id: I401c14a6e5466f2fc63b04219b97ff85bb9af291
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
1a325e10086cfdb9e9f9fa7e3f0283ba7839dd37 02-Jun-2014 Vinit Deshpande <vinitd@google.com> Merge "DO NOT MERGE: Fix the stopping of scan after Wifi connection" into lmp-preview-dev
f07ad104ae5e538ad009f1f168c834edab016d18 01-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am 59c5355a: Don\'t tear down early wifi.

* commit '59c5355a48a3311f07d2d8d6c685bf8de734d200':
Don't tear down early wifi.
59c5355a48a3311f07d2d8d6c685bf8de734d200 01-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Don't tear down early wifi.

This was adding 10 or so seconds to getting on wifi at first boot.
Note this delay goes away with the changes to NetworkFactory later today anyway.

bug: 15363153
Change-Id: Ic764db7288696d697be0db4817fb816861984ef2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ad7319939c424d42fa6a3791c47f613db8ef3cd8 31-May-2014 vandwalle <vandwalle@google.com> Add supplicant debug information
992ae00f25a9cc22cf5db3261bd7e72927069cf7 30-May-2014 vandwalle <vandwalle@google.com> add debug info to wifi configure, check auth method for real before self-adding

Bug:15111865

Change-Id: I095fff870c7871e3cb7ae4b8e99034519eb26fa1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
368b164d5511e105c95d490e250640edd61045d0 31-May-2014 Vinit Deshpande <vinitd@google.com> DO NOT MERGE: Fix the stopping of scan after Wifi connection

We have code that stops kitkat batch scan while we get a new IP address
via DHCP; this exists because ARP multicast packets may be lost if the
wifi radio is off channel for scanning.

We need to do something similar for GScan as well - to avoid getting in
the same problem. This change accomplishes that.

This change also makes all HAL methods static, getting WifiNative closer
to the 'SupplicantManager' role.

cherry-picked from klp-wireless-dev
SHA1 8f343d40a55bc638872a3bb3453b95062bf838ef

Change-Id: Id2b500e37b71ea21a6bca162011abecbd41d90ec
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
b0b1d59786de7ff1fc98e31a16a7d710458bf549 30-May-2014 Vinit Deshpande <vinitd@google.com> Fix the stopping of scan after Wifi connection

We have code that stops kitkat batch scan while we get a new IP address
via DHCP; this exists because ARP multicast packets may be lost if the
wifi radio is off channel for scanning.

We need to do something similar for GScan as well - to avoid getting in
the same problem. This change accomplishes that.

This change also makes all HAL methods static, getting WifiNative closer
to the 'SupplicantManager' role.

cherry-picked from klp-wireless-dev
SHA1 8f343d40a55bc638872a3bb3453b95062bf838ef

Change-Id: Id2b500e37b71ea21a6bca162011abecbd41d90ec
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
6f1f2a48fe6e88179062760b1075af31ab46822b 23-May-2014 vandwalle <vandwalle@google.com> DO NOT MERGE: lose the STOP_DRIVER command

Change-Id: I8e1ff28d5b79ef53778e0b4d083156cf748a4886
(cherry picked from commit 4a21193ee63c72919e7ead45e1de0643c7abe554)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a37a204ce03e0ee2da68306a1bac58fc4bb8352c 17-Apr-2014 Vinit Deshapnde <vinitd@google.com> Don't reset country code once it is persisted

This change simply ignores resetting of country code by cellular
networks to avoid disconnecting existing wifi connections. It also
defers setting newly found country code until after existing Wifi
connection is torn down.

Also removes some dead code related to resetting of country codes.

cherry-picked from klp-dev
SHA1 b5ee95edf97f83e31e44f72e1b0f95a0c71a97ed

Bug: 13894807
Change-Id: Ie2fcfdd4b3be8ba94542772c132fb1acb6a2c683
(cherry picked from commit f449336da3fc8f8f9b65de3ba359129779511199)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
0888ce6f90bdaeee799dd8361ea4781e23a33b87 24-May-2014 vandwalle <vandwalle@google.com> logs improvements, fix reading back networkHistory file

Change-Id: Iec4b11a3e0d8820b558abea6cc068a905199896d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
4a21193ee63c72919e7ead45e1de0643c7abe554 23-May-2014 vandwalle <vandwalle@google.com> lose the STOP_DRIVER command

Change-Id: I8e1ff28d5b79ef53778e0b4d083156cf748a4886
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
c84f2cac12c1ee9a5b2d220a620e0bf5e79987c2 22-May-2014 Vinit Deshapnde <vinitd@google.com> Merge "Don't reset country code once it is persisted"
f449336da3fc8f8f9b65de3ba359129779511199 17-Apr-2014 Vinit Deshapnde <vinitd@google.com> Don't reset country code once it is persisted

This change simply ignores resetting of country code by cellular
networks to avoid disconnecting existing wifi connections. It also
defers setting newly found country code until after existing Wifi
connection is torn down.

Also removes some dead code related to resetting of country codes.

cherry-picked from klp-dev
SHA1 b5ee95edf97f83e31e44f72e1b0f95a0c71a97ed

Bug: 13894807
Change-Id: Ie2fcfdd4b3be8ba94542772c132fb1acb6a2c683
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ed9938883ae2dade81c8be6cd6ceaef3febd5239 22-May-2014 vandwalle <vandwalle@google.com> make verbose logging a wifimanager hidden API

bug: 151386707

Change-Id: Ide885ce96621fe4bab6abf10291bc8441eecad4a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
04c9a7c99c2ec86636ab43edceb84a2eceaadd04 22-May-2014 vandwalle <vandwalle@google.com> Merge "various autojoin fixes"
453aee50caf7e332e77ab3d995d7c87a958e4fd4 21-May-2014 vandwalle <vandwalle@google.com> various autojoin fixes

Bug:15111865
Bug:15080778
Bug:14994925

Change-Id: I753ff62b48a87db4096fdec18b4de070656cf901
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
82b91fd1a87ae9000bac54fb44981d5003958de1 21-May-2014 Vinit Deshpande <vinitd@google.com> Make Wifi WPS API available on application layer

Un-hide WPS methods (and required interface classes, etc.) of WifiManager.java to
enable Apps to start/stop the WPS procedure, add a patch for WPS method KEYPAD to
avoid early failure callbacks. (Methods PBC, DISPLAY, KEYPAD tested on 4.4.2_r2.)

Change-Id: I25aafdc4b637c87d754d4fdb70e40a34a569b738
Signed-off-by: Olaf Stoyke <o.stoyke@avm.de>
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
117be607246604e875de62aa8cdd99700b77a2b4 20-May-2014 vandwalle <vandwalle@google.com> fix enableNetwork() logic:

should not mark forgotten network as selected

Change-Id: I0ebbc3082228feb482611e0a7b40ee8c18340dee
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
9ae6b45c038fa74a9e7285ef4834551dd93da332 20-May-2014 Yuhao Zheng <yuhaozheng@google.com> Fix a boot failure due to Wifi / Wifi Passpoint

Bug: 15060373
Change-Id: I8341a39c849d4135a0549c481cb3327cfca14567
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
911a89d6a1e8abb3c3167e9b6d23499aec1b19ef 16-May-2014 Robert Greenwalt <rgreenwalt@google.com> Add a name for the wifi NetworkFactory.

Used only for debugging purposes.
bug:15003007

Change-Id: I717d63363f25c446f8ecf38d933b1a35d744af6e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
9882ff94b6e8bc218461ddb1f838f59fe181f9f7 18-May-2014 Robert Greenwalt <rgreenwalt@google.com> workaround wifi runtime crash

This is not a long term fix, but until the wifi folks fix it this should be sufficient.

bug:15060373
Change-Id: I150ba375046c48066150f3d78438efc316e4c84f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
aabe7a9f2f32915fd1f25416a6d2034a844005d6 10-May-2014 vandwalle <vandwalle@google.com> introducing link layer
cherry-picked from klp-wireless-dev-mirror
SHA1: eb8de645540caa6076c34854d8a4e7c22341783f
Change-Id: I5c736c697d38ec17dcde81bdee638048fd688073
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
e65cebc4284fd320a155a274cb647f73cecabd11 13-May-2014 Navtej Singh Mann <navtejsingh@google.com> Fix NullPointerException while WPS Push button/WPS Pin Entry

Fix NullPointerException in system server while authenticating AP
through WPS Push button/WPS Pin Entry

Bug: 14659351

Change-Id: I4c0616b320c49841fbb1ef0983d170b1178bf542
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
446db2d5457456743e4476029e14d7c3bb9f5bcc 10-Apr-2014 Yuhao Zheng <yuhaozheng@google.com> Hotspot 2.0 framework support -- inital implementation

Bug: 5485670
Change-Id: I48a63f5a45e0c217f5b73b4b3c45ea1acee76034
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ede1310be531a84faa08f02c3fd243448dd936dd 16-May-2014 vandwalle <vandwalle@google.com> restore correct tracking of auth failure; bring up assoc reject info to supplicant

Change-Id: I7eeb110f1f14149f560630848f26f7cc9f5cbb67
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ecd2b88214b5d214fd1f63a9560caff9058912dd 16-May-2014 vandwalle <vandwalle@google.com> fix for devices using enableNetwork API

Change-Id: Idf886dd01892d3f7ca463a44fd76030ddadcd238
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
62f1d0ca8ea4466628f6ff179b1f20e1279fa7e0 13-May-2014 vandwalle <vandwalle@google.com> autojoin is to eager to black list networks due to connection failure

Bug: 14834820

Change-Id: I81c05b657b3d218bb4d5f5bf82dd6a8ad3859bd1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
3831a926f6762a3b4c398da51cc67e9d81572458 17-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Switching to NetworkAgent API

Change-Id: I8c820a17a6b64b8376930ba85ab507e07ce38d36
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f656eeed604bdcf2e78fb9fb97b0610a0f19ca99 13-May-2014 vandwalle <vandwalle@google.com> Merge "fix crash on null string in AUTH_FAILURE message handling"
e57857d829f670c62e8d53ffed580681271a272b 13-May-2014 vandwalle <vandwalle@google.com> fix crash on null string in AUTH_FAILURE message handling

Change-Id: I657951f8bb37af778f8d4ab2c9b9d2ab2956220c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
66f8e08b668ebdc4c9b180f90e71cbb4f3e1c37f 13-May-2014 vandwalle <vandwalle@google.com> disable autojoin associated scanning on molly

Bug: 14696701

Autojoin associated scan can interfere with real time streaming (mpeg RTP), hence for now we want to disable those scans on a molly product.

Change-Id: If056032cca91dd47f6fab0c56b4df4c90bc42571
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
952d359198cb1f04c180fc0f795dc316fe97cb5e 08-May-2014 vandwalle <vandwalle@google.com> fix for 14645794 Wifi flakiness triggering multiple crashesin volantis

Change-Id: Id2caa10964bbc02dbeff85ac6193f4be19f7bd39
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
d33eac369db516e6fc05ac930e66510e957c12d6 08-May-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix un-intended exposure of P2pStateMachine messenger"
1e0d2b64c03a05da87d59a5f0774e549e82080cc 08-May-2014 vandwalle <vandwalle@google.com> work around supplicant bug

There is a case where supplicant is in an inconsistent internal state:
- it will silently ignore a select/reconnect command sequence to a given network because some state thinks it is already associated to the selected network
- however wlan driver is not, in fact, associated, and the supplicant's own STATUS command will indeed return a non-associated status

This situation doesn't resolve itself until supplicant is asked to join a different network, or issue a disconnect. In the AUTO_CONNECT sequence, it is safe to issue a disconnect because autojoin already has verified that the supplicant's status was not associated or associated to a different network.

In addition, in this change list, autojoin controller should not duplicate the WifiConfiguration from WiFiConfig store if it only wants to modify then before saving back.

Change-Id: If42fb05752fce288fb993fd7b70ef94cdb1f3d25
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f933721551d39adc4924e5f69dcc51c16c520850 12-Apr-2014 Navtej Singh Mann <navtejsingh@google.com> Fix un-intended exposure of P2pStateMachine messenger

Fix un-intended exposure of P2pStateMachine messenger in
WifiP2pServices, added ClientHandler for request from app

Bug: 13931972

Change-Id: I9ebcdfd82ab66f1b843560758b3f3da8cf7c797b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f22d23092ab37286a5ef9d257d5bb32c421d2669 06-May-2014 vandwalle <vandwalle@google.com> autojoin initial implementation

Change-Id: Iea4e5c0b8e988e410d2f9885ecaf6317d34cc1d1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
f9dba8db09a3a74a47ef076ca0b225bb70052df1 02-Apr-2014 Wei Wang <weiwa@google.com> Merge "Fix stopBatchedScan not working. cherrypick ag/436843"
9bd0507bf45c39dcb6beca7ae885bc790352eda8 02-Apr-2014 Wei Wang <weiwa@google.com> Fix stopBatchedScan not working.
cherrypick ag/436843

Change-Id: I325ea5965bc3863f1fe1179a404c2fa39b3c998e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
3c194cb908060978f65ae168ea0ed0606127b422 27-Mar-2014 Vinit Deshapnde <vinitd@google.com> Merge "Explicitly set update_config on supplicant"
785c09f2ae609a580a620d1a45529881ea958f84 11-Mar-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Debounce wifi country code info"
9c22c8ea193360f50ad490368ca6a11af0684362 06-Mar-2014 Robert Greenwalt <rgreenwalt@google.com> Debounce wifi country code info

We're getting signals from the radio and it sometimes drops out for a while.
This change will delay applying an empty country code for 15sec but apply
non-empty country codes immeditately. It uses a sequence number so we only apply
the most recent change, even if it's delayed.

bug:11062898
Change-Id: I9d3a870f3b66296d4b3cbc10c730c9a043c0da96
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ff2a397afcc14a60ed70f109318a2ee799fed692 04-Mar-2014 Vinit Deshapnde <vinitd@google.com> Merge "Fix an inadvertent change in WifiNative"
0a696d168d7ad98ab5084d2a16e3d02c545a85aa 03-Mar-2014 Vinit Deshapnde <vinitd@google.com> Explicitly set update_config on supplicant

This is to ensure that supplicant always saves network information. It is
possible for this flag to be turned off because supplicant couldn't read
wpa_supplicant.conf; but we never want supplicant to not save new networks.

Bug: 13233891
Change-Id: Ia7273dd65d01c9786be2e7dedfb39d3abe9b56c2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
64e65668e36bfeb0b634e9a678020ed04434f365 27-Feb-2014 Yuhao Zheng <yuhaozheng@google.com> Merge "Implement new API to scan a given channel set"
a0009d14075b5345b8f916c3fb3f2260c938cb9d 06-Feb-2014 Yuhao Zheng <yuhaozheng@google.com> Implement new API to scan a given channel set

Framework implementation for the new scan APIs. Besides implementing the API,
this CL does 2 additional changes:

1. Only count battery consumption if a scan request is accepted by supplicant,
i.e. it won't be counted if it's rejected due to another ongoing scan.

2. If a scan request is rejected, we may buffer the scan request and do it
later, to make sure the specified channels are eventually scanned. On the
other hand, we will try to combine scan requests to avoid repeated scans.
For example, a full scan serves all scan requests.

Bug: 12610436
Change-Id: Ia9edc58c7ddd7a535bfaa0f906f6faaaf5f5d439
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
ae0b5cce21686ad00fd0a3d5aab35fe2152c4737 05-Feb-2014 Vinit Deshapnde <vinitd@google.com> Fix an inadvertent change in WifiNative

wifinative.closeSupplicantConnection() closes sockets that were opened
to talk to supplicant. It was accidentally removed when we moved to
single socket connection to supplicant.

Bug: 12344420
Change-Id: I4242aff17baa91f3cdffaffb264c3bf4f93aaca3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
74b0804ef846b9b4888025092dd5c75143b559dc 03-Feb-2014 Felipe Leme <felipeal@google.com> Rename fetchRssiAndLinkSpeedNative() into fetchRssiLinkSpeedAndFrequencyNative() and changed it to also set the WiFi frequency.
Bug: 12767819

Change-Id: Icc5b702475f9047311246da3440d220c67875a4c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
3f7ef65ab71619040032aee96b5599849881d6fd 23-Jan-2014 Andres Morales <anmorales@google.com> piping supplicant commands for WPS token setup

Supplicant exposes a command for generating
NFC Wifi tokens as per the Wifi Simple Configuration
specification. This CL export this command to the
framework.

Change-Id: If34e6a71888bfb2b420048eed4fe373566835611
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
155b9d09ef9b8ead3ca617afdd91e74070d3f0cb 09-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Revert "Move Wifi services to a new git project""

This reverts commit 862f81faba40e9af8fb80744a22e968a298e814e.

Change-Id: I7b15e266a5948749026e01a61d8581746cfd0f5f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
862f81faba40e9af8fb80744a22e968a298e814e 08-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Move Wifi services to a new git project"

This reverts commit a07c419913bfae2a896fbc29e8f269ee08c4d910.

Change-Id: I1cd35cea1594cdbeae800b9130bc6f885f238b28
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
a07c419913bfae2a896fbc29e8f269ee08c4d910 18-Dec-2013 Vinit Deshapnde <vinitd@google.com> Move Wifi services to a new git project

Bug: 12175455
Change-Id: I1fa07e29c6a9aae38d9e334d519a9f2445d15613
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java