• Home
  • History
  • Annotate
  • only in /frameworks/opt/net/wifi/service/java/
History log of /frameworks/opt/net/wifi/service/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/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
9572797c3061128bc8f6654854782b61d1b8c71b 14-Jan-2015 Vinit Deshpande <vinitd@google.com> Merge "Fix an NPE in WifiConfigStore" 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
om/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
537324a497615d07b67ba4582e9aaababd77afd6 09-Jan-2015 Vinit Deshpande <vinitd@google.com> Fix an NPE in WifiConfigStore

Disabling an invalid configuration causes Wifi service
to crash. This change gaurds against bad API call.

Bug: 18904771
Change-Id: I8d853b754cbd4163c17f3d53bf81dc7625c95466
om/android/server/wifi/WifiConfigStore.java
2c9b6297f3cd74780a084634320d03a413a3b779 08-Jan-2015 Jeff Davidson <jpd@google.com> Fix incorrect tracking of ephemeral network statistics.

The lastUntrustedBSSID variable was being used as an SSID, not a
BSSID, and was not cleared after the untrusted network was
disconnected, causing stats not to increment on new connections if the
last connection was to the same SSID.

So, remove this unnecessary variable, and check the current
WifiConfiguration to determine which network we're currently using, if
any. Increment the connection count only when we are actually going to
associate with the SSID.

This only affects untrusted network flows and should have no impact
when connecting to saved Wi-Fi networks. The only non-statistical
change involves the boost given to the active network, which is
controlled by the NetworkScorer and can be updated dynamically
(outside of the framework).

Bug: 18908655
Change-Id: I5b712a4ff613d8199d0591e568886be0d2419645
om/android/server/wifi/WifiAutoJoinController.java
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
om/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
om/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
om/android/server/wifi/WifiStateMachine.java
e0230c8236956c2098e13a0ea837f33ac3ce11ea 18-Dec-2014 vandwalle <vandwalle@google.com> Merge "add debug logs to confirm network flapping issue is fixed Bug:18706288" into lmp-mr1-dev
84070068b0aff877437f4ecbcac8b6f4fe976d32 18-Dec-2014 vandwalle <vandwalle@google.com> Merge "Disable legacy poor Network detection Bug:18723206 Legacy poor network detection was removed from L settings but can still be enabled during an upgrade if it had been manually enabled by user, now really disable it." into lmp-mr1-dev
f57f8918b8c5872ff4bb141fa9e407bec8442e8d 16-Dec-2014 vandwalle <vandwalle@google.com> add debug logs to confirm network flapping issue is fixed
Bug:18706288

Change-Id: I27a86aeb650a63511b667244b0138afbc1bc059e
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
16fdf07021858fd116d96a5fb00ddb3c166d5ae6 05-Dec-2014 Jeff Davidson <jpd@google.com> Stabilize ephemeral connections in the face of new BSSIDs.

Currently we only check whether the most recently seen BSSID has a
score before deciding to disconnect an ephemeral network. This causes
unnecessary flapping - if multiple BSSIDs are in visible range, and
the scorer likes one of them but has no score for the other (or is
still looking up the score), we will drop the connection.

Instead, as long as we've recently seen a scored BSSID (in the last
minute), we keep the connection alive.

A scorer can still initiate an immediate disconnect from an unwanted
network by nulling scores for all BSSIDs.

The timeout (and whether we use this new behavior at all) is
controlled by a Settings.Global flag.

Bug: 18637384
Change-Id: I6bde3c9eef12caf2cc51c449abffc1c69f60c17f
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiNetworkScoreCache.java
82f9342c26900256a1bf6bef7b40a775116bf57c 12-Dec-2014 vandwalle <vandwalle@google.com> Disable legacy poor Network detection
Bug:18723206
Legacy poor network detection was removed from L settings but can still be enabled during an upgrade if it had been manually enabled by user, now really disable it.

Change-Id: I661b326c6f5dfacfcc5582cea14dc52501740367
om/android/server/wifi/WifiWatchdogStateMachine.java
6a0c6896aa7f72744f8b3d65b3dcc7ea0c063bc7 14-Dec-2014 Prem Kumar <premk@google.com> Merge changes Ieee0b91a,I0093620c into lmp-mr1-dev

* changes:
fix logspam Bug:18589606
Apply 5GHz band preference only when comparing configurations on different bands
ff8ab9f723c8ecf04aedfc3102676ab498cb14fb 14-Dec-2014 Prem Kumar <premk@google.com> Merge "make sure wificonfiguration scan cache doesnt grow unbounded Bug:18703749" into lmp-mr1-dev
4ff7838d595d2be641da1892507d3333707291e2 14-Dec-2014 Prem Kumar <premk@google.com> Merge "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" into lmp-mr1-dev
e97752385ec67e72f8ae7a772eb7af3014266ace 14-Dec-2014 Prem Kumar <premk@google.com> Merge "handle beacons reported with wrong RSSI value of 0 Bug:18654243" into lmp-mr1-dev
acb5ebbeedbd9a206e2ed82de3a365ceedb27d0c 10-Dec-2014 vandwalle <vandwalle@google.com> fix logspam
Bug:18589606

Change-Id: Ieee0b91ab96ec9392a9b91ac1017a319605425dc
om/android/server/wifi/WifiConfigStore.java
63105d275289943504a292de18e6516e79b15148 10-Dec-2014 vandwalle <vandwalle@google.com> make sure wificonfiguration scan cache doesnt grow unbounded
Bug:18703749

Change-Id: If6452e7dbaaabb164cf2a99b48b3964f4cb86ee5
om/android/server/wifi/WifiConfigStore.java
815788ba7838fc54310baed3deb9b95548e0ce69 11-Dec-2014 vandwalle <vandwalle@google.com> Apply 5GHz band preference only when comparing configurations on different bands

Bug:18589301

Change-Id: I0093620c859940d993c9ea60d9d6cdc86bb2fa58
om/android/server/wifi/WifiAutoJoinController.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
om/android/server/wifi/WifiStateMachine.java
ca98d25affbc5bc948bf1f9a597a346cf347f27a 11-Dec-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix an unhandled exception in WifiP2pStateMachine" into lmp-mr1-dev
8ccabb81ad304b80dc8eaa162fd322643461529b 10-Dec-2014 vandwalle <vandwalle@google.com> handle beacons reported with wrong RSSI value of 0
Bug:18654243

Change-Id: Ied2fbc87c7effc23fecb68e9863153d63c0cfba4
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
93a1fddee50a244d31036cddae6b7db6630fd93d 07-Dec-2014 vandwalle <vandwalle@google.com> adjust network switching thresholds
Bug:18589301

Change-Id: Ifa2ae05620207798d24e5e196ff522a71fc0fd48
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
84befe36af491f26ae46243017a1aca4dd5b24d5 09-Dec-2014 Vinit Deshpande <vinitd@google.com> Fix an unhandled exception in WifiP2pStateMachine

An exception is thrown when group creation is deemed failed. It is
thrown because an empty peer address is encountered. It is not clear
when the address goes empty (there are no logs); but this change
would prevent resstarting of the framework.

Bug: 18667239

Change-Id: I523646eaa1ff6c8dab9ee99b893ebc4291eee2da
om/android/server/wifi/p2p/WifiP2pServiceImpl.java
88c9369cb6b94c30324893337aa25b1e37a15ff6 08-Dec-2014 Jason Monk <jmonk@google.com> Merge "Allow interact-users-full access to scan results" into lmp-mr1-dev
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
a63fbdbba96e242280267466b170e311e1f71dc3 06-Dec-2014 Jeff Davidson <jpd@google.com> Merge "- keep track of ephemeral configurations that are deleted by user - make sure we cleaned up prior ephemeral WiFiconfiguration from wpa_supplicant.conf Bug:18525241" into lmp-mr1-dev
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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
f8704c368e0fee0c7cf7e294d109dece6b72e832 05-Dec-2014 Jason Monk <jmonk@google.com> Allow interact-users-full access to scan results

Allow callers that hold INTERACT_ACROSS_USERS_FULL access to scan
results even if they aren't on the current user.

Bug: 16559573
Change-Id: I27fae71b3cdc1c084777242f21fe4bb692ab7135
om/android/server/wifi/WifiServiceImpl.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
e3939cb40d9ba3842be105a6e85172dc06e14758 02-Dec-2014 Vinit Deshpande <vinitd@google.com> Read all networks despite message limit of 4096 bytes

This change uses list_network last_id=x form of list_networks to
retrieve all networks saved in the system.

Bug: 18566264
Change-Id: Ie439acd98d39ca32417418944035dcce3068d44b
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNative.java
94d2ff04bd5a0aaf2a761f15c958034ad54ff5a9 02-Dec-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix an NPE in RttService" into lmp-mr1-dev
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
om/android/server/wifi/WifiStateMachine.java
f392c0185c2bea228f89fd42fa4551fa19797e7a 22-Nov-2014 Vinit Deshpande <vinitd@google.com> Fix an NPE in RttService

Bug: 18245283
Change-Id: Ie844353bffcf40baa4db8cad2c18dcc5ffaf5a82
om/android/server/wifi/RttService.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
om/android/server/wifi/WifiStateMachine.java
9086afccf6938a49eb9a2cd248917c1cb0943942 22-Nov-2014 vandwalle <vandwalle@google.com> remove dfs channel from location restricted scans

Change-Id: I387816c8682e9f595229ecbb20c35711ea1f069b
om/android/server/wifi/WifiServiceImpl.java
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiStateMachine.java
1a36bf394b991d2b1e4bba0118377a7869f205df 20-Nov-2014 Jeff Davidson <jpd@google.com> Merge "Don't enable ephemeral networks when bringing up Wi-Fi." into lmp-mr1-dev
68fee36dac1dda5c596c00ef33fdbc0962e9ec9f 19-Nov-2014 vandwalle <vandwalle@google.com> perform regular autojoin when turning wifi on
Bug:18451553

Change-Id: I729ae360209e852e4e64bed0c584ed076b1281b4
om/android/server/wifi/WifiAutoJoinController.java
om/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
om/android/server/wifi/WifiStateMachine.java
fb29a19d6401f75c72be6bacd9171fc974e3b07d 15-Nov-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix a crash in parsing beacon IEs" into lmp-mr1-dev
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
ebfa1b39d313e987d4bb88440ebfd043965c7dba 14-Nov-2014 Jeff Davidson <jpd@google.com> Don't enable ephemeral networks when bringing up Wi-Fi.

Connections to these networks should only be managed by auto-join. If
we enable these configs then it is possible that the supplicant brings
up an unwanted ephemeral connection that auto-join will immediately
discard, which is wasteful.

Bug: 18389875
Change-Id: I0d3a9a35542eda71401920c0b600dcd2b1e134ba
om/android/server/wifi/WifiConfigStore.java
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
om/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
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/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
om/android/server/wifi/WifiStateMachine.java
cce360ad854cabb238ba0d9290785c26e837749c 12-Nov-2014 Vinit Deshpande <vinitd@google.com> Handle bad WifiHAL implementation

wifi_initialize() may succeed even without any wlan. This crashes
the framework. This change handles such inconsistencies.

