summaryrefslogtreecommitdiffstats
path: root/wifi/java/android
Commit message (Collapse)AuthorAgeFilesLines
* aggressively blacklist WifiConfiguration for the purpose of switching networkvandwalle2015-01-231-0/+46
| | | | | | | | | | 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: I332a9cebdc19be2e00b455205d386fcffcb70b29
* add debug logs to confirm network flapping issue is fixedvandwalle2014-12-171-3/+15
| | | | | | Bug:18706288 Change-Id: I59378faafbccfa58639d942c8b8e2e0e815261f4
* make sure wificonfiguration scan cache doesnt grow unboundedvandwalle2014-12-111-0/+36
| | | | | | Bug:18703749 Change-Id: I8e35d602a80b341668d9607db2da3ca6fdb970ae
* add disable Ephemeral Network APIvandwalle2014-12-052-1/+16
| | | | | | Bug:18525241 Change-Id: I954c53c55c39f6c376b2bae3c7ac4d28246a7f5a
* make startScan with worksource specific to location scansvandwalle2014-11-252-0/+18
| | | | Change-Id: Ia09dae3e334ef6fd11f2b468e78ad7c2c3cf55e9
* Fix WPS docs for LABEL methodVinit Deshpande2014-11-181-1/+1
| | | | | | | | | Since we don't support LABEL method in startWps, document it explicitly. Bug: 18298388 Change-Id: I5d4c2475a68f1b41e5fc449c911b7b01b3b82fc4
* dont blacklist wifi config that have had validated internet status in the pastvandwalle2014-11-101-8/+31
| | | | Change-Id: Iadb4e0e1beeb9e582b944e003470815a5a865652
* Fix incorrect doc for WifiInfo#getSSID().Jeff Davidson2014-11-051-1/+1
| | | | | | | This method will never return null. It may return "<unknown ssid>" if no network is currently connected. Change-Id: Iae09a6b2376e47c2d010f8d05750a16361510cca
* Merge "Don't drop WifiConfiguration's ephemeral bit on copy/parcel." into ↵Jeff Davidson2014-10-151-1/+5
|\ | | | | | | lmp-mr1-dev
| * Don't drop WifiConfiguration's ephemeral bit on copy/parcel.Jeff Davidson2014-10-061-1/+5
| | | | | | | | | | Bug: 15892711 Change-Id: I4a027c99634a11d13bb3c8420ba959c201644689
* | adding debug information to bug report for Bug:16751877vandwalle2014-10-073-13/+79
|/ | | | Change-Id: I9d417c20c6b6721933a4eb943c1305845005facf
* add millisecond timestamp to locallogvandwalle2014-10-031-1/+1
| | | | Change-Id: I33d8672efd2747ed3f49dd8d5bcd5f47bf418053
* Revert the configKey generation algorithm to what it was in K.Lorenzo Colitti2014-09-301-12/+9
| | | | | Bug: 17670914 Change-Id: Ibb2ea26ea28a38518caab7d1b45ae535a0eaf661
* handle bssid blacklist in case of dhcp failuresvandwalle2014-09-232-5/+61
| | | | Change-Id: Iba13db478ed69976c37bd4882f59bf0cae2212e6
* Fix documentation for Wifi ScanResult.timestampVinit Deshpande2014-09-191-1/+1
| | | | | Bug: 14997906 Change-Id: Idfcf9ade905c7565cc1d59d15aa4362c1b597b72
* Merge "Allow creating EAP_TLS network without specifying Phase2.None" into ↵Prem Kumar2014-09-151-1/+3
|\ | | | | | | lmp-dev
| * Allow creating EAP_TLS network without specifying Phase2.NoneVinit Deshpande2014-09-131-1/+3
| | | | | | | | | | | | | | | | | | | | Phase2 isn't required for EAP_TLS networks, and it is possible for a developer to miss it. We are requiring it for internal book keeping - so this change just sets Phase2 to 'None' when EAP_TLS is set on the configuration. Bug: 17043082 Change-Id: I5a8e0a3a236d0dfd1295584de55d5b9a1b76b483
* | make wifi cellular params configurablevandwalle2014-09-131-3/+6
|/ | | | Change-Id: Ia2a4ac3e11f2b0c7412f33496a655c5d5297ea0c
* various fixes:vandwalle2014-09-121-25/+85
| | | | | | | | - allow for making use of more aggressive initial autojoin attempt rssi thresholds - create a blacklist due to missing identiy reason - make autojoin parameters configurable Change-Id: I385db83aab1da7918ff6935eb59a209b253d42e6
* make autojoin configurable, clean up BSSID info that may be stake in ↵vandwalle2014-09-101-8/+16
| | | | | | WifiConfiguration Change-Id: I5052f6a76bcd1f980ef558bff54ce1b172319743
* Merge "Secure access to WifiScanner" into lmp-devVinit Deshpande2014-09-101-0/+2
|\
| * Secure access to WifiScannerVinit Deshpande2014-09-081-0/+2
| | | | | | | | | | | | | | | | 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
* | Merge "Implement getAvailableChannels" into lmp-devVinit Deshpande2014-09-092-1/+13
|\ \
| * | Implement getAvailableChannelsVinit Deshpande2014-09-052-1/+13
| |/ | | | | | | | | | | | | | | This API allows finding channels by band, so scanning services can find out which channels to use. Bug: 16652660 Change-Id: I690825333988a336efa3fc8886297e5b8baf8e1d
* | add more info to WifiConfiguration.toString:vandwalle2014-09-071-7/+109
|/ | | | | | | | | | - add the noInternetAccess field - add stats about user triggered wifi state disabling requests - Wifi SSID can change even though we don't loose connection, hence it must be looked at with each Network State Change Bug:17348200 Change-Id: Ic956e11e7d61faf472a7332f84a46a746922455a
* Merge "Add @SystemApi annotations to methods used by GmsCore. -Currently ↵David Christie2014-09-041-0/+3
|\ | | | | | | these methods are called using reflection for location. Bug: 17371392 Change-Id: I6546f5b485415beff69164ba0d526757ee831f69" into lmp-dev
| * Add @SystemApi annotations to methods used by GmsCore.David Christie2014-09-041-0/+3
| | | | | | | | | | | | -Currently these methods are called using reflection for location. Bug: 17371392 Change-Id: I6546f5b485415beff69164ba0d526757ee831f69
* | Address API Council feedback for WifiAdapter/WPS APIsVinit Deshpande2014-08-294-309/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 4. Removed ActionListener from WPS APIs, they now take WpsListener Bug: 16403303 Bug: 17115004 Change-Id: Ia721dd95041acb3e50d16690319e3320fe550ff5
* | fix ScanResult read from parcel, this function was broken and causes wifi ↵vandwalle2014-08-271-0/+1
| | | | | | | | | | | | | | settings to crash Bug: 17293156 Change-Id: I5f7a8141adb21103e98913c9802d8364164eaba7
* | Merge "remove passpoint - DO NOT MERGE" into lmp-devvandwalle2014-08-2613-3710/+0
|\ \
| * | remove passpoint - DO NOT MERGEvandwalle2014-08-2613-3710/+0
| | | | | | | | | | | | | | | This CL is dependent on I3d2a230b0362520b9f1b2bc3792260116971e106 Change-Id: I1a0d655877d9368d833d62e231797af4b2560862
* | | add radio stats to link layervandwalle2014-08-267-3/+235
|/ / | | | | | | | | Bug:15563188 Change-Id: I3d2a230b0362520b9f1b2bc3792260116971e106
* | Merge "Revert "Annotate @SystemApi on some WifiManager methods."" into lmp-devWenchao Tong2014-08-211-5/+0
|\ \
| * | Revert "Annotate @SystemApi on some WifiManager methods."Wenchao Tong2014-08-201-5/+0
| | | | | | | | | | | | | | | | | | This reverts commit 041bcc22bd21f84358e5b2102e3a919bcdd99b81. Bug: 17134034 Change-Id: I1ebcdd9b4c56e5c93fd5667699c8971e8c6e5452
* | | Merge "per bssid blacklist" into lmp-devvandwalle2014-08-211-6/+23
|\ \ \ | |_|/ |/| |
| * | per bssid blacklistvandwalle2014-08-201-6/+23
| | | | | | | | | | | | | | | | | | | | | Bug: 16823537 This CL is dependent on Iff32fae2cd67343e63046d58d75fa1e10d9775d0 Change-Id: Id9411c8097337b37ac1ce1a6ac8b28b4bda31ff3
* | | Merge "Improve documentation of ScanResult and WifiInfo." into lmp-devJeff Davidson2014-08-202-3/+10
|\ \ \ | |/ / |/| |
| * | Improve documentation of ScanResult and WifiInfo.Jeff Davidson2014-08-122-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Valid dBm ranges should *not* be mentioned in the documentation. Manufacturers should be able to produce devices which can detect signal strengths with arbitrary sensitivity rather than being forced to restrict strengths to a certain range. Adds a reference to WifiManager.calculateSignalLevel(), an often-useful method to convert these RSSI values into an absolute signal level that can be displayed to a user as the signal strength. Bug: 13731529 Change-Id: I0aae85a6d8bc48ffddd1927d816a1dfbf5230f7e
* | | Merge "remove passpoint, except ANQP - DO NOT MERGE" into lmp-devvandwalle2014-08-201-10/+0
|\ \ \
| * | | remove passpoint, except ANQP - DO NOT MERGEvandwalle2014-08-191-10/+0
| |/ / | | | | | | | | | | | | This CL is dependend on Ic3ae7269f0ca11cec6b7aea5143499e88ecc7149 Change-Id: Ic533d1820c470bf2370a92452b37515ef7458f45
* | | Merge "Annotate @SystemApi on some WifiManager methods." into lmp-devWenchao Tong2014-08-191-0/+5
|\ \ \ | | |/ | |/|
| * | Annotate @SystemApi on some WifiManager methods.Wenchao Tong2014-08-191-0/+5
| | | | | | | | | | | | | | | Bug: 17112931 Change-Id: I5980bc46bc1f16316caecd7fcc6cd771b8ca6cdf
* | | Stop using LinkProperties for static configuration.Lorenzo Colitti2014-08-191-6/+16
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LinkProperties can represent way more complicated configurations than what we can actually apply to interfaces. This makes it error-prone to use it to represent static configuration, both when trying to apply configuration coming from LinkProperties and when trying to save configuration from current LinkProperties. Instead, move static configuration (IPv4 only, since we don't support static IPv6 configuration) into a separate StaticIpConfiguration class. Bug: 16114392 Bug: 16893413 Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df
* | Revert "Revert "Revert "Revert "Revert "Update Trusted Credentials screen in ↵Zoltan Szatmary-Ban2014-08-151-1/+28
| | | | | | | | | | | | | | | | settings""""" This reverts commit c9249c69813c6fb889d71d84583c67ae2942e6de. Change-Id: I5504fddaf7b18efb73cd6c76678b3b39ce9b0229
* | Revert "Revert "Revert "Revert "Update Trusted Credentials screen in ↵Zoltan Szatmary-Ban2014-08-151-28/+1
| | | | | | | | | | | | | | | | | | | | settings"""" This reverts commit 87efe74e092236c372d3b6909009641123aa416a. This should be fine now with all the dependency CLs +2-ed Change-Id: I96ad14ad5ff81e6b5391035cb6c5a62339c6cc40
* | Revert "Revert "Revert "Update Trusted Credentials screen in settings"""Narayan Kamath2014-08-151-1/+28
| | | | | | | | | | | | This reverts commit 19c8ce291e89a9ef1442a20e1feab421b11536d7. Change-Id: Ie5a5571127311e0a29f314c0566e779cfe940b53
* | Revert "Revert "Update Trusted Credentials screen in settings""Zoltan Szatmary-Ban2014-08-151-28/+1
|/ | | | | | This reverts commit 0f0de0bdd021bad5f85fdb0399a4ea91a1611e25. Change-Id: Ia3d0907e3d7c2ec42d64e45f60e3dfaffb932c3d
* Revert "Changes in framework for WIFI_CREDENTIAL_CHANGE broadcast. [DO NOT ↵Chelsea Derrick2014-08-111-22/+0
| | | | | | | | | MERGE]" This reverts commit 41158d90a69cae2a9c4ced0e04f235e8cfef5259. Bug: 16871063 Change-Id: I93623be92f2de41789b16827867f3f95bf0480c5
* Merge "Unhide WifiPasspointManager for ANQP APIs - DO NOT MERGE" into lmp-devVinit Deshpande2014-08-093-150/+1
|\
| * Unhide WifiPasspointManager for ANQP APIs - DO NOT MERGEVinit Deshpande2014-08-103-150/+1
| | | | | | | | | | | | This is unhiding some unwanted changes too; but we'll fix that later. Change-Id: I35343815e99aafbec8e4ef4d0707499fb6219457