summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/wifi/WifiService.java
AgeCommit message (Collapse)Author
2013-12-19Move some system services to separate directoriesAmith Yamasani
Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
2013-11-06Add BatteryStats for Wifi Batched Scanning.Robert Greenwalt
bug:10690989 Change-Id: Ia39b715ee6d5733970095bc76de0ed40ff8208c0
2013-10-21Make setting PAC require CONNECTIVITY_INTERNALJason Monk
Also disables all setting of PAC networks through the internal AsyncChannel methods. PAC can only be saved through addOrUpdateNetwork for permission checks. Bug: 11316946 Change-Id: I51016b578080c342a5e5d536ea9a3fdd4fe16644
2013-10-02Fix EAP-TLS reconnect after reboot issueVinit Deshapnde
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
2013-09-20Fix BatchScan request coalesingRobert Greenwalt
bug:10407896 Change-Id: Ic22c7d8b2a80d490d208570782a12e42d4690f5c
2013-09-20Merge "Cleanup the shutdown of BatchedScans." into klp-devRobert Greenwalt
2013-09-20Cleanup the shutdown of BatchedScans.Robert Greenwalt
Fixes binder-death as well as disambiguation when an app has multiple requests in. bug:10641931 Change-Id: Ib701d531fa51e7e2a027848cfdfcad3b47056923
2013-09-16Merge "Fix Settings app crash while enabling tethering" into klp-devYuhao Zheng
2013-09-16Fix Settings app crash while enabling tetheringYuhao Zheng
While enabling Portable Wifi hotspot in Settings, a null WifiConfiguration is provided. This null config is on purpose and meanful, and it should bypass the validation test to avoid the NullPointerException. Bug: 10780414 Change-Id: Ic507ecae463946c925b3d5fb5a1d185b37db410f
2013-09-16Fix an NPE in WifiServiceVinit Deshapnde
The check to validate incoming configurations is flagging a correct API usage as well - which doesn't provide any configuration to test. Fixing code to accommodate this. Bug: 10749041 Change-Id: I972f0edbdfa14aaa3edb34e4c6784b436c288383
2013-09-13Strip names out of externally supplied WorkSources to WifiManager (b/10710007).David Christie
Change-Id: I69bd7ce9e942c2f9327415b2821d805e1b50a1a4
2013-09-12Merge "Fix invalid Wifi Network system crash" into klp-devVinit Deshapnde
2013-09-11Fix Wifi Batch ScanningRobert Greenwalt
Some parsing bugs, more debug logs, etc. bug:9301872 Change-Id: I245ab00955e245be81a019750be0f8491aa505fd
2013-09-09Fix invalid Wifi Network system crashVinit Deshapnde
There is some validation code that is eventually detecting that we have an invalid network; only the result is a crash. The right thing to do is to do validation up front; and fail calls if the network configuration looks invalid. Bug: 10571289 Change-Id: I100506b777a34b26ac9a310ba508140560f87a90
2013-08-15Modify wifi BatchedScan.Robert Greenwalt
Add pollBatchedScan API to allow forced retrieval. Modified driver API, adding MSCAN, removing nextCount and making the results look more like normal manual scan results. bug:9301872 Change-Id: I58bce0624c36e2ad8d3c3f5defcb4d4e155dc8f9
2013-08-13Add support for batched wifi scans.Robert Greenwalt
bug:9301872 Change-Id: I5a7edfdbd2b78a65119d11acad491eae350c0870
2013-07-25Add WorkSource capability to WifiManager for starting a scan.David Christie
Change-Id: I011bf3b91fbddaba7ab0128bb03d27d90b8a886f
2013-07-11Allow enabling TDLS on specific routesVinit Deshapnde
This change exposes couple of internal APIs to enable TDLS between local machine and a remote machine. The implementation translates client provided remote IP to a MAC address using system ARP cache, and then instructs the driver to enable TDLS with that endpoint. Another API takes application specified MAC address. Bug: 8538898 Change-Id: Ida343fc42ba3a817a4f380255596e7fb7fcdfb9b
2013-06-26Fix power issues around wifi scans.Robert Greenwalt
- Sending a broadcast indicating when scan requests could be serviced so that apps don't request scans we won't do anything with. - Fix our batt stats accounting so we only count it if we send the request to the driver. bug: 8868201 bug: 9496690 Change-Id: I64a4f1c294c848ac64c50d8854ed4a6a1a47f603
2013-05-31Remember wifi country that's set before bootRobert Greenwalt
Telehony seems to sometimes be reporting the country before boot is completed so can't persist the data at that time. Remember and write it on BOOT_COMPLETED Also, there are permission issues around writing the setting. bug:9225156 Change-Id: Ifdf2243da71b0d2ce5743267842597937d790ef5
2013-04-29Merge "Remove scan notification dialog on wifi off" into jb-mr2-devIrfan Sheriff
2013-04-26Remove scan notification dialog on wifi offIrfan Sheriff
This is now only handled in settings app Bug: 8732391 Change-Id: If232bfb9f6c3976059bde11280318901c35161e7
2013-04-23Keep device state always updatedIrfan Sheriff
Tasker app showed up a bug where we can be out of sync with screen state if we only received broadcasts when wifi is toggled on. Always receive updates. Bug: 8689583 Change-Id: Iad457c9768ed421765adb6a15d5f42ecf682da38
2013-04-19Fix API nameIrfan Sheriff
Address council feedback Bug: 8656932 Change-Id: I92972fc3672afbc38cdeee628c04b639053f7cf3
2013-04-12Add new route.hasGateway() apiRobert Greenwalt
Fixes issues brought in by change to isHostRoute. isHostRoute was technically correct, but the callers really wanted hasNextHop behavior. bug:8597268 Change-Id: I360761ccfa98b2ba34642f717a78fa71ec1bae4f
2013-03-27Notify user only when device provisionedIrfan Sheriff
Make sure the notification about scan mode being availabe is only shown when device is already provisioned Bug: 8482739 Change-Id: If8a76ffcc0401b846e39b02a55ea69743303c93d
2013-03-21Notify user when wi-fi is toggled about scansIrfan Sheriff
We let the user know when he turns off Wi-Fi that scans will continue to be available. User has the option to turn off the dialog and not receive this in the future. Bug: 8141918 Change-Id: I115ce2ac57125b8ffbb34245dc25effd4b3bebb0
2013-03-19Add API to control scan always modeIrfan Sheriff
Bug: 8141918 Change-Id: I1e5e45e514726c2cbfd86e747123e477e00fd7ed
2013-03-14Add support for scan always available modeIrfan Sheriff
Modify WifiService to add a controller to track the various desired states and let the WifiStatemachine actually control the bring up. Bug: 8141918 Change-Id: I6e98fd5a29b43c3c50c315eff5255cd0a3eaebcd
2013-03-05Fix client trackingIrfan Sheriff
Bug: 8311559 Change-Id: I167fcdd5c3da4d46b7d99e18041036023c8c60f7
2013-02-26Fix leak in WifiManagerIrfan Sheriff
Avoid leaks from having a channel connection per manager instance Bug: 8254124 Change-Id: I10de91d7e5a775bc14bbab245734717d3b2f90d5
2013-02-22Clean up scan handlingIrfan Sheriff
Remove obsolete active/passive scan handling - drivers always do active scan. Also, remove AP_SCAN hack for preventing connections and use the TYPE=ONLY scan. Bug: 8158647 Change-Id: I8f70e19219ad789b7501a40529bcd6b6524739e8
2013-02-21Handle airplane settings properlyIrfan Sheriff
Fix bug dealing with airplane mode settings of whether wifi is sensitive to airplane mode change and whether wifi is allowed to override airplane mode that likely has been broken ever since. Bug: 8141918 Change-Id: Ia3116c9dfce2952cbe3911e9d81dbbae0430abef
2013-02-21Restructure wifiservice for clarityIrfan Sheriff
Move seperate operation pieces into own classes Bug: 8141918 Change-Id: Iacb15ceca5431136051e815aa71617eef89b9fe9
2013-02-21Move wifiservice into its own packageIrfan Sheriff
Change-Id: I3ff378a29cb4dd191605b0b641147eba1f445d13