Bug: 18337642
Change-Id: I578e0d92ea6b981a1d61469a0f4e870d87843107
om/android/server/wifi/WifiNative.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
om/android/server/wifi/WifiStateMachine.java
f93f774c884d2fcbeadaf575a3b3fa065da2e3d0 12-Nov-2014 vandwalle <vandwalle@google.com> Merge "dont blacklist wifi config that have had validated internet status in the past" into lmp-mr1-dev
d30127db46224e45554f8964209221bba8ad41d9 08-Nov-2014 vandwalle <vandwalle@google.com> dont blacklist wifi config that have had validated internet status in the past

Change-Id: I4498888ffb1d3189204a553462ff4342239ed2af
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
81c9ea6c343bc7f8d87095237e59844a974d0b70 06-Nov-2014 Jeff Davidson <jpd@google.com> Make use of scorer-specified heuristics in RssiCurve.

Treat Byte#MIN_VALUE equivalently to a null score curve. This allows a
scorer to define an RSSI threshold below which a network should not be
used. Currently, any non-null score curve will result in us connecting
to a given network regardless of RSSI.

Also, instead of applying a hard-coded dBm boost to the currently
active network, make use of the boost specified in the RSSI curve
itself, allowing the scorer to fine-tune this boost.

Bug: 15432594
Change-Id: I7a8f5f68ef074827d4b1cfbbed0841448498f179
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiNetworkScoreCache.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
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiStateMachine.java
e7b9e74a9a699e74881e5c98c684567763dfaa35 15-Oct-2014 Vinit Deshpande <vinitd@google.com> Fix a crash in parsing beacon IEs

Sometimes they aren't correct; but we shouldn't crash the system for it

Bug: 17549369
Change-Id: Idafde6a8f86b63ef157e8dbf0937cd796bee476f
om/android/server/wifi/WifiNative.java
42f181ed4277890489be016939209952959d5416 31-Oct-2014 Jeff Davidson <jpd@google.com> Propagate WifiConfiguration ephemeral bit to ScanResult.

Bug: 18206244
Change-Id: I82e8a359db32a84145716b43d8438767959a00b3
om/android/server/wifi/WifiConfigStore.java
efad8ec6cb12e5658ee0288cc7e5aa755267aeb6 30-Oct-2014 vandwalle <vandwalle@google.com> read packet counters before and after DHCP

Change-Id: I0c1d94a6d687c2788b71523adae01cde59d34aa7
om/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
om/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
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
27fec00f5028f34adfc9d43a21ef363a33f7277e 28-Oct-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Don't connect if the NetworkFactory has not requested it." into lmp-mr1-dev
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
om/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
om/android/server/wifi/WifiStateMachine.java
b407b98190bc4a80b58285bbcd4751bf2a94c9b9 25-Oct-2014 Vinit Deshpande <vinitd@google.com> am 88daa7e9: Mark configuration as disabled, if it is disabled by WifiManager

* commit '88daa7e9d975b8b6674157dd6e81d358c7d16393':
Mark configuration as disabled, if it is disabled by WifiManager
88daa7e9d975b8b6674157dd6e81d358c7d16393 24-Oct-2014 Vinit Deshpande <vinitd@google.com> Mark configuration as disabled, if it is disabled by WifiManager

Bug: 17937171

Change-Id: Ic61439868f28899cc1c641c29ebcc8b7bfab35eb
om/android/server/wifi/WifiConfigStore.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/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
om/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
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
f15171c10c8df5603c3ba7a2fa80138e151028fc 09-Oct-2014 Joe Farfel <jfarfel@google.com> Merge "Change access to P2pStateMachine messenger." into lmp-dev
07a55aa0236fc5d1b05c5d54c6ff8d42d881b4bb 07-Oct-2014 Joe Farfel <jfarfel@google.com> Change access to P2pStateMachine messenger.

Allow either LOCATION_HARDWARE (GmsCore has this) or
CONNECTIVITY_INTERNAL permission.

Bug: 17814099
Change-Id: I73aba5361f8654305d783996093e095375087f37
om/android/server/wifi/p2p/WifiP2pServiceImpl.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/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
om/android/server/wifi/WifiConfigStore.java
om/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
om/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
om/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
om/android/server/wifi/WifiConfigStore.java
om/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
om/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
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
fa64c3ff3051dfd8a876786df70e635d3906121f 23-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Synchronize access to supplicant from p2pGetDeviceAddress" into lmp-dev
27f4b0c6ea9533e91863da48cefc80f8b5a88d1e 20-Sep-2014 Vinit Deshpande <vinitd@google.com> Synchronize access to supplicant from p2pGetDeviceAddress

Since it is not calling the native command directly, it needs to
be synchronized just like other commands.

Bug: 17516271
Change-Id: I97ecbc7dc0f476ae52524d513e47c863e6d5ddba
om/android/server/wifi/WifiNative.java
328fc5407927799843c11f2b767a8cf47b89f366 19-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Re-add wifi change permission check.

Recent change switched to impose the Connectivity permissions
(which were intended but being circumvented) but that removed
the wifi change permission.

bug:17435527
Change-Id: Ibc58605dee767d6a749b1fae867855fd1cb25def
om/android/server/wifi/WifiServiceImpl.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
7e1b891ba9d144ca026e8684ef8019cc76a53d6e 18-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Use unified Tethering Permission Check" into lmp-dev
34f173a54307c39ffe5dfab52e7ef8166a00539e 17-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Use unified Tethering Permission Check

The BT and Wifi mechanisms for enabling Tethering did their own
permission checks. This set of changes unifies the check into
a ConnectivityManager function so they can be kept in sync.

bug:17435527
Change-Id: I8c157a5acf56ffbddd349cb6a45160ae7be8541b
om/android/server/wifi/WifiServiceImpl.java
6449b994869c182159a108ae53160edb4f0abe10 17-Sep-2014 David Christie <dnchrist@google.com> Merge "Fix bug where wifi scan only mode is non-functional after toggling airplane mode. Bug: 17507663" into lmp-dev
fc797cf48feed42a76fccef73eeed535e1848702 17-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Add NetworkAgent event for ExplicitlySelected" into lmp-dev
7b160c8a00773246660caeae9e27090c83ed6ed5 16-Sep-2014 David Christie <dnchrist@google.com> Fix bug where wifi scan only mode is non-functional after toggling airplane mode.
Bug: 17507663

Change-Id: I0d77c2e29b78fdfa8e9f4be31181145cb29c1499
om/android/server/wifi/WifiController.java
om/android/server/wifi/WifiSettingsStore.java
99d385e3b4d34841d6efcfd7cc9bf1d5ae25de14 16-Sep-2014 vandwalle <vandwalle@google.com> set proper link quality thresholds

Bug:17514073

Change-Id: Icf4dbd81e8547bb837c8346c9af5cfc98d7b00ab
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNative.java
om/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
de5e9a44e76cf78d2bac0c60b7420a669393e9f5 16-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix first time notification of available open Wifi" 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
om/android/server/wifi/WifiStateMachine.java
9e806a8d9f297e4de826e65322859a89e4d95c8b 15-Sep-2014 vandwalle <vandwalle@google.com> improve debugging messages & logging

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

Change-Id: Icc1f722d3e0293ec58027770b941fc98dc24ce44
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/WifiWatchdogStateMachine.java
448c9536a302c58a79e271b1721c08b8882f800e 11-Sep-2014 vandwalle <vandwalle@google.com> dont accept CONNECTION_EVENT until roaming is complete

Change-Id: Iedde560abc9d2f4c3a3b9b9bfc5caaaa5584472e
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
c5e82ad2600416d7eafdde5d1d02400ece28e48a 10-Sep-2014 Vinit Deshpande <vinitd@google.com> Fix first time notification of available open Wifi

There is no networkInfo the first time notification controller starts,
and as a result it is dropping check to find out if open networks are
available.

Bug: 17349359
Change-Id: I09ca0b1cb44a849f2cdfafb1dcdcc943b2586562
om/android/server/wifi/WifiNotificationController.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
048dd77ab0eb085f708663ee9f6298e703ccda2b 10-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Secure access to WifiScanner" into lmp-dev
b6defc9d7836cb440c0cdb0d1e1031a5fc83a4da 10-Sep-2014 vandwalle <vandwalle@google.com> Merge "various fixes:" into lmp-dev
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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
a2cf11484151923968065fdb25997c5032d36348 09-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Implement getAvailableChannels" into lmp-dev
826cc083fdbef5680ff2052b02789326b44bb322 09-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix leaking of WPA2 passcode for newly added networks" into lmp-dev
46d6b0ac6d466002e868627488796ce3d6a154aa 09-Sep-2014 Vinit Deshpande <vinitd@google.com> Secure access to WifiScanner

This change implements access control for WifiScanner. It is now
available to only those apps that have CONNECTIVITY_INTERNAL permissions.

Bug: 15088601
Change-Id: I6acc13079b6dac6f190644b6d1a270c271cc679f
om/android/server/wifi/WifiScanningServiceImpl.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
om/android/server/wifi/WifiStateMachine.java
c9b047b4cb480edbb490516746cfcbb4a4eedeea 08-Sep-2014 vandwalle <vandwalle@google.com> dont debounce on locally generated disconnect

Change-Id: Id75a866959fc99828f6143230a9ade3e6a2b81b9
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
e61237672316b46d7bec960a199bfbd5bfcca257 06-Sep-2014 Vinit Deshpande <vinitd@google.com> Fix leaking of WPA2 passcode for newly added networks

WifiConfigStore is firing broadcast with incorrect object which leaks
the passcode.

Bug: 17160254
Change-Id: Ia07897778d4b7a9865b883ae2a8bc3b01c58ae6a
om/android/server/wifi/WifiConfigStore.java
efa77c1826499b0a3e57998bd6b3073b107e45d7 06-Sep-2014 Vinit Deshpande <vinitd@google.com> Implement getAvailableChannels

This API allows finding channels by band, so scanning services
can find out which channels to use.

Bug: 16652660
Change-Id: I690825333988a336efa3fc8886297e5b8baf8e1d
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.java
14fd4783657cc19da98d964e61de6251d6c317c8 05-Sep-2014 Wenchao Tong <tongwenchao@google.com> Merge "Fix a bug in the wpa_supplicant parsing code." into lmp-dev
f2899b9c94fd1abbd01625dfe320dd3f1bc9cc9c 03-Sep-2014 Wenchao Tong <tongwenchao@google.com> Fix a bug in the wpa_supplicant parsing code.

line.indexOf("ssid=") matches both ssid=xxx and scan_ssid=1.
Fix a typo in the regex to match the end of network block.

Bug: 17363819
Change-Id: Ib240e16988867b9610691b3bf4bcf90130797dc9
om/android/server/wifi/WifiConfigStore.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
om/android/server/wifi/WifiServiceImpl.java
om/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
om/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
om/android/server/wifi/WifiServiceImpl.java
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/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
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
f143875ade81631bfe4c63e379d6467b1863fbc1 29-Aug-2014 vandwalle <vandwalle@google.com> Merge "autojoin fixes:" into lmp-dev
0d647da4a502c1d3679d700144469460acab3d73 27-Aug-2014 Selim Cinek <cinek@google.com> Colored notifications

