summaryrefslogtreecommitdiffstats
path: root/wifi
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Refactor WifiEnterpriseConfig and move service part in WifiConfigStoreVinit Deshapnde2013-11-072-338/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change moves the code related to 'importing' the configuration in supplicant and keystore from WifiEnterpriseConfig class to WifiConfigStore class. This would allow moving system classes to server package. Bug: 9989922 Change-Id: Id96f34bb5d16ef192e9174d9caa867bdfdacf803
* | | | am 9dbaaab8: am daf21d76: am 75c12de0: Merge "Increase Reject threshold for ↵Vinit Deshapnde2013-11-131-1/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | disabling networks" into klp-dev * commit '9dbaaab85eb4557b40086e6b37882af7b03725ba': Increase Reject threshold for disabling networks
| * | | Increase Reject threshold for disabling networksVinit Deshapnde2013-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change modifies a framework optimization. The framework optimization disables a network when an access point repeatedly rejects requests to associate with it. This change has some problems; one being that it counts the rejects for all networks, and not for a specific network. This incorrectly penalizes last networks at times; and since the current threshold is 4 rejects, the probability of penalizing wrong networks is high. This change ups that number to 16 to reduce that probability. Bug: 11654725 Change-Id: I7150a9ccbb54bac44f2c2ba100fb6617ded33616
* | | | resolved conflicts for merge of c3eef190 to masterRobert Greenwalt2013-11-074-36/+106
|\ \ \ \ | |/ / / | | / / | |/ / |/| | Change-Id: I36fd3c7fcbb13e47e27ffc340484c03b5a553bb1
| * | Add BatteryStats for Wifi Batched Scanning.Robert Greenwalt2013-11-064-36/+105
| | | | | | | | | | | | | | | bug:10690989 Change-Id: Ia39b715ee6d5733970095bc76de0ed40ff8208c0
* | | am 63dd9d2f: am 4802c6da: am 4d8a8392: Merge "Don\'t set same country code ↵Robert Greenwalt2013-10-212-3/+32
|\ \ \ | |/ / | | | | | | | | | | | | | | | on supplicant again and again" into klp-dev * commit '63dd9d2f550983d890ea21eee9b8f8619608bb79': Don't set same country code on supplicant again and again
| * | Don't set same country code on supplicant again and againVinit Deshapnde2013-10-212-3/+32
| |/ | | | | | | | | | | | | | | Setting the same code is redundant, and may cause supplicant to drop currently connected connection. Bug: 11303252 Change-Id: I1af57b3af2d0b8cc51939a8b9872fb3fe0105a91
* | Remove captive portal code that has no effect.Narayan Kamath2013-10-164-53/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that this CL does not change any behaviour. At the center of this change is CaptivePortalTracker#detectCaptivePortal(), which does nothing except call back into ConnectivityService. Removing it allows us to simplify code in ConnectivityService. It also allows us to remove ConnectivityService#captivePortalCheckComplete which was only ever called in response to this method. While this does not change any behaviour, it preserves existing bad behaviour, i.e, that the CAPTIVE_PORTAL_CHECK NetworkInfo state does not correspond to actual captive portal detection. We transition into that state and immediately (and unconditionally) out of it and into CONNECTED. Change-Id: Ib3797f956d2db5e3cacaaa53e899d81aa8e958af
* | am dcc31551: am e9d99705: am 72dc0b43: Merge "Make Wifi Scans more ↵Robert Greenwalt2013-10-141-4/+8
|\ \ | |/ | | | | | | | | | | heap-efficient" into klp-dev * commit 'dcc31551f80500a096b8eb95f7f0670b4c19fd95': Make Wifi Scans more heap-efficient
| * Make Wifi Scans more heap-efficientRobert Greenwalt2013-10-111-4/+8
| | | | | | | | | | | | | | | | | | We were ending up with 1 reference to every char array in which a new AP was discovered. In a busy env this could cost several hundred K from the dalvik heap. bug:11087956 Change-Id: I3b14c39fd0c98e4aea08a406e80bcf6af40d0664
* | Fix WifiInfo#getHiddenSSIDNarayan Kamath2013-10-112-16/+9
| | | | | | | | | | | | | | | | | | | | | | | | The method would previously always return false. Note that this is the simplest fix, and not the most optimal fix. That said, in this change, a call to WifiInfo#getHiddenSSID costs the same as a call to WifiInfo#getSSID, so it isn't that bad. bug: 10705138 Change-Id: I980563fd8a5bafe8c58c586449e778a0aa8b58a4
* | am 86f48113: am 623dddc9: am 3309bc5f: Merge "WifiStateMachine: fix for ↵Yuhao Zheng2013-10-101-4/+1
|\ \ | |/ | | | | | | | | | | exiting L2ConnectedState" into klp-dev * commit '86f48113a5ee0f2d15ba9650b4335ba063ef48ad': WifiStateMachine: fix for exiting L2ConnectedState
| * Merge "WifiStateMachine: fix for exiting L2ConnectedState" into klp-devYuhao Zheng2013-10-101-4/+1
| |\
| | * WifiStateMachine: fix for exiting L2ConnectedStateYuhao Zheng2013-10-081-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a L2ConnectedState to WpsRunningState transition, network is disconnected. However, the disconnected message is ignored by WpsRunningState, leaving DHCP still running. When entering L2ConnectedState again, WifiStateMachine gets stuck on waiting for DhcpStateMachine, because DHCP is already running and the command CMD_START_DHCP is ignored. Calling handleNetworkDisconnect() when exiting L2ConnectedState fixes this problem, plus it handles disconnection correctly. Bug: 10900241 Change-Id: Id29e4989b29db7e64719940cf93eba1f1a90912a
* | | am 7ecedb75: am f008ca33: am f681058f: Merge "Narrow previous fix for this ↵Robert Greenwalt2013-10-091-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | issue." into klp-dev * commit '7ecedb75c833a746c561dd0029b0accf175033be': Narrow previous fix for this issue.
| * | Narrow previous fix for this issue.Robert Greenwalt2013-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Networks should be unconditionally disabled when going to scan only state or we risk connecting when we don't want to. bug:11062188 Change-Id: If89621ca07d86673a661d2e5fe4ce89286f8835e
* | | am d37638e5: am 11a3bc70: am 709a4278: Merge "Don\'t mark wifi disabled ↵Yuhao Zheng2013-10-091-2/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | unless it\'s off." into klp-dev * commit 'd37638e5262fea65bf428cb78e73a9b4e02a93fe': Don't mark wifi disabled unless it's off.
| * | Don't mark wifi disabled unless it's off.Robert Greenwalt2013-10-091-2/+4
| |/ | | | | | | | | | | | | | | | | | | The transition from driver-started to scan-only state was incorrectly always marking wifi disabled, but transitioning back only marked it enabled if we were exiting due to leaving the scan-only-with-wifi-off mode. bug:11062188 Change-Id: I44fe64fd8dac8f36f4e22cb1c16b9d7a06bdbac0
* | Add a missing wifi p2p discovery changed broadcastYuhao Zheng2013-10-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | When we disable wifi while wifi p2p peer searching is in progress, we don't get a WIFI_P2P_DISCOVERY_CHANGED_ACTION broadcast saying that discovery is stopped. Since this broadcast is sticky, applications will still get the previous one saying discovery is started even if wifi p2p has been disabled. Adding a sendP2pDiscoveryChangedBroadcast when exiting P2pEnabledState fixes this problem, and it won't be a duplicate as sendP2pDiscoveryChangedBroadcast checks for that. Bug: 11151666 Change-Id: I62de8f3d17d80f151403b91cf5c62866d931c01b
* | am 72566b98: am 1c6fdd6c: am cac2fd30: Merge "Revert "Use a build-specific ↵Robert Greenwalt2013-10-042-2/+18
|\ \ | |/ | | | | | | | | | | wifi country code"" into klp-dev * commit '72566b98dba80f21923cb6b299754d510951d611': Revert "Use a build-specific wifi country code"
| * Merge "Revert "Use a build-specific wifi country code"" into klp-devRobert Greenwalt2013-10-042-2/+18
| |\
| | * Revert "Use a build-specific wifi country code"Robert Greenwalt2013-10-032-2/+18
| | | | | | | | | | | | | | | | | | | | | This reverts commit c33cd23c17c24df33550a6662cedfe60b323604a. bug:11064682 Change-Id: I35825a7005e75f3abf02f23f31dee1cb7b101c31
* | | am 1db7024c: am 2e23484e: am f3f1a370: Merge "Un-deprecate getDhcpInfo" into ↵Robert Greenwalt2013-10-041-1/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | klp-dev * commit '1db7024c50abe49d8881d458b3317ccff3de1832': Un-deprecate getDhcpInfo
| * | Un-deprecate getDhcpInfoRobert Greenwalt2013-10-041-1/+0
| | | | | | | | | | | | | | | | | | | | | Replacement api isn't available. bug:10003785 Change-Id: Ibe981ae90e1c6c2f1b65fa225443ae4cc92c2a3a
* | | am 90a5192c: am e72aa641: am 3eb6e4b4: Merge "Fix EAP-TLS reconnect after ↵Vinit Deshapnde2013-10-043-4/+133
|\ \ \ | |/ / | | | | | | | | | | | | | | | reboot issue" into klp-dev * commit '90a5192cd4af89a1b363ca25be2a63d0e57010d4': Fix EAP-TLS reconnect after reboot issue
| * | Merge "Fix EAP-TLS reconnect after reboot issue" into klp-devVinit Deshapnde2013-10-033-4/+133
| |\ \ | | |/ | |/|
| | * Fix EAP-TLS reconnect after reboot issueVinit Deshapnde2013-10-023-4/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a reboot, KeyStore is locked, and certificates encrypted with user PIN are not accessible. So statemachines are not able to connect to EAP-TLS networks. This change makes the problem less severe by 1. Not signing certificates with user PIN on devices with hardware backed KeyStore. 2. Issuing a reconnect upon first USER_PRESENT event. This means HH (which has a hardware backed keystore) can connect to EAP-TLS networks without requiring user intervention and other devices will automatically connect to those networks after user punches PIN. Bug: 10325089 Change-Id: I023d60e58d8214152f051bd9ec84b85b702d829a
* | | am 2b6b3d9c: am bad5d694: Merge "Use a build-specific wifi country code" ↵Robert Greenwalt2013-10-012-18/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | into klp-dev * commit '2b6b3d9c495d3c8332aad6515a1db06e8fde3848': Use a build-specific wifi country code
| * | Use a build-specific wifi country codeRobert Greenwalt2013-09-292-18/+2
| |/ | | | | | | | | | | | | | | | | | | This ignores any previous setting and instead uses a value set at build time. This does not preclude us from using some other signal to determine country for wifi channel limits. bug:10513734 Change-Id: Ib82c07285af70fbd82eb0466b7391979ebc8be10
* | am 3d837d23: am e7d6bbd6: Merge "Fix an incorrectly created race accessing ↵Vinit Deshapnde2013-09-251-19/+35
|\ \ | |/ | | | | | | | | | | Wifi Supplicant" into klp-dev * commit '3d837d23c5910123330fbe6d18256ecc56ac7fcb': Fix an incorrectly created race accessing Wifi Supplicant
| * Fix an incorrectly created race accessing Wifi SupplicantVinit Deshapnde2013-09-241-19/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ScanModeState is trying to undo whatever it did in its enter(), in its exit() function. But doing that is incorrect because it is possible to transition to multiple states that require different conditions. In this bug, the state machine transitioned from ScanModeState to WaitForP2pDisabled state; in response to Stop Supplicant command. Well, when we are trying to stop supplicant, there is clearly no need to enable P2P or load all networks. But since this code exists in exit(), it is executed nonetheless, causing race conditions accessing the wpa_supplicant (WifiStateMachine is trying to shut it down, but P2pStateMachine is trying to bring up the p2p interfaces). We solve that problem by moving this code to the place where we transition to DisconnectedState - since that's the state that needs this as a precondition. Bug: 10761752 Change-Id: Iaf0ffd8056de8533b5d2bfdf8c440fbb7e406dac
* | am 10914a23: am 662c326e: Merge "Allow yet another combination of key ↵Vinit Deshapnde2013-09-241-1/+2
|\ \ | |/ | | | | | | | | | | management options" into klp-dev * commit '10914a23f71b42a2b9d08a0199689d84117d5e0c': Allow yet another combination of key management options
| * Merge "Allow yet another combination of key management options" into klp-devVinit Deshapnde2013-09-231-1/+2
| |\
| | * Allow yet another combination of key management optionsVinit Deshapnde2013-09-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Framework sets allowedKeyManagement to WPA_EAP + WPA_PSK, if WifiConfiguration didn't supply any value for it. It should probably change to NONE; but that is post K thing. I am allowing that combination for now. Bug: 10843500 Change-Id: Id0c28f4aaf32c6a7e7dca07114a2452ce194a798
* | | am 1e690b69: am 0983eadf: Merge "Fix BatchScan request coalesing" into klp-devRobert Greenwalt2013-09-221-0/+36
|\ \ \ | |/ / | | | | | | | | | * commit '1e690b693c2d4ee7ba04d5882f6b5889ada07e0a': Fix BatchScan request coalesing
| * | Merge "Fix BatchScan request coalesing" into klp-devRobert Greenwalt2013-09-221-0/+36
| |\ \
| | * | Fix BatchScan request coalesingRobert Greenwalt2013-09-201-0/+36
| | | | | | | | | | | | | | | | | | | | bug:10407896 Change-Id: Ic22c7d8b2a80d490d208570782a12e42d4690f5c
* | | | am 0e500803: am f31a7897: Merge "Clear names from externally supplied ↵David Christie2013-09-201-6/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | WorkSources to WifiManager (b/10733757)" into klp-dev * commit '0e50080395d2ed9e3c703f769ea3fb84706f989a': Clear names from externally supplied WorkSources to WifiManager (b/10733757)
| * | | Merge "Clear names from externally supplied WorkSources to WifiManager ↵David Christie2013-09-201-6/+9
| |\ \ \ | | | | | | | | | | | | | | | (b/10733757)" into klp-dev
| | * | | Clear names from externally supplied WorkSources to WifiManager (b/10733757)David Christie2013-09-201-6/+9
| | | | | | | | | | | | | | | | | | | | Change-Id: I36102f13962df2093c1e35fb40081ead647eff32
* | | | | am 27271f67: am a5fb1204: Merge "Fix incorrect exception being thrown from ↵Vinit Deshapnde2013-09-201-2/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | WifiConfiguration" into klp-dev * commit '27271f673546faa973d7a24c594da626ebdbd337': Fix incorrect exception being thrown from WifiConfiguration
| * | | | Merge "Fix incorrect exception being thrown from WifiConfiguration" into klp-devVinit Deshapnde2013-09-201-2/+2
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | Fix incorrect exception being thrown from WifiConfigurationVinit Deshapnde2013-09-201-2/+2
| | | |/ | | |/| | | | | | | | | | | | | | | | | Bug: 10817189 Change-Id: Ib2985f50080cb9d983a6de6ce668223e8782c3b6
* | | | am 032de6c6: am c237c204: Merge "Supsend/resume batched scans around dhcp." ↵Robert Greenwalt2013-09-201-3/+30
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | into klp-dev * commit '032de6c6294893045c0c17946b45800b5af47d60': Supsend/resume batched scans around dhcp.
| * | | Merge "Supsend/resume batched scans around dhcp." into klp-devRobert Greenwalt2013-09-201-3/+30
| |\ \ \
| | * | | Supsend/resume batched scans around dhcp.Robert Greenwalt2013-09-201-3/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scanning while dhcp is running breaks dhcp, so stop the batched scans when we need dhcp and start it up again after. bug:10691401 Change-Id: Ifdeb6f35cfe4509b90fed1e1e694d0c107f24a7e
* | | | | am eccc0905: am 540784f9: Merge "Cleanup the shutdown of BatchedScans." into ↵Robert Greenwalt2013-09-202-2/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | klp-dev * commit 'eccc0905bd150a334a98efedfb08570bcdd1c31a': Cleanup the shutdown of BatchedScans.
| * | | | Merge "Cleanup the shutdown of BatchedScans." into klp-devRobert Greenwalt2013-09-202-2/+2
| |\ \ \ \
| | * | | | Cleanup the shutdown of BatchedScans.Robert Greenwalt2013-09-202-2/+2
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes binder-death as well as disambiguation when an app has multiple requests in. bug:10641931 Change-Id: Ib701d531fa51e7e2a027848cfdfcad3b47056923
* | | | | am 2e9a4265: am 2ce33623: Merge "Remove STOPSHIP in ↵Yuhao Zheng2013-09-201-6/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | WifiWatchdogStateMachine" into klp-dev * commit '2e9a426529c54774b23609bee8d50118118ab895': Remove STOPSHIP in WifiWatchdogStateMachine