summaryrefslogtreecommitdiffstats
path: root/wifi/java/android/net
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant interface disableIrfan Sheriff2010-02-231-13/+9
| | | | | Bug: 2274930 Change-Id: Ia1eafe422f6e18b826e53e72a306dd2961b948a6
* get DHCP IP on each connectionIrfan Sheriff2010-02-101-10/+22
| | | | | | | | | | The IP state was not being refreshed when the supplicant transitions from COMPLETED to ASSOCIATED to COMPLETED. This can lead to a connected state with no real connection due to old IP settings. The fix refreshes IP on each connection. Bug: 2329261 Change-Id: I38cd56369ee2d8ab3e0f06f5c9f5712b9b2f35a0
* Handle error strings from monitor connectionIrfan Sheriff2010-01-281-6/+49
| | | | | Bug: 2399119 Change-Id: I481cfbfb11fb453659134004aafa3df236ba050b
* Blacklist APs instead of disableIrfan Sheriff2010-01-282-10/+34
| | | | | | | | We currently disable networks upon too many reconnects. This leads to asking the user input for reconnects. Blacklist it instead. Bug: 2129037 Change-Id: I23d69daf3964c066ed7f70d32fefb81016f19aa2
* Synchronize all WifiNative callsIrfan Sheriff2010-01-081-3/+4
| | | | | | | Some of the native calls were left unsynchronized in the framework. Pre-empted IOCTL call interrupted by another call from the framework cannot be handled in the driver. Bug: 2310455
* Implement API to have new broadcasts replace existing broadcasts.Dianne Hackborn2009-12-141-2/+4
| | | | | | Use this in various places where it should serve no purpose to deliver both broadcasts. This is intended to reduce somewhat the flurry of broadcasts that we churn through during boot.
* am 68b15b68: Porting change I064698b3 from mr2 to eclair.Robert Greenwalt2009-12-081-1/+1
|\ | | | | | | | | | | | | Merge commit '68b15b68497e373fe63a13f11e18349a738a7989' into eclair-mr2 * commit '68b15b68497e373fe63a13f11e18349a738a7989': Porting change I064698b3 from mr2 to eclair.
| * Porting change I064698b3 from mr2 to eclair.Robert Greenwalt2009-12-082-13/+38
| | | | | | | | | | | | Add support for "HANGED" driver state - we'll reboot the driver when requested (by the driver). bug: 2310372
| * Make FWK start a wifi scan if supplicant forgets. (do not merge)Robert Greenwalt2009-10-211-0/+37
| | | | | | | | | | | | | | | | Waits 15sec after getting a DISCONNECTED or INACTIVE state. Also tracks the number of supplicant state transitions. After the period is up if we haven't received any more supplicant state transitions, it requests a scan. bug: 2168081
* | Add wifi "HANGED" driver state triggering reload.Robert Greenwalt2009-10-232-12/+37
| | | | | | | | | | | | | | | | | | The driver can now report to us that they are hosed and we'll shut down wifi and restart it - only to be used as a last resort. Also fixing synch problem with updateWifiState. bug: 2173119
* | Add a new API for initing Wifi multicast filteringRobert Greenwalt2009-10-213-9/+16
| | | | | | | | | | | | Gets rid of the old method which generated Log noise. bug: 1973855
* | Make FWK start a wifi scan if supplicant forgets.Robert Greenwalt2009-10-081-0/+37
|/ | | | | | | | Waits 15sec after getting a DISCONNECTED or INACTIVE state. Also tracks the number of supplicant state transitions. After the period is up if we haven't received any more supplicant state transitions, it requests a scan. bug: 2168081
* Stop bringing the wifi interface up on reset.Robert Greenwalt2009-09-301-6/+5
| | | | | | | The driver will bring up the interface when needed and bring it up at reset time has caused some problems. bug: 2144870
* Fix the incorrect field name in EAP wifi network.Chung-yih Wang2009-09-221-1/+1
| | | | The field identity should not be "anonymous_identity".
* Fix the issue of 'Wifi framework is not aware of state change'Chung-yih Wang2009-09-221-13/+11
| | | | | | | | | | | | | | | Problem: Connect to AP with WEP security. Change AP's WEP password. Phone will quickly reassociated (less than in 5 sec) and will not restart full "reconnect". Indication will show "connected" but it will be no network access. Fix: (for non-static IP only) With WEP mode, the association could be successful if we change the AP's WEP password. However, the phone wont be able to send/recv any traffic with the old password. What we could quickly fix here is to send the DHCP request if the network is not configured to use static IP. We can do nothing but ping access point to see if it we are able to communicate with it.
* Reintroduce wifi RssiApprox, reducing driver callsRobert Greenwalt2009-09-161-1/+1
| | | | | | | | | Only do the full signal strength calc when we need to, otherwise use an approximate value. This change was introduced a while back but was lost in some merge. bug: 2125543
* Add the hide for the inner class definition.Chung-yih Wang2009-09-161-0/+1
|
* Fix the missing part for reading enterprise fields in wifi configurationChung-yih Wang2009-09-161-109/+51
| | | | + refactor the enterprise fields.
* Don't init wifiChannels until after supplicant upRobert Greenwalt2009-09-111-0/+3
| | | | | | | | | The supplicant can take up to 15 seconds to start - setting the number of wifi channels immediately after requested wifi start often will fail. Changed to set the number of channels when the supplicant is reported as alive. bug:2083601
* I am getting tired of the java doc warnings, so fix them.Dianne Hackborn2009-08-241-1/+1
| | | | Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
* Bluetooth: API change.Nick Pelly2009-08-181-3/+5
| | | | | | | | | | | | | | | Split BluetoothDevice into BluetoothDevice and BluetoothAdapter. BluetoothAdapter: Represents the local BT adapter. Operations on the local adapter (start a scan, etc). BluetoothDevice: Represents a remote BT device. Operations on remote devices (pair, connect, etc). IBluetoothDevice.aidl -> Bluetooth.aidl BluetoothDeviceService.java -> BluetoothDeviceService.java TODO: Javadoc
* am 41c10433: Fix MulticastLock API to match WifiLock API.Robert Greenwalt2009-07-301-12/+66
|\ | | | | | | | | | | | | Merge commit '41c104339951e0e5e78240e1f48455c21b3ba5fd' * commit '41c104339951e0e5e78240e1f48455c21b3ba5fd': Fix MulticastLock API to match WifiLock API.
| * Fix MulticastLock API to match WifiLock API.Robert Greenwalt2009-07-291-12/+66
| | | | | | | | Adds option to make lock refcounted or not. Fixes 2017680.
* | Wifi: Make sure the interface is up before telling supplicant to start the ↵Mike Lockwood2009-07-281-0/+1
| | | | | | | | | | | | | | | | | | driver. This fixes a problem that resulted in the interface not being up when resuming an authenticated connection. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 356d4a14: Merge change 8172 into donutAndroid (Google) Code Review2009-07-221-0/+14
|\ \ | |/ | | | | | | | | | | Merge commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3' * commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3': Add the phase2 field for EAP WiFi configuration.
| * Add the phase2 field for EAP WiFi configuration.Chung-yih Wang2009-07-221-0/+14
| |
* | resolved conflicts for merge of f7703519 to masterMike Lockwood2009-07-141-6/+16
|\ \ | |/
| * wifi: Disable RSSI polling when the screen is off.Mike Lockwood2009-07-141-6/+16
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | wifi: Keep the WLAN network interface up whenever wifi is enabled.Mike Lockwood2009-07-101-4/+15
| | | | | | | | | | | | | | We now only bring it down briefly and bring it back up again when we want to reset the interface. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | WifiService: Remove hidden AP counting logic for active/passive scanning mode.Mike Lockwood2009-07-091-11/+2
| | | | | | | | | | | | | | Apparently this code was not 100% correct, and now the Wifi driver is responsible for setting the scan mode to active for hidden networks, so this is no longer needed. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 463aacfb: Merge change 6661 into donutAndroid (Google) Code Review2009-07-094-5/+23
|\ \ | |/ | | | | | | | | | | Merge commit '463aacfbd220c9ef2f6ed915d54092289fdac05b' * commit '463aacfbd220c9ef2f6ed915d54092289fdac05b': wifi: WifiManager.startScan() will now do passive scans by default.
| * wifi: WifiManager.startScan() will now do passive scans by default.Mike Lockwood2009-07-094-5/+23
| | | | | | | | | | | | | | | | Active scans will only happen if a hidden AP is in use, or if the new method WifiManager.startScanActive() is called. This fixes some audio playback problems with bluetooth A2DP. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 699ca3f2: Add password field for WiFi configuration.Chung-yih Wang2009-07-061-0/+11
|\ \ | |/ | | | | | | | | | | Merge commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91' * commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91': Add password field for WiFi configuration.
| * Add password field for WiFi configuration.Chung-yih Wang2009-07-051-0/+11
| | | | | | | | | | | | | | 1. the certtool.h is modified for avoiding the side effect, for saving the configuration with wpa_supplicant. 2. put the loadLibrary back in CertTool.java 3. Fix incorrect JNI declarations.
* | am 3bc64a2c: Merge change 6088 into donutAndroid (Google) Code Review2009-07-061-0/+34
|\ \ | |/ | | | | | | | | | | Merge commit '3bc64a2cb97da7bf7dc203416ad6c7d86c5925fc' * commit '3bc64a2cb97da7bf7dc203416ad6c7d86c5925fc': WifiManager: Limit the number of WifiLocks that can be active simultaneously.
| * WifiManager: Limit the number of WifiLocks that can be active simultaneously.Mike Lockwood2009-07-021-0/+34
| | | | | | | | | | | | | | This is to prevent a bad app from using up all the global references in the system process due to allocating too many DeathRecipients. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | WifiStateTracker: Add support for positive RSSI values.Mike Lockwood2009-06-091-3/+6
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Use new wifi cmd rssi-approx when polling.Robert Greenwalt2009-06-082-4/+7
| | | | | | | | | | Cheaper approx call should be used when polling every 3 sec for wifi signal strength. Fixes bug 1903653.
* | am 19cd309f: Merge change 3017 into donutAndroid (Google) Code Review2009-06-051-6/+102
|\ \ | |/ | | | | | | | | | | Merge commit '19cd309f9eccdf8454dc6e5076013588b7a170a3' * commit '19cd309f9eccdf8454dc6e5076013588b7a170a3': Add the EAP related fields for WiFi configuration.
| * Add the EAP related fields for WiFi configuration.Chung-yih Wang2009-06-051-6/+102
| | | | | | | | | | | | -- added the EAP/802.1X related fields in WifiConfiguration for supporting EAP/802.1X authentication. -- hid the related fields for now.
* | am 1e2e44e9: Merge change 2365 into donutAndroid (Google) Code Review2009-05-283-43/+110
|\ \ | |/ | | | | | | | | | | | | Merge commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc' * commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc': Fix wifi multicast API for public use. Revert "Bug fixes and performance improvements"
| * Fix wifi multicast API for public use.Robert Greenwalt2009-05-283-43/+110
| | | | | | | | Applying API review comments and taking it public.
* | Add carrier/mcc factors to wifi-channel decision.Robert Greenwalt2009-05-223-5/+14
|/ | | | | | Uses ro.carrier and MCC when available to try to set (non-persistingly) the number of allowed wifi channels. Part of the fix for 1625953.
* Increment BatteryStatsImpl's VERSION.Robert Greenwalt2009-05-193-13/+13
| | | | | That'll make it stop trying to interpret older records with the new format. Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
* WifiService: Wifi power management changeMike Lockwood2009-05-181-21/+29
| | | | | | | | | | | Put Wifi into an idle state immediately if the screen is turned off and the Wifi interface has no IP address. We will continue to keep Wifi up for 15 minutes in the case where the screen is turned off when Wifi is fully connected. This will allow us to go into a low power mode faster when Wifi is not actively being used. It also avoids bringing up Wifi if the user just turns on the screen for a few seconds to check the clock, etc. Fixes bug b/1736920 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add wifi multicast filter api (enable/disable).Robert Greenwalt2009-05-133-5/+76
| | | | | Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
* AI 145980: am: CL 145881 Adding on to CL 145383, unhiding some additional ↵Eric Shienbrood2009-04-131-6/+2
| | | | | | | | | | | | methods and constants that ought to be exposed. Hid and deprecated the single-arg public constructor for NetworkInfo, and modified a CTS test that was testing it. Ran the android.net test package to make sure it still works. Original author: ers Merged from: //branches/cupcake/... Automated import of CL 145980
* AI 145778: Manual merge changes 145382-145384 from cupcake.Andy Stadler2009-04-101-1/+0
| | | | Automated import of CL 145778
* AI 143266: am: CL 143124 Fix bug #1731826, in which auto-connect to ↵Eric Shienbrood2009-03-271-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | remembered networks does not take place. This has the same underlying cause as bug #1739874, so this fixes that bug as well. The problem was that if the supplicant was in the DORMANT state at the time a scan-only Wi-Fi lock was released, the command to stop the Wi-Fi driver would never be issued. This had two main results: first, the driver would stay awake when the screen was blank and it was supposed to be sleeping, leading to excessive battery drain, and second, when the screen was turned back on, there would be no DRIVER-STARTED event generated (because the driver was already running). The DRIVER-STARTED event is the trigger for the framework to issue a RECONNECT command to the supplicant to cause it leave the DORMANT state and look for available remembered networks. To assist in tracking down this problem, and any such problems in the future, I added four counters to keep track of how many times full and scan-only Wi-Fi locks are acquired and released. The counter values are output in the dump() method of WifiService. While doing this, I noticed that because of missing "break" statements, the battery stats that keep track of how much time Wi-Fi locks are held were including the time for full locks in the time reported for scan-only locks. Original author: ers Merged from: //branches/cupcake/... Automated import of CL 143266
* Automated import from //branches/donutburger/...@140679,140679Eric Shienbrood2009-03-241-3/+23
|