Bug: 17128331
Change-Id: I30a31d5da000e021e9891c56da91b0ff9615d4d6
om/android/server/wifi/WifiNotificationController.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/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>
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
3e883d5461ec819b7db51470e387c4bf0b09ce1f 25-Aug-2014 vandwalle <vandwalle@google.com> remove passpoint - DO NOT MERGE

Change-Id: Ia399d98fa7d1ecff5c06bf4802f70dc22c8e5713
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/passpoint/WifiPasspointService.java
om/android/server/wifi/passpoint/WifiPasspointServiceImpl.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
28c7065e2af36064a230d2647782c5cdadaff2d8 15-Aug-2014 Vinit Deshpande <vinitd@google.com> Stop redundant attempt to remove an already removed client

It seems CMD_CHANNEL_DISCONNECTED can be called multiple times. This
change fixes a null derefence when removing the same client a second
time.

Bug: 17049093
Change-Id: Ic7da6a1e42cdc809cc3f6f042f2502453fee0c91
om/android/server/wifi/WifiScanningServiceImpl.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
om/android/server/wifi/WifiNative.java
om/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
88d6ab0af06fa595a7c9b3abc69f1f8b5f18e9cf 22-Aug-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix a bug in setting external_sim flag" into lmp-dev
4d701eca56d62586b0ab8af6ad864bac74a1dcd0 22-Aug-2014 Vinit Deshpande <vinitd@google.com> Fix a bug in setting external_sim flag

It looks like supplicant doesn't like the lowercase
command, it needs uppercase.

Bug: 17176844

Change-Id: If8515f522384cb8ed98bb78c0d50ffc0f383c9ed
om/android/server/wifi/WifiNative.java
3c3c5b64726f04920109e4c8f20a1c58ea7050aa 22-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Use new config resource for tcp buffersize

bug:16549611
Change-Id: I01ecca0a2a7893c1911cead503594ce9e17fa69e
om/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
om/android/server/wifi/WifiApConfigStore.java
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiNative.java
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
7988fcae6f9cf8be0063a70b42ef58a4fa7feb84 20-Aug-2014 vandwalle <vandwalle@google.com> Merge "remove passpoint, except ANQP - DO NOT MERGE" into lmp-dev
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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
92e702658bc348fa4504eaef54833859e7413e2a 15-Aug-2014 vandwalle <vandwalle@google.com> remove passpoint, except ANQP - DO NOT MERGE

This CL is dependent on Ic533d1820c470bf2370a92452b37515ef7458f45 and should build when used with this CL


Change-Id: Ic3ae7269f0ca11cec6b7aea5143499e88ecc7149
om/android/server/wifi/passpoint/WifiPasspointCertificate.java
om/android/server/wifi/passpoint/WifiPasspointCertificateHelper.java
om/android/server/wifi/passpoint/WifiPasspointClient.java
om/android/server/wifi/passpoint/WifiPasspointDmClient.java
om/android/server/wifi/passpoint/WifiPasspointDmTreeHelper.java
om/android/server/wifi/passpoint/WifiPasspointHttpClient.java
om/android/server/wifi/passpoint/WifiPasspointServiceImpl.java
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.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
om/android/server/wifi/WifiConfigStore.java
om/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
om/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
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/p2p/WifiP2pServiceImpl.java
8c0a54e9b0d3713cab52d06ad8fd7f3a1b6f73a8 14-Aug-2014 vandwalle <vandwalle@google.com> provide autojoin config threshold, fix bug16990104

Change-Id: Iac9ec4fe0a721df5f08b90d631025df4d944d088
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiStateMachine.java
97f1a2ce31c8842c0f0de4660d49233f70c2ea13 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Revert "Revert "Revert "Update Trusted Credentials screen in settings"""" into lmp-dev
6e2ae81e7a5a96fe442638d9d2ce9d8d450ee742 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Revert "Revert "Revert "Update Trusted Credentials screen in settings"""

This reverts commit fac5b63c2e1ed7ec07a1253ec5b6f42a2a072f1d.

Change-Id: I06bae63f98fce98acf2c9219b54ef0f5adbdaa5b
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
fac5b63c2e1ed7ec07a1253ec5b6f42a2a072f1d 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Revert "Revert "Update Trusted Credentials screen in settings""

This reverts commit 2c1923a320ed038d67bac0912cb99c9d406e96b7.

This should be fine now with all the dependency CLs +2-ed


Change-Id: Ib8348e75f8b79134a42ccfe22582b1b3d185c9c9
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
2c1923a320ed038d67bac0912cb99c9d406e96b7 15-Aug-2014 Narayan Kamath <narayan@google.com> Revert "Update Trusted Credentials screen in settings"

This reverts commit f1f5c7cba10d7c625e01f5f5c148f1f8c3987eca.

Change-Id: I22ea9fb43ff4fdc5a9360a8571419e8d2e4f4214
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
71aa1728f0af364b6d0a032fb615687d3bfce77e 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Revert "Revert "Update Trusted Credentials screen in settings""" into lmp-dev
ee9f7f00b3ee67836642f70d7f3d835b9240f09f 15-Aug-2014 Narayan Kamath <narayan@google.com> Merge "Revert "Update Trusted Credentials screen in settings"" into lmp-dev
30e6a4327b049e291a1cdf19b57571644baba7a2 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Update Trusted Credentials screen in settings" into lmp-dev
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
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/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
om/android/server/wifi/WifiStateMachine.java
2a325cd07d40941adb93c1284abb263ba650c213 12-Aug-2014 Sky Faber <skyf@google.com> removeNetwork needs to perform owner check against userId not uid.

Bug: 16952565
Change-Id: I78666c34fc919bbc96ef92b02445b93b0948f743
om/android/server/wifi/WifiServiceImpl.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
6c6698e260cbb0ca9a445e0f7122ae4c7c9cb938 12-Aug-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix non-report of full scan results when scanning bands" into lmp-dev
63243b616f0e24d2c145d77582cedc2856456bcb 11-Aug-2014 Vinit Deshpande <vinitd@google.com> Fix non-report of full scan results when scanning bands

We use channel lists to report events, unfortunately, channel list is
empty when bands are used. This change looks up the channel list for
the band before firing events based on it.

Bug: 16907772
Change-Id: Iab317ad4ad5bc9d2e9d9c0215f8cbcfc4ea967ad
om/android/server/wifi/WifiScanningServiceImpl.java
4dbfefd99e51ab1cca058026c90f8093b099198b 11-Aug-2014 Vinit Deshpande <vinitd@google.com> Fix unreliable onQuiscence event

Turns out that new bssid settings weren't always applied to the
significant wifi change state machine. Also broadened the RSSI
range to trigger events at larger distance.

Bug: 16660861
Change-Id: I02518833a4f900c380198ef47c42a0622c258fd2
om/android/server/wifi/WifiScanningServiceImpl.java
33b575ca6bee66183929f9474b5a161432918604 09-Aug-2014 Vinit Deshpande <vinitd@google.com> EAP-SIM End-to-end

Change-Id: I9478e6a492c469d57bb020b8f858e523ea6a92d1
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
030157871d5deea64f45e4d0914e3bfbf4d94c37 11-Aug-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix unreliable onQuiscence event" into lmp-dev
8e6144b4059fc2117be23d7222893bc57a33f64d 20-Jun-2014 Jon Larimer <jlarimer@google.com> Fix null dereference in enableTdls() and enableTdlsWithMacAddress()

Change-Id: I37acf88c9adefba240fb8bc8a9e633ddcd823d21
Bug: 15775601
om/android/server/wifi/WifiServiceImpl.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiStateMachine.java
d432374e5daff944bb5bb27a41d88ea49c99e14d 08-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix reading wifi configurations from the config store." into lmp-dev
4d3bff566b2cd0c3fd4d118eb6aae42ab3e9b5dd 08-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Fix reading wifi configurations from the config store.

IpConfiguration's readIpAndProxyConfigurations method returns a
SparseArray mapping network IDs to IpConfiguration objects.
Unfortunately WifiConfiguration's readIpAndProxyConfigurations
iterates over the array and attempts to find the network the
configuration is for by looking at the sequence number of the
configuration, not the actual key in the SparseArray.

Bug: 16382665
Change-Id: I3dfef9123382b81a2a22cf5df7a5bb77611059aa
om/android/server/wifi/WifiConfigStore.java
663ec152411cf88dbc7b9dd50277c844761bea0d 08-Aug-2014 Chelsea Derrick <chelsead@google.com> Merge "Revert "Broadcast wifi credential change from WifiStateMachine. [DO NOT MERGE]"" into lmp-dev
c35361d54d4885c3174499e4ad46d3324387a9bb 08-Aug-2014 Vinit Deshpande <vinitd@google.com> Workaround RTT supported bug

Support for Device to AP rtt should be advertised in
wifi_get_supported_feature_set(). It is not there yet, using
a hardcoded value for now.

Bug: 16854821
Change-Id: Ib468939dc03d91d3f2848fd7ad2f6cbf6013684e
om/android/server/wifi/WifiNative.java
1814928371a30b11af31e2bbe5210c4337ed16f3 06-Aug-2014 Vinit Deshpande <vinitd@google.com> Fix multiple null pointer exceptions in WifiScanningService

Couple can happen because of race conditions and one is happening becuase
of driver failure; which will be addressed separately.

Bug: 16706416
Bug: 16732450
Bug: 16791198

Change-Id: I983cd5fd4077273802a9ad65f76d3c31452e9ebc
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.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
om/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
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiStateMachine.java
487a655bd40563a1a4ba57bb66c914de8174f4f2 04-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Unbreak WifiStateMachine IP provisioning logic." into lmp-dev
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
om/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
om/android/server/wifi/WifiStateMachine.java
a232280e191f8a3a2c825d544c6fce77914a37f5 31-Jul-2014 Vinit Deshpande <vinitd@google.com> Merge "Rename HotspotListener to BssidListener" into lmp-dev
b7cc309f06da8a18224057c21ba086f8550367d6 31-Jul-2014 Vinit Deshpande <vinitd@google.com> Rename HotspotListener to BssidListener

And other usage of term Hotspot. This is to be technically correct
with the name usage, should the API become public later.

This change also fixes few outstanding requests from GScan API.These
include

a. An event with scan results when REPORT_AFTER_EACH_SCAN is set.
b. ScanSettings now takes in number of APs as an argument.

Bug: 16633917
Bug: 16631524

Change-Id: Id160f9f14193a37cce5f3ab8d6ea528344b788a0
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.java
7e170fe5c25a7691ac984f0fedb3939b8bec4119 30-Jul-2014 vandwalle <vandwalle@google.com> Merge "fix getNetworkScore" into lmp-dev
1db63db890fcb9051f402fdfd449eb0b80e2053c 30-Jul-2014 vandwalle <vandwalle@google.com> fix getNetworkScore

Change-Id: I60bc5c458938f662b2550e48839cb455764dc037
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiNetworkScoreCache.java
326120045502363422cf5c52a467163d4bcb703a 30-Jul-2014 vandwalle <vandwalle@google.com> add debug log for RSSI_PKTCNT_FETCH

Change-Id: I54f920e7373febf3874deb194011e98c05eb1a23
om/android/server/wifi/WifiStateMachine.java
f1f5c7cba10d7c625e01f5f5c148f1f8c3987eca 29-Jul-2014 Zoltan Szatmary-Ban <szatmz@google.com> Update Trusted Credentials screen in settings

Trusted credentials for both the primary user and its managed profiles are shown
on the Trusted Credentials fragment. All functionalities (e.g. disabling/enabling
of certificates) remain available.

Bug: 16029580
Change-Id: I76200cca5dce8bf2c042a78dcfbf016f14c3f1ab
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
c290d8dff6172d5fde7b9dfd74d3a20785dab246 29-Jul-2014 vandwalle <vandwalle@google.com> fix handling DHCP status

Change-Id: Ib4dfc9a1f84d6faaaf71adf63c8e2457e95646fd
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
ede507649471f1113e9e1919812115ca5a6bc0c8 29-Jul-2014 vandwalle <vandwalle@google.com> add logs and fix compareWifiConfigurationsWithScorer

Change-Id: I7eeb489b89519bd79d7e3df0fe3ae400debfe566
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
6b700edd56b6be91750e01c3a06032b23ac6238a 28-Jul-2014 vandwalle <vandwalle@google.com> Merge "introduce WifiConnectionstatistics" into lmp-dev
c298087de50ea56c31a4ade7ee1e83b313bb63c7 26-Jul-2014 vandwalle <vandwalle@google.com> introduce WifiConnectionstatistics

This CL is dependent on I51fbbf062feb22c5f16b438675519064cc43e160

Change-Id: I10584a447fecd977df3eefd8e2cc028bd26ec0e3
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
02a1f98f2cecb8ae2d466d6f9fab06b473f970dd 26-Jul-2014 Vinit Deshpande <vinitd@google.com> Enable RTT End-to-end

This change includes various fixes to first RTT implementation and
enables RTT APIs end-to-end. Fixes include proper marshalling of
objects across API and service and JNI fixes.

This change also includes fix for another WifiNative bug that causes
crash on startup.

Bug: 15841411


Change-Id: Ie4ba1ffc6c5b42593e931438b3f03e201ff6be71
om/android/server/wifi/RttService.java
om/android/server/wifi/WifiNative.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiStateMachine.java
2f3b6d4a82bfb828ba7ce5f7cf4e54ff57821888 29-Jul-2014 vandwalle <vandwalle@google.com> treat all dhcp completion without provisioning as errors

Change-Id: I4f27e166491006a3432e73a490653c6252fbb95d
om/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
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNetworkScoreCache.java
om/android/server/wifi/WifiStateMachine.java
6751767bfe5d3a82c594e7abba77b27b0aecb28d 18-Jul-2014 Sreeram Ramachandran <sreeram@google.com> Fix WiFi-Direct.

Send explicit commands to netd to add routes for the p2p interface. This already
happens via the tetherInterface() command when we are the group owner, so the
new command is used only when we are not a group owner.

Bug: 15413694

Change-Id: I36effc438d5ac193a77174493bf196cb68a5b97a
om/android/server/wifi/p2p/WifiP2pServiceImpl.java
f01a9c36967a56d0d042e63984c2c17d978d50e3 22-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Clean up Verifying state so we don't churn." into lmp-dev
5a5dc2c0e256ec34e75bb5ec92c4726f9bbc918a 21-Jul-2014 vandwalle <vandwalle@google.com> Merge "a few additional logs and code standard rules" 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
om/android/server/wifi/WifiStateMachine.java
931338d1533d1bd11ba0e5aebb4e4b7b2c8ab056 18-Jul-2014 vandwalle <vandwalle@google.com> a few additional logs and code standard rules

Change-Id: I932e895fefd7b6c9d8ad58ef99312c980643f2d2
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
0821ef3917e8305ceb58c8b9c6f7bc4c6d35252b 18-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Properly quote WPA enterprise config fields." into lmp-dev
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
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
3249e2d02cd39f6e2fee093d6d8f4833a51001d5 15-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Properly quote WPA enterprise config fields.

When filling in WifiConfiguration variables based on supplicant
state, properly quote WPA enterprise keys that need to be quoted.
Otherwise, when we attempt to set these config keys, we end up
sending commands ike "SET_NETWORK 4 identity foo", which are
invalid because "foo" needs to be quoted.

The list of fields that need to be quoted was based on the code
in WifiEnterpriseConfig.java.

Bug: 15870625
Change-Id: Icf06fbaa133ac5d195791fa4cfbce5d7d1e610bf
om/android/server/wifi/WifiConfigStore.java
baca1d162eb96c4788f25d7cceb1e77c236d231f 17-Jul-2014 Chelsea Derrick <chelsead@google.com> Merge "Broadcast wifi credential change from WifiStateMachine. [DO NOT MERGE]" into lmp-dev
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)
om/android/server/wifi/WifiStateMachine.java
149d88f0dd42be76c573ac6beef6c25434698a0e 17-Jul-2014 Vinit Deshpande <vinitd@google.com> Merge "Introduce RTT Manager" into lmp-dev
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)
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
143657392bf0702a155fe688171a5abbf4c86570 01-Jul-2014 Vinit Deshpande <vinitd@google.com> Introduce RTT Manager

Change-Id: Ic9a16d587897b272f85cdb2b8c52b51bca060d18
om/android/server/wifi/RttService.java
om/android/server/wifi/WifiNative.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
om/android/server/wifi/WifiStateMachine.java
94edde8d382517403591bad66040cea8b00d465e 12-Jul-2014 vandwalle <vandwalle@google.com> Merge "fix null pointer dereference in log message Bug:16211167"
3a2a3d226881cce8a4e511302231d843b0def303 12-Jul-2014 vandwalle <vandwalle@google.com> fix null pointer dereference in log message
Bug:16211167

Change-Id: I1d9092b73cc7015535e0f1503364f6c592fb08c1
om/android/server/wifi/WifiAutoJoinController.java
002ea67f42b0f69a8c9fa4719391f9476567b762 11-Jul-2014 Sky Faber <skyf@google.com> Disallow forget/remove network for secondary users.

Change-Id: I07be23c26f45a77f5998f200bc9682dedbfa7916
om/android/server/wifi/WifiServiceImpl.java
1ecb0083490436303cdb89bc4c46b6743ea0afa8 10-Jul-2014 Sky Faber <skyf@google.com> Re-disable scan for background users.
Temporarily allow FORGET_NETWORK as secondary user.

Bug: 16190728
Bug: 15437477
Change-Id: Ib4241421bcb9d15f6aab30099f4f36aeb9dfcf72
om/android/server/wifi/WifiServiceImpl.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
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
12836d34cc6c4497c1fa5adbb956684ecec7578e 27-Jun-2014 Vinit Deshpande <vinitd@google.com> Lower minimum scanning period in WifiScanner

This change also fixes reporting errors - or rather non-reporting
of errors when starting a scan fails in the driver/firmware.

Bug: 15697516

Change-Id: I4af8200a23c2b61b2505424a3832ca47d390fd80
om/android/server/wifi/WifiScanningServiceImpl.java
9c1d6f995555aaaee60648419bc84921f26b1374 10-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Refactor wifi p2p's startDhcpServer function"
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
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
c35d728a15e9270f5642ef79f5245c89d749285f 03-Jul-2014 Sky Faber <skyf@google.com> Enable ability for secondary users to scan for networks, but not forget.

Bug: 15437477
Bug: 14676589
Change-Id: I3f1956265f4877b8c3cba138628b7393c393d175
om/android/server/wifi/WifiServiceImpl.java
c13bd2d66aee1fded082c8ce18e113fcec03cba1 03-Jul-2014 roger.chang <roger.chang@mediatek.com> Hotspot 2.0 - connect R1 used API to stateMachine(1/2)

Change-Id: Id9303af3edb24e858bb2782088cd09eb03d30f72
om/android/server/wifi/passpoint/WifiPasspointServiceImpl.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
232062d1f830937cf635597698cafe17271f4f9f 01-Jul-2014 roger.chang <roger.chang@mediatek.com> Hotsopt 2.0 - code fine tune(1)

- fix AAA trust root empty create credential fail

Change-Id: I1b3df5189de1d6c222661609bc6a9b21be13a076
om/android/server/wifi/passpoint/WifiPasspointCertificate.java
om/android/server/wifi/passpoint/WifiPasspointHttpClient.java
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
5039609c4772f26731fbf260398e2dba5d815902 30-Jun-2014 roger.chang <roger.chang@mediatek.com> Hotspot 2.0 - random port number

Change-Id: I70178590306ddd6fe79efbee8065919ec57571cd
om/android/server/wifi/passpoint/WifiPasspointStateMachine.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
om/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
om/android/server/wifi/WifiStateMachine.java
b04dffecf71a3665b2f143c577ec2fbbd5076cdf 02-Jul-2014 Julia Reynolds <juliacr@google.com> Merge "Apply DISALLOW_CONFIG_TETHERING to wireless access points."
13cddb5337418359eb5f9bebd0504fbc5c47fc41 01-Jul-2014 Julia Reynolds <juliacr@google.com> Apply DISALLOW_CONFIG_TETHERING to wireless access points.

Bug: 15852213
Change-Id: I1f1adb8762bf7b694aa92f4b0a393d8e06c610bf
om/android/server/wifi/WifiServiceImpl.java
2c141fc79e1e66c5b5f7dd7307ad7cb8d1e9aaac 02-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Simplify the network transition wakelock."
96d15e49bb2d9f22b307b4c9cafd5f51b87667a1 01-Jul-2014 Yuhao Zheng <yuhaozheng@google.com> Add two Passpoint fields to WifiConfiguration

We need two new fields in WifiConfiguration for Hotspot 2.0:
requirePMF & updateIdentifier

Change-Id: I46e5753d50423828f2aa531d469b49a88850e055
om/android/server/wifi/WifiConfigStore.java
10206e44bff4f2844ff318e8be1890b08197a9ba 20-Jun-2014 roger.chang <roger.chang@mediatek.com> Hotspot 2.0 fix launch browser method

Change-Id: I7a1f668c6ddd7e2f0b0498a35dc00954d39aa0d9
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
b57df70bdf17ba45ef4d18b11414cb24dcbe1fb9 28-Jun-2014 vandwalle <vandwalle@google.com> clean up the connect/disconnect procedure

Change-Id: Iba87591e790106b882d465dbba3ddac120f044d9
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
d31e487847b954a9e763c5dd72adbf5efd590814 26-Jun-2014 vandwalle <vandwalle@google.com> dont try to set an obfuscated password into wpa_supplicant

Bug: 15870625

Change-Id: I7d4b15cbd5d9ba6afefafe16f5ba8c0a8510cff3
om/android/server/wifi/WifiConfigStore.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
om/android/server/wifi/WifiStateMachine.java
a2903b7c6fc2419d48fd9976fa24852370653c4a 26-Jun-2014 vandwalle <vandwalle@google.com> fix a merge issue

Change-Id: Ic1e9bab8ec6cf4b4525d2815b29db8e617960504
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
bfd24ffeada0cfc198befdbdc7139c84a9095557 26-Jun-2014 Andres Morales <anmorales@google.com> Merge "piping commands for handover from supplicant"
5c08cc119b92af69997af194cc8b6d0111e37d31 07-Feb-2014 Andres Morales <anmorales@google.com> piping commands for handover from supplicant

supplicant exposes methods to retrieve handover
protocol messages. need to pipe these up to NfcService.

Change-Id: I2696ed4b0ccbaa47a75a303315f554965c5c9dd4
om/android/server/wifi/WifiNative.java
om/android/server/wifi/p2p/WifiP2pServiceImpl.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
om/android/server/wifi/StateChangeResult.java
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
8c2ff3f4bfa8d5a1f8c9dd6e74aa9a404452d85d 23-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Refactor wifi p2p's startDhcpServer function

Add getTetheredDhcpRanges() interface and call it before calling
mNwService.startTethering to update dhcp ranges. This will allow
p2p apps to run well concurently with other tethering apps.

Manual import of AOSP change 81546 by jianzheng.zhou@freescale.com

Change-Id: Iebc62f95bdcedde80e2c1d3e9580d3f625c3b50b
om/android/server/wifi/p2p/WifiP2pServiceImpl.java
51991e784c605a7432a90c9e9a91b080fb106197 20-Jun-2014 Dianne Hackborn <hackbod@google.com> Add tracking of some wifi stats to battery stats.

Change-Id: I50cbd480b8c3ddc4cc8ccbe78b1fe6de98efd9e6
om/android/server/wifi/SupplicantStateTracker.java
om/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
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
f16e4e5a57160b4355b53d4b91f9097d370546c6 12-Jun-2014 Yuhao Zheng <yuhaozheng@google.com> Passpoint OSU bug fix + API rename

- OSU bug fix
- API rename
- Soap bug fix

https://partner-android-review.googlesource.com/#/c/170602/
https://partner-android-review.googlesource.com/#/c/170809/
om/android/server/wifi/passpoint/WifiPasspointCertificate.java
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
1671350805f87a3cd05add0097690e97966213d8 17-Jun-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix p2pGetDeviceAddress to work without p2p0 interface"
6bf16b3c45397bf8453b8b47438a77785acc5d9f 17-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Read IPv6 routes from netlink as well."
4bc47f83a393766db792e1bf2fc81087ded00c3b 17-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Move netlink updates to a new NetlinkTracker class"
ec474c010a79c12d24c34e79383b328cc53d5ece 13-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Read IPv6 routes from netlink as well.

Bug: 9180552
Change-Id: I926e1ea0ff59a258da2472d8a1d8b4c80727e87e
om/android/server/wifi/WifiStateMachine.java
36286b23c4e30f042ed753a670c2b462ebf13a48 17-Jun-2014 Vinit Deshpande <vinitd@google.com> Fix p2pGetDeviceAddress to work without p2p0 interface

Since there are devices that don't have this interface, we can't risk
failing P2p service initialization for it. This change works around
that problem by issuing STATUS request without targetting it to any
interface. Supplicant seems to be providing the correct MAC address
anyway.

Bug: 10364703
Change-Id: I2318ecc294f665dd4ea5c912e89db73d49b81a7f
om/android/server/wifi/WifiNative.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
om/android/server/wifi/WifiStateMachine.java
faaededaddcc210b9f1710d2ce465cf1d2927332 09-Jun-2014 roger.chang <roger.chang@mediatek.com> Hotspot 2.0 add networkSelection fix bugs

Change-Id: I08479d06475e01d88b6ba1ff6667b5d1d5a63bdb
om/android/server/wifi/passpoint/WifiPasspointStateMachine.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/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.
2895934d7762d3ba65daeeb8317f4b2081f5441a 12-Jun-2014 Yuhao Zheng <yuhaozheng@google.com> Merge "Wifi passpoint - linking APIs"
3df4c1f725919d64f0703915da39c61f728626ef 10-Jun-2014 Vinit Deshpande <vinitd@google.com> Support scanning using band specification instead of channels

This change enables scanning with band specification instead of channels,
this should ease app development.

Also includes a bug fix for parcel serialization/deserialization.

Change-Id: Idbffce4805b403bf8fe1efae999cb828e09c2420
om/android/server/wifi/WifiScanningServiceImpl.java
7e13ab5165291aa3685eeeca762a2470e93a10bd 04-Jun-2014 Vinit Deshpande <vinitd@google.com> Fix an NPE in WifiScanner while reporting description

Change-Id: Ie9d12e19e0b8ca98c6ec4c6fa5222a2f28983e64
om/android/server/wifi/WifiScanningServiceImpl.java
daac2ad767f6047409987bb22812ab5f295e54df 02-Jun-2014 Vinit Deshpande <vinitd@google.com> Various WifiScanner fixes

Bug: 14960689 - WifiScanner does not clean up well
Bug: 15314698 - Scan stop working after multiple start/stops
Bug: 15017916 - null exception when Wifi is not enabled

Change-Id: I70712f3c032580341470f70b8be376e0098ec6ac
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.java
df84f5da0840f0dddfd7ffceb15687a5687890a7 12-Jun-2014 vandwalle <vandwalle@google.com> Merge "auto-roam initial implementation"
4dc6f3a322806b25d50039614cde1b94fe91ab17 11-Jun-2014 vandwalle <vandwalle@google.com> auto-roam initial implementation

Bug:15553951

Change-Id: I04ebca4a4f5a9b408893ce1e9874f08aeff50ba2
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/WifiTrafficPoller.java
bbd06dfb417f205b3d80225a3e713fe9361c19cd 04-Jun-2014 Yuhao Zheng <yuhaozheng@google.com> Wifi passpoint - linking APIs

cherry-pick from kwd:

7801fe Wifi Passpoint - linking credential match API
https://partner-android-review.googlesource.com/#/c/59246/

6cb965 Wifi Passpoint - linking OSU API
https://partner-android-review.googlesource.com/#/c/59333/
om/android/server/wifi/passpoint/WifiPasspointClient.java
om/android/server/wifi/passpoint/WifiPasspointDmClient.java
om/android/server/wifi/passpoint/WifiPasspointServiceImpl.java
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.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
om/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)
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
211737ce4cabcab0552e3453ac6e3c5a4748c158 11-Jun-2014 Sreeram Ramachandran <sreeram@google.com> Merge "Use the updated RouteInfo API."
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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
82d1c6aeadfa24797b314ae2b2a55717df064b57 08-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Apply LinkProperties API change.

bug:15142362
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
d05472bb94ecc9b870463a843313f2d852bcf5b8 04-Jun-2014 Sreeram Ramachandran <sreeram@google.com> Use the updated RouteInfo API.

Bug: 15142362
Bug: 13885501
Change-Id: I97f1625e037c889b0cddd3db418c42c1d48b26b9
om/android/server/wifi/WifiServiceImpl.java
a16ef45ba07b7704d84a54f8d00a40c7da7696a3 03-Jun-2014 roger.chang <roger.chang@mediatek.com> Hotspot 2.0 add networkSelection(2)

Add policy inspection, it includes
- MinBackhaulThreshold
- SPExclusionList
- RequiredProtoProtTuple
- MaximumBSSLoadValue

Change-Id: Id9525ff1d5487b027295bf9c9136b0bd22121a8e
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
cf5b8eb8a08c45bd4a82f1f4bb789c8a1b08744f 04-Jun-2014 vandwalle <vandwalle@google.com> resolved conflicts for merge of dfcb187e to master

Change-Id: I740b98b89fb25599a353abbfe919c6e5a0f1c098
83c7dd3d754551c9cf3bd76a50c45ef62a4dab75 31-May-2014 puff wen <puff.wen@mediatek.com> Add class CellularNetwork for plmn parsing and retrieve mcc and mnc.

cherry-picking 2 CLs:
https://partner-android-review.googlesource.com/#/c/58542/
https://partner-android-review.googlesource.com/#/c/59079/

Change-Id: I9e08e4edbf8d52eeda879a0309cf1eba8a7594ea
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
9e31a73a1218bd611229e672c0c82b4f7775888b 03-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Apply refactored NetworkFactory." into lmp-preview-dev
b565662ea98a244c8321afa889a07a1bab95f439 01-Jun-2014 vandwalle <vandwalle@google.com> handle removal of self added configurations

Change-Id: I53122e704d8ef682c6c326b0588649ed9b7ba121
(cherry picked from commit 0e3c67280365eb82fc15362a3b98a2c978bde766)
om/android/server/wifi/WifiConfigStore.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)
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/WifiTrafficPoller.java
ae84f13d7b7f34ddbf5ac380d98e8d19b3541f6c 29-May-2014 vandwalle <vandwalle@google.com> dont send SSIDs to herrevad if it cannot process them

Bug:15306345

Change-Id: I149870631b875e10ad899e81aaaf65e5f0a1eb7a
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiNative.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
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/passpoint/WifiPasspointService.java
om/android/server/wifi/passpoint/WifiPasspointServiceImpl.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
dfcb187e5608e125fe161d70226c300bd7b781ad 24-May-2014 vandwalle <vandwalle@google.com> logs improvements, fix reading back networkHistory file

Change-Id: Iec4b11a3e0d8820b558abea6cc068a905199896d
om/android/server/wifi/SupplicantStateTracker.java
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/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
om/android/server/wifi/WifiStateMachine.java
0557098735094d9a6d1a1fa3f09bc5ea95c09554 02-Jun-2014 Yuhao Zheng <yuhaozheng@google.com> Merge "Hotspot 2.0 add networkSelection(1)"
950365f5e3205a7bdd1e11ff292e126a07e5a353 02-Jun-2014 vandwalle <vandwalle@google.com> Merge "handle removal of self added configurations"
ff6d33bb0e882869ed683887c167ad9445bbfa27 02-Jun-2014 Vinit Deshpande <vinitd@google.com> Merge "DO NOT MERGE: Accommodating API Review feedback for WifiScanner" into lmp-preview-dev
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
0e3c67280365eb82fc15362a3b98a2c978bde766 01-Jun-2014 vandwalle <vandwalle@google.com> handle removal of self added configurations

Change-Id: I53122e704d8ef682c6c326b0588649ed9b7ba121
om/android/server/wifi/WifiConfigStore.java
fede6134980f4682059f1278eaa0f7629cf532ff 29-May-2014 roger.chang <roger.chang@mediatek.com> Hotspot 2.0 add networkSelection(1)

To generate WifiPasspointPolicy list for AutoJoiner making
network selection easily.
This policy list match all availabled APs information
(Realm/FQDN/HOME_OI...etc) of a device position.

Change-Id: Iad7ba7d69cdc73273e5828e26912a0fe67f2a8ed
om/android/server/wifi/passpoint/WifiPasspointClient.java
om/android/server/wifi/passpoint/WifiPasspointDmClient.java
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
c3fdd0cb9d67541a3ff83b3643d1af769cf19396 28-May-2014 Yuhao Zheng <yuhaozheng@google.com> More ANQP parsing

Change-Id: Iddc51c1f01201b19a51981b45443cd52ce432c88
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
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
om/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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/WifiTrafficPoller.java
b569a63b0506e6c09875828fa4b005f69f7440e1 31-May-2014 Yuhao Zheng <yuhaozheng@google.com> Merge "Hotspot 2.0 framework - Soap client & certificate clean up"
ac216a3c000a70af47df0e7370b05e186ad1bf2a 31-May-2014 Vinit Deshpande <vinitd@google.com> DO NOT MERGE: Accommodating API Review feedback for WifiScanner

Main changes include

- hiding the API for LMP preview
- moved information elements to ScanResult object
- removed objects from events
- changed API names to be more consistent

cherry-picked from partner:klp-wireless-dev
SHA1 c43626f8e71455af01d8cc1131746d2a53fa688f

Bug: 15191968
Change-Id: Ibe3907366aee85f7d56021a536ae0f9f9fb28b38
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.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
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
8d8b01e14f29a75407b1c6c8db2fd5540db7fbe4 27-May-2014 Ryan Yu <ryan.yu@mediatek.com> Hotspot 2.0 framework - Soap client & certificate clean up

Change-Id: I04e0580644a3ed7a06038806f4da1ed29f4caad5
om/android/server/wifi/passpoint/WifiPasspointCertificate.java
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
763dbca691cad5f83bafbe439146d97b8631df98 30-May-2014 Vinit Deshpande <vinitd@google.com> Merge "Accomoditing API Review feedback for WifiScanner"
476bee2fef10d060c25c35858b1f7f60803d9f49 29-May-2014 Vinit Deshpande <vinitd@google.com> Accomoditing API Review feedback for WifiScanner

Main changes include

- hiding the API for LMP preview
- moved information elements to ScanResult object
- removed objects from events
- changed API names to be more consistent

cherry-picked from partner:klp-wireless-dev
SHA1 c43626f8e71455af01d8cc1131746d2a53fa688f

Bug: 15191968
Change-Id: Ibe3907366aee85f7d56021a536ae0f9f9fb28b38
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.java
ac38b54fb67b308fd88c47d0c6ef1ace5ff7595a 30-May-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix the stopping of scan after Wifi connection"
3aaac376c911c46074525904df2b6e9fd8d36a60 30-May-2014 Yuhao Zheng <yuhaozheng@google.com> Build fix

Change-Id: I5e07d9fab451470de2a16fd478676993d9110958
om/android/server/wifi/passpoint/WifiPasspointService.java
76a0e5f47c189bb4b529342f0ef58a5499ae9bf1 16-May-2014 Roger Chang <roger.chang@mediatek.com> Hotspot 2.0 framework - add implementation

Change-Id: Ib3534ff24af333eae11e914ad9d09716a834c99f
om/android/server/wifi/passpoint/DmClient.java
om/android/server/wifi/passpoint/PasspointClient.java
om/android/server/wifi/passpoint/PasspointService.java
om/android/server/wifi/passpoint/PasspointServiceImpl.java
om/android/server/wifi/passpoint/PasspointStateMachine.java
om/android/server/wifi/passpoint/SoapClient.java
om/android/server/wifi/passpoint/WifiPasspointCertificate.java
om/android/server/wifi/passpoint/WifiPasspointCertificateHelper.java
om/android/server/wifi/passpoint/WifiPasspointClient.java
om/android/server/wifi/passpoint/WifiPasspointDmClient.java
om/android/server/wifi/passpoint/WifiPasspointDmTreeHelper.java
om/android/server/wifi/passpoint/WifiPasspointHttpClient.java
om/android/server/wifi/passpoint/WifiPasspointService.java
om/android/server/wifi/passpoint/WifiPasspointServiceImpl.java
om/android/server/wifi/passpoint/WifiPasspointSoapClient.java
om/android/server/wifi/passpoint/WifiPasspointStateMachine.java
om/android/server/wifi/passpoint/WifiTreeHelper.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
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
c152d90b8d0a7d69f9aed5de086f2992ab4c429e 30-May-2014 vandwalle <vandwalle@google.com> Merge "dont send SSIDs to herrevad if it cannot process them"
21bc54cb37a0085b1c909cb4d55ebb12a2facefb 29-May-2014 vandwalle <vandwalle@google.com> dont send SSIDs to herrevad if it cannot process them

Bug:15306345

Change-Id: I149870631b875e10ad899e81aaaf65e5f0a1eb7a
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiNative.java
c6c2b4218d9f15b5de45a002bff7e84a7ebc99e0 29-May-2014 Andres Morales <anmorales@google.com> am f3f4029b: Change permission to acquire NFC config token

* commit 'f3f4029b3ac41da4cc6a1bc22bae47c750a47048':
Change permission to acquire NFC config token
684e5c60b103d5d8e4f5513cc54ec3965ead6e8f 29-May-2014 Pierre Vandwalle <vandwalle@google.com> Merge "Fix system fatal exception due to Invalid WiFi SSID"
1fcf3c6d2b9ed65573e1e7c55fc5a30ebd364c4f 28-May-2014 Yuhao Zheng <yuhaozheng@google.com> Fix system fatal exception due to Invalid WiFi SSID

Change-Id: I88c3573fa06d95b78897aca8be1a9763dd0b4246
om/android/server/wifi/WifiAutoJoinController.java
f3f4029b3ac41da4cc6a1bc22bae47c750a47048 13-May-2014 Andres Morales <anmorales@google.com> Change permission to acquire NFC config token

The supplicant provides the configuration token
in the standard format for writing to an NFC
tag. Once this token is written to a tag,
tapping that tag will ask the user to confirm
and then connect them to the network referenced
on the tag.

Since this token contains the network
password, it should be accessible only through
the internal permission.

It is implemented via a "sync" call since it
does not depend on the current Wi-Fi state.
Let me know if you see a reason to add it into
the state machine flow and I will do so.

Change-Id: Id1b4624651d0d82cb48bf83fb40ea0cfe7569832
om/android/server/wifi/WifiServiceImpl.java
abde872adced15dfb6781fb71959453d963326db 28-May-2014 Yuhao Zheng <yuhaozheng@google.com> WifiAutoJoinController verbose log fix

Change-Id: I8113292a43bb7092747434825301109ef52a1c7b
om/android/server/wifi/WifiAutoJoinController.java
27f07726cbab1f9f3ccf33cfb7c786f9e5895d2b 28-May-2014 Dave Langemak <dlangemak@google.com> Merge "DO NOT MERGE: lose the STOP_DRIVER command" into lmp-preview-dev
6f1f2a48fe6e88179062760b1075af31ab46822b 23-May-2014 vandwalle <vandwalle@google.com> DO NOT MERGE: lose the STOP_DRIVER command

Change-Id: I8e1ff28d5b79ef53778e0b4d083156cf748a4886
(cherry picked from commit 4a21193ee63c72919e7ead45e1de0643c7abe554)
om/android/server/wifi/WifiStateMachine.java
704a34a19d873cc806ecca44226f811e58cb870d 28-May-2014 Dave Langemak <dlangemak@google.com> Merge "DO NOT MERGE: revert change preventing NULL SSID in a WifiConfiguration" into lmp-preview-dev
89dca79510af1fbe58c831e78edeccdb7db6e4cc 22-May-2014 vandwalle <vandwalle@google.com> DO NOT MERGE: revert change preventing NULL SSID in a WifiConfiguration

Change-Id: I131c429f4897c359004d6eae09f93550b8eaf0b1
(cherry picked from commit e86c962bb99a8b126ed64ddcc6b112161549e26d)
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
627b3e071eb4b495cf91067f12eb47371fcdfe5b 22-May-2014 vandwalle <vandwalle@google.com> DO NOT MERGE :dont try autojoining networks that are too far

Change-Id: I96a0b7283819bbbd312b0838d0a18a9622d15940
(cherry picked from commit 8c9088d11880553458f09377cc60d6eb7e66747b)
om/android/server/wifi/WifiAutoJoinController.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)
om/android/server/wifi/WifiStateMachine.java
0888ce6f90bdaeee799dd8361ea4781e23a33b87 24-May-2014 vandwalle <vandwalle@google.com> logs improvements, fix reading back networkHistory file

Change-Id: Iec4b11a3e0d8820b558abea6cc068a905199896d
om/android/server/wifi/SupplicantStateTracker.java
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
f6c6d3ccda924ad5f11883bc346b4eb4ada1bc06 24-May-2014 Jeff Davidson <jpd@google.com> Use a consistent network key format in wifi score cache.

This doesn't handle SSID which can't be encoded as UTF-8, but will
work for most SSIDs.

Bug: 15188549
Change-Id: If12e83c4d43ed1b5d686ec1dfb9c1980bb0d4697
om/android/server/wifi/WifiNetworkScoreCache.java
4a21193ee63c72919e7ead45e1de0643c7abe554 23-May-2014 vandwalle <vandwalle@google.com> lose the STOP_DRIVER command

Change-Id: I8e1ff28d5b79ef53778e0b4d083156cf748a4886
om/android/server/wifi/WifiStateMachine.java
ff25461e44187208f06432126ac6e7bd1d3862ea 22-May-2014 vandwalle <vandwalle@google.com> Merge "revert change preventing NULL SSID in a WifiConfiguration"
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
om/android/server/wifi/WifiStateMachine.java
e86c962bb99a8b126ed64ddcc6b112161549e26d 22-May-2014 vandwalle <vandwalle@google.com> revert change preventing NULL SSID in a WifiConfiguration

Change-Id: I131c429f4897c359004d6eae09f93550b8eaf0b1
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
f5781f4b916bef6428484ea60f808dc3653ea21f 22-May-2014 vandwalle <vandwalle@google.com> Merge "dont try autojoining networks that are too far"
2390785d4104a6c20459c5e7143c1a7a5bb2481f 22-May-2014 Jason Monk <jmonk@google.com> Merge "No longer require CONNECTIVITY_INTERNAL to set PAC"
8c9088d11880553458f09377cc60d6eb7e66747b 22-May-2014 vandwalle <vandwalle@google.com> dont try autojoining networks that are too far

Change-Id: I96a0b7283819bbbd312b0838d0a18a9622d15940
om/android/server/wifi/WifiAutoJoinController.java
4bcdcfd19e3eaaacc54d8ec65149c6d7faa181af 22-May-2014 vandwalle <vandwalle@google.com> remember last failure and reenable networks disabled by supplicant

bug: 14834820

Change-Id: I3d9725ac7482cd8490b52239135a98dfe0f124a2
om/android/server/wifi/WifiConfigStore.java
afbd80435faf3d3eda6e05fba3573a0ac4e762b6 22-May-2014 vandwalle <vandwalle@google.com> Merge "make verbose logging a wifimanager hidden API"
ed9938883ae2dade81c8be6cd6ceaef3febd5239 22-May-2014 vandwalle <vandwalle@google.com> make verbose logging a wifimanager hidden API

bug: 151386707

Change-Id: Ide885ce96621fe4bab6abf10291bc8441eecad4a
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
4a55fdc530854a4a0c1602d6dbe3e0c8519b1166 22-May-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Properly check return value of readIpAndProxyConfigurations"
5f128f9e971b7120a776f8fafde3a0db889f847d 22-May-2014 Lorenzo Colitti <lorenzo@google.com> Properly check return value of readIpAndProxyConfigurations

On failure, it returns an empty SparseArray, not null.

Change-Id: I5d24fdcfd24eb92657bdca674b1a417508e5af56
om/android/server/wifi/WifiConfigStore.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
64c98f4afda6c7970c5d563580165a308d5e7c15 20-May-2014 Jason Monk <jmonk@google.com> No longer require CONNECTIVITY_INTERNAL to set PAC

Since we are adding UI to control/monitor this, it does not need
to be guarded by CONNECTIVITY_INTERNAL anymore.

Bug: 14885470
Change-Id: I01fcc477899e94232e9863d4e46391ad831d249c
om/android/server/wifi/WifiServiceImpl.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>
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
e88f9f737f389bcac0825be2684807525a7eb5d4 21-May-2014 Yuhao Zheng <yuhaozheng@google.com> Merge "Temp fix framework/opt fix for Hotspot 2.0"
d66e62e78523abd1eb40694832d97fee7c91953b 21-May-2014 vandwalle <vandwalle@google.com> Merge "autojoin fix: only link equivalently secure configurations"
d2569dc2b19c401200fd2672acf83cfc35f1eb12 21-May-2014 vandwalle <vandwalle@google.com> autojoin fix: only link equivalently secure configurations

Change-Id: I4f3653af6bc7d641138ca41335e40bf5f6f291e4
om/android/server/wifi/WifiConfigStore.java
2b59efa31731126223b0835de93bce22d7fd8b27 21-May-2014 Yuhao Zheng <yuhaozheng@google.com> Temp fix framework/opt fix for Hotspot 2.0

Will bring in more changes later.

Change-Id: Iaa0279e485bd5422c30edbd9867c110e9bf29044
om/android/server/wifi/passpoint/PasspointServiceImpl.java
om/android/server/wifi/passpoint/PasspointStateMachine.java
117be607246604e875de62aa8cdd99700b77a2b4 20-May-2014 vandwalle <vandwalle@google.com> fix enableNetwork() logic:

should not mark forgotten network as selected

Change-Id: I0ebbc3082228feb482611e0a7b40ee8c18340dee
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
a3425a631c67eaa0af5d2d378f125ba22d99c3d7 21-May-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Move IP config from WifiConfiguration to IpConfiguration."
3ecf5a032e94b6538a56f94a5b33e50cbc464007 19-Mar-2014 Jaewan Kim <jaewan@google.com> Move IP config from WifiConfiguration to IpConfiguration.

Change-Id: I5d1189682b13f1088848809604690648d8d9ecca
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
9ae6b45c038fa74a9e7285ef4834551dd93da332 20-May-2014 Yuhao Zheng <yuhaozheng@google.com> Fix a boot failure due to Wifi / Wifi Passpoint

Bug: 15060373
Change-Id: I8341a39c849d4135a0549c481cb3327cfca14567
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/passpoint/PasspointStateMachine.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
om/android/server/wifi/WifiStateMachine.java
20104a55edf9fafa332df1a1ea11148a45c902ad 20-May-2014 vandwalle <vandwalle@google.com> Merge "fix for autojoin controller not requesting steen scores"
710b8c148ddbfd509e0e69af8d5dbb6fc8486a0c 20-May-2014 Vinit Deshpande <vinitd@google.com> Implement onPeriodChanged and multiple scans of same channels

This change fixes multiple scans of same channels; and it generates
onPeriodChanged event.

cherry-picked from partner:klp-wireless-dev
SHA1 f5a28231298b2919eb14151997b811d1d10b73e8

Bug: 15000051
Change-Id: I06a4ecc9d45eda4984de50b97b39f623dd0b26d1
om/android/server/wifi/WifiScanningServiceImpl.java
0c8b99a3b78e458a5617cc449e2efe69c5bdd531 16-May-2014 vandwalle <vandwalle@google.com> fix for autojoin controller not requesting steen scores

Change-Id: I2546241c8b1eefe963f840c4a98a3f817694039c
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNetworkScoreCache.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
om/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
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
f1daf9342b66bf134d13fa0a42e929a008f1ca62 14-May-2014 Vinit Deshapnde <vinitd@google.com> Enable more features on WifiScanner

This change enables full scan results and allows overriding wifichange
configuration. There are also minor API changes take relavent parameters.

Change-Id: I6ebcb49f64bd8bc9e5e0c88c3b56eb634783524e
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningServiceImpl.java
741953368eafa247f2820496aaa521bc0e86e9e1 15-May-2014 Navtej Singh Mann <navtejsingh@google.com> Fix failed to start scan again without stop

Fix failed to start scan again without stop

Bug: 14991849

Change-Id: I86fb96912197c1a1926fc99504a2210e2df1898d
om/android/server/wifi/WifiNative.java
5d30d5c2e0eec4db2303da3f225f52da748e2060 12-May-2014 Yuhao Zheng <yuhaozheng@google.com> Hotspot 2.0 framework support -- more functionalities

- WifiMonitor handles more HS20 events
- Passpoint stack parses ANQP results

Bug: 5485670
Change-Id: I5f8e7c80f8024379fe7a6c4394f1faae2040cfba
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/passpoint/PasspointStateMachine.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
om/android/server/wifi/WifiConfigStore.java
om/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
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/hotspot/WifiHotspotService.java
om/android/server/wifi/hotspot/WifiHotspotServiceImpl.java
om/android/server/wifi/passpoint/DmClient.java
om/android/server/wifi/passpoint/PasspointClient.java
om/android/server/wifi/passpoint/PasspointService.java
om/android/server/wifi/passpoint/PasspointServiceImpl.java
om/android/server/wifi/passpoint/PasspointStateMachine.java
om/android/server/wifi/passpoint/SoapClient.java
om/android/server/wifi/passpoint/WifiTreeHelper.java
3137b27bbbaaf87267dea3bf95d1c027931b0b6a 07-May-2014 Navtej Singh Mann <navtejsingh@google.com> Fixed connection to AP with unicode emoji SSID

Fix for connection problem to wifi AP have
SSID of unicode emoji

Bug: 11690983

Change-Id: Icc6de6d49bbf42a1c26ae85bfee343a860ab3fb8
om/android/server/wifi/WifiConfigStore.java
569b093c4afd30787308032c8259af2680a2874f 10-Apr-2014 Navtej Singh Mann <navtejsingh@google.com> Fixed bypass of ConnectivityInternal permission

Removed public function 'getWifiStateMachineMessenger' of
WifiManager to fix bypass of ConnectivityInternal permission
by application, which is security concern

Bug: 13749822

Change-Id: I3ae73e33b77ee8ae0133ca9dc8cc03c504f09e40
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiWatchdogStateMachine.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
ecd2b88214b5d214fd1f63a9560caff9058912dd 16-May-2014 vandwalle <vandwalle@google.com> fix for devices using enableNetwork API

Change-Id: Idf886dd01892d3f7ca463a44fd76030ddadcd238
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
2278134a58edb57b7c9ecad6753034605e389501 15-May-2014 vandwalle <vandwalle@google.com> Merge "autojoin is to eager to black list networks due to connection failure"
647207cce53bad5ef911e16278d5a2c910cdab92 15-May-2014 Jeff Davidson <jpd@google.com> Fix package names to match directory structure.

Change-Id: Ia208a4c23fa972b4abf4d9ab17555dec71cbc075
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiParser.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
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiStateMachine.java
3831a926f6762a3b4c398da51cc67e9d81572458 17-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Switching to NetworkAgent API

Change-Id: I8c820a17a6b64b8376930ba85ab507e07ce38d36
om/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
om/android/server/wifi/WifiMonitor.java
om/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
om/android/server/wifi/WifiStateMachine.java
f13817203179f41620514718c8668ae7e418f8af 10-May-2014 Jeff Davidson <jpd@google.com> Add a basic dump() function to WifiNetworkScoreCache.

Will get the current cached set of scan results and dump the current
score for each one depending on the RSSI.

Change-Id: Ic524906aef2bdfe2fa9f9a9e5364c80d028ddfdb
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiNetworkScoreCache.java
952d359198cb1f04c180fc0f795dc316fe97cb5e 08-May-2014 vandwalle <vandwalle@google.com> fix for 14645794 Wifi flakiness triggering multiple crashesin volantis

Change-Id: Id2caa10964bbc02dbeff85ac6193f4be19f7bd39
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiStateMachine.java
d33eac369db516e6fc05ac930e66510e957c12d6 08-May-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix un-intended exposure of P2pStateMachine messenger"
8ab8f170c4b0864b86471ee352271b7d7e12a814 08-May-2014 Vinit Deshpande <vinitd@google.com> Merge changes Ia929b1d5,I8a171201

* changes:
Build fixes for newly imported code from KWD
changes to make halutil more interactive
508198f1ccc45994b418bdc55fdd1d4d2c6e530b 08-May-2014 Vinit Deshapnde <vinitd@google.com> Merge "Initial implementation of WifiScanner"
85b91efd318813370946829e52453810d3fb35cc 08-May-2014 Vinit Deshapnde <vinitd@google.com> Merge "More HAL functionality"
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
om/android/server/wifi/WifiAutoJoinController.java
om/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
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/p2p/WifiP2pServiceImpl.java
50e20834408a3ee55170f8a34dfaeee26e7403dd 08-May-2014 Vinit Deshapnde <vinitd@google.com> Build fixes for newly imported code from KWD

SystemServer works a bit differently in KWD; and using
libnl_2 is discouraged in master.

Change-Id: Ia929b1d500164a05101d41f6fe0ed18af3597fe9
om/android/server/wifi/WifiScanningService.java
e4e3750390bec0a849a9153348b7c21b2cc8b843 05-May-2014 Vinit Deshapnde <vinitd@google.com> Initial implementation of WifiScanner

This change implements basic functionality of WifiScanner. Following
functionality is enabled

1. Scanning - specify a list of channels to scan
2. Significant change detection
3. AP hotlist

Change-Id: I4fbb2cccbb15df21aae7a81f5d9b17fde2bda8c0
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiScanningService.java
om/android/server/wifi/WifiScanningServiceImpl.java
om/android/server/wifi/WifiService.java
7f9a15d554f69311a0db43347d6473a7c4c46e2e 08-May-2014 Vinit Deshapnde <vinitd@google.com> More HAL functionality

This change implements JNI plugs for delivering events to
WifiNative in framework. Also introduces a test utility.

Also has updated Gscan.h which is made up-to-date with the
promised functionatliy.

Change-Id: I12dd6d9f171e01e4b23ce4839b4022acd5e599cb

Conflicts:
service/Android.mk
om/android/server/wifi/WifiNative.java
f22d23092ab37286a5ef9d257d5bb32c421d2669 06-May-2014 vandwalle <vandwalle@google.com> autojoin initial implementation

Change-Id: Iea4e5c0b8e988e410d2f9885ecaf6317d34cc1d1
om/android/server/wifi/SupplicantStateTracker.java
om/android/server/wifi/WifiAutoJoinController.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiNetworkScoreCache.java
om/android/server/wifi/WifiParser.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/WifiTrafficPoller.java
73281a1523e29b9717d0d952de1faf2b52281c7c 07-May-2014 Jason Monk <jmonk@google.com> Revert "Revert "Fix Build""

This reverts commit 439935a9ec391392a1aea323d7f18c328fea2490.

Change-Id: Idb1661d3d34461848f9812d637b173decd6ee9e7
om/android/server/wifi/WifiConfigStore.java
439935a9ec391392a1aea323d7f18c328fea2490 07-May-2014 Jason Monk <jmonk@google.com> Revert "Fix Build"

This reverts commit 09af645cb252b60bd38747df458c6d93dad23e02.

Change-Id: I3122b7e117f022c3edb1bb439b13fe99a074e78d
om/android/server/wifi/WifiConfigStore.java
09af645cb252b60bd38747df458c6d93dad23e02 07-May-2014 Jason Monk <jmonk@google.com> Fix Build

Change-Id: Idb7e11307f10bd9580a5b92182065c3ef237af91
om/android/server/wifi/WifiConfigStore.java
d4d0c9ad1e3289702ec341521b9bd01b52e9c1d8 07-May-2014 Jason Monk <jmonk@google.com> Support renaming of ProxyProperties to ProxyInfo

Change-Id: Ie4ec0e94b901161af68d8979d8b3cfd0e6009798
om/android/server/wifi/WifiConfigStore.java
97a856eb1fda1585316055bd4912f0000deccb52 26-Mar-2014 Yuhao Zheng <yuhaozheng@google.com> Fix incorrect DISABLE_P2P_TIMED_OUT handling

Likely wifi p2p disable timeout doesn't work, due to the inadvertent use of
a wrong counter. Fixed by using the correct counter.

bug: 13653433
Change-Id: I4a49c039d28c4ac742fab0fc99492f6411156b97
om/android/server/wifi/p2p/WifiP2pServiceImpl.java
0e8c82453d5a7f328ac1edc248457581368cd8c6 07-Apr-2014 Jaewan Kim <jaewan@google.com> Merge "Revert "Refactor IpConfiguration from WifiConfiguration""
b872cd1d58e1666a9066b136e28c49ed62f825ed 07-Apr-2014 Jaewan Kim <jaewan@google.com> Revert "Refactor IpConfiguration from WifiConfiguration"

This reverts commit 9790c81b2d0fb2b8c3790e4dbe6dd9fd5b93bd4d.

Change-Id: Idba522f04dd4a6a16e4829f68f70d3cc19016a81
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
c1580601011dad221059c89c8445370c4f5d9727 07-Apr-2014 Jaewan Kim <jaewan@google.com> Merge "Refactor IpConfiguration from WifiConfiguration"
b59f69faf9e3de740bbe1e55cef70e9e22858c2a 02-Apr-2014 Kenny Guy <kennyguy@google.com> Renaming related users to profiles.

Change-Id: Ia3cb7534e34b971b1996c7b81d2d160466962afe
om/android/server/wifi/WifiServiceImpl.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
om/android/server/wifi/WifiStateMachine.java
99b31a89e661626ef8b970abd9de4455fd891299 28-Mar-2014 Yuhao Zheng <yuhaozheng@google.com> Merge "Wifi hotspot service initial hook up"
3c194cb908060978f65ae168ea0ed0606127b422 27-Mar-2014 Vinit Deshapnde <vinitd@google.com> Merge "Explicitly set update_config on supplicant"
3605a4b0e606f331bcebed6ae7629dae527fcf13 25-Mar-2014 Yuhao Zheng <yuhaozheng@google.com> Wifi hotspot service initial hook up

Add a dummy wifi hotspot service for futher development use. This is to
resolve the different between master branch and kwd branch, such that future
development can go into kwd and being auto-merged to master.

bug: 5485670
Change-Id: I96a79dfe47bebd61dfcdb120f3c14028b0ba9bfe
om/android/server/wifi/hotspot/WifiHotspotService.java
om/android/server/wifi/hotspot/WifiHotspotServiceImpl.java
9790c81b2d0fb2b8c3790e4dbe6dd9fd5b93bd4d 19-Mar-2014 Jaewan Kim <jaewan@google.com> Refactor IpConfiguration from WifiConfiguration

Bug: 7606609, Bug: 8687763
Change-Id: Iec5d3237c823c7893fbba3b3209fe2b03a27a583
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiServiceImpl.java
a02919e73b463000769d708fd34ff62b9a866f29 18-Mar-2014 Yuhao Zheng <yuhaozheng@google.com> Fix incorrect tags in WifiP2pService

Looks like a typo, fixed.

Change-Id: Ie8c8d34688a1aa2328c115b3a37033530ff4f841
om/android/server/wifi/p2p/WifiP2pService.java
531869afc345c1a4fb7cd3e8d1b62acdd0963947 11-Mar-2014 Alexandra Gherghina <alexgherghina@google.com> Merge "Modifying wifi service to return the list of wifi networks for related users"
785c09f2ae609a580a620d1a45529881ea958f84 11-Mar-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Debounce wifi country code info"
fd5470391e5342daa38d00b68ccbccfeacbe6d33 10-Mar-2014 Alexandra Gherghina <alexgherghina@google.com> Modifying wifi service to return the list of wifi networks for related users

Change-Id: I66dd2625d2e3e9d135bad28c6209cf243648c7a6
om/android/server/wifi/WifiServiceImpl.java
e1b4e7479a88f987f7add2d5f9df843b16e9156b 10-Mar-2014 Vinit Deshapnde <vinitd@google.com> Merge "Fix Airplane Mode + reboot interaction for Wifi"
fbba898cf24a6969eb36238edd0f9f879029cdbd 10-Mar-2014 Vinit Deshapnde <vinitd@google.com> Merge "Wifi HAL initial implementation"
13494d0692330ed0f91e7f4e03805473773e7807 08-Mar-2014 Vinit Deshapnde <vinitd@google.com> Fix Airplane Mode + reboot interaction for Wifi

This change fixes two problems - first, if you rebooted phone after
turning on Airplane mode, Wifi controller goes to ScanOnly mode which
may end up in Wifi radio transmissions. Secondly, because of this
incorrect state, the state machine doesn't turn on Wifi once Airplane
mode is turned off.

bug: 11409692
Change-Id: I5fc23f6691bc063fda6be734103a5f11db970946
om/android/server/wifi/WifiController.java
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
om/android/server/wifi/WifiServiceImpl.java
om/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
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiStateMachine.java
7ef73dd1b6e43c72b3841723504cd86dc402a134 28-Feb-2014 Vinit Deshapnde <vinitd@google.com> Wifi HAL initial implementation

This change introduces Wifi HAL. It has basic structure that we can expect
most commands and events to follow. Only one command is implemented for
illustration.

Change-Id: I16e4b50f3034214e41ab5d363e2c3f543345609b
om/android/server/wifi/WifiNative.java
64e65668e36bfeb0b634e9a678020ed04434f365 27-Feb-2014 Yuhao Zheng <yuhaozheng@google.com> Merge "Implement new API to scan a given channel set"
9612c46ab647596c88cfc017f7b5e338f0717ce2 26-Feb-2014 Felipe Leme <felipeal@google.com> Merge "Rename fetchRssiAndLinkSpeedNative() into fetchRssiLinkSpeedAndFrequencyNative() and changed it to also set the WiFi frequency. Bug: 12767819"
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
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiServiceImpl.java
om/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
om/android/server/wifi/WifiStateMachine.java
8d4d3c2834917d7725385d31b821ab5a8e35d600 11-Feb-2014 Narayan Kamath <narayan@google.com> Fix build (again).

Change WifiP2pService / WifiService to reflect changes to
the SystemService constructors.

Change-Id: Iad36810c1d3e08bbdca21e76113f9f9dfe79bbae
om/android/server/wifi/WifiService.java
om/android/server/wifi/p2p/WifiP2pService.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
om/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
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiStateMachine.java
1c28bb29cb19367d5e3bdbe6d8558d0fd4b8f33e 17-Jan-2014 Vinit Deshapnde <vinitd@google.com> Fix a race in Wifi service startup

For wifi services to function, we currently require network management
and connectivity service to be created. But those in turn require
wifi service pointers. So to resolve the circular dependency, we create
objects first, and then start them. With the refactoring, I increased
the window between creation and starting which is exposing a bug that
already exists - WifiController starts the moment service is created.

This was hidden before because WifiController's thread wouldn't get far
in the short window that existed before; but now that the window is longer
it is dispatching messages trying to setup set without references to
network management and connectivity service. Hence the NPE.

I am delaying the call to start wifi service to fix this.

Bug: 12527004
Change-Id: Ie5842444988d8e6cbcceff50e4f014d410e36ec1
om/android/server/wifi/WifiServiceImpl.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
om/android/server/wifi/NetworkUpdateResult.java
om/android/server/wifi/README.txt
om/android/server/wifi/StateChangeResult.java
om/android/server/wifi/SupplicantStateTracker.java
om/android/server/wifi/WifiApConfigStore.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiController.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiNotificationController.java
om/android/server/wifi/WifiService.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiSettingsStore.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/WifiTrafficPoller.java
om/android/server/wifi/WifiWatchdogStateMachine.java
om/android/server/wifi/p2p/WifiP2pService.java
om/android/server/wifi/p2p/WifiP2pServiceImpl.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
om/android/server/wifi/NetworkUpdateResult.java
om/android/server/wifi/README.txt
om/android/server/wifi/StateChangeResult.java
om/android/server/wifi/SupplicantStateTracker.java
om/android/server/wifi/WifiApConfigStore.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiController.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiNotificationController.java
om/android/server/wifi/WifiService.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiSettingsStore.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/WifiTrafficPoller.java
om/android/server/wifi/WifiWatchdogStateMachine.java
om/android/server/wifi/p2p/WifiP2pService.java
om/android/server/wifi/p2p/WifiP2pServiceImpl.java
a07c419913bfae2a896fbc29e8f269ee08c4d910 18-Dec-2013 Vinit Deshapnde <vinitd@google.com> Move Wifi services to a new git project

Bug: 12175455
Change-Id: I1fa07e29c6a9aae38d9e334d519a9f2445d15613
om/android/server/wifi/NetworkUpdateResult.java
om/android/server/wifi/README.txt
om/android/server/wifi/StateChangeResult.java
om/android/server/wifi/SupplicantStateTracker.java
om/android/server/wifi/WifiApConfigStore.java
om/android/server/wifi/WifiConfigStore.java
om/android/server/wifi/WifiController.java
om/android/server/wifi/WifiMonitor.java
om/android/server/wifi/WifiNative.java
om/android/server/wifi/WifiNotificationController.java
om/android/server/wifi/WifiService.java
om/android/server/wifi/WifiServiceImpl.java
om/android/server/wifi/WifiSettingsStore.java
om/android/server/wifi/WifiStateMachine.java
om/android/server/wifi/WifiTrafficPoller.java
om/android/server/wifi/WifiWatchdogStateMachine.java
om/android/server/wifi/p2p/WifiP2pService.java
om/android/server/wifi/p2p/WifiP2pServiceImpl.java