summaryrefslogtreecommitdiffstats
path: root/wifi
Commit message (Collapse)AuthorAgeFilesLines
* WPS fixes and refactorIrfan Sheriff2010-12-139-142/+458
| | | | | | | | - Allow IP and proxy set up for WPS - Use string for WPS pin to avoid losing leading zeros - Add a seperate WPS state machine and WpsConfiguration class Change-Id: I87f43fff8bba0ae8ff02e5fc495a8bc628a8c8cf
* Have MobileDataStateTracker & DataConnectionTracker communicate directly.Wink Saville2010-12-071-0/+7
| | | | | | | | | Added CMD_SET_DATA_ENABLE which is sent when data is enabled/disabled via the ConnectivityService. It is anticipated that the communication channel will be used for additional commands and to receive unsoliciated commands from DataConnectionTracker back to MobileDataStateTracker. Change-Id: I3863e7385155d503f069b1dcb7e4f766ec78b5f8
* Update scan results when frequency band is setIrfan Sheriff2010-12-061-0/+2
| | | | Change-Id: I4864b66f96744682a0de274fd49cca035ffc5d3c
* Hold network hand-off wakelock only when connectedIrfan Sheriff2010-12-031-8/+10
| | | | Change-Id: I31132cb2966cfc1eb205e070116b4c784d292f46
* Fix configuration change handlingIrfan Sheriff2010-12-035-66/+143
| | | | | | | | | | | When IP or proxy config changes, we now reconfigure the network and inform connectivityservice. Also, fixed the naming for changes on configured networks. Bug: 3237735 Change-Id: I2a94b3158b6b0e0d27442d7fd525a8a23f0497f8
* Fix Wifi's setting of isAvailable.Robert Greenwalt2010-11-231-1/+1
| | | | | | | Manifested itself in ConnectivityService reporting no connectivity. bug:3220092 Change-Id: I4c0149125b8e2b9c2493f87d208aecbf21590fff
* Merge "Notify all VMs when proxy changes."Robert Greenwalt2010-11-191-39/+8
|\
| * Notify all VMs when proxy changes.Robert Greenwalt2010-11-191-39/+8
| | | | | | | | | | bug:2700664 Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
* | Split SupplicantStateTracker and refactorIrfan Sheriff2010-11-182-515/+513
|/ | | | | | | | | | | | | | | | - Move SupplicantStateTracker into a seperate file. In the process clean up code that needs to be present only in SupplicantStateTracker - Retry twice for password failures - Clean up supplicant state handling. Dont treat supplicant states as HSM what values. Instead, just retain SUPPLICANT_STATE_CHANGE - Add event logging in SupplicantStateTracker - Move scan handling out SupplicantStateTracker Change-Id: I083e1c40ef5a858164493b1440b82c5751b3bfb5
* add frequency band control APIIrfan Sheriff2010-11-083-8/+122
| | | | Change-Id: I6cc6cdef27d493d4ef76cec17fdca7e49d9dc8d7
* Initiate wake up scan only in a disconnected stateIrfan Sheriff2010-11-041-2/+49
| | | | | | | When wifi is connected to an access point, we should not wake up the device to initiate scans. Change-Id: I1a48387a0cac7b23a8d947d8409cafc63da18d38
* Set country code in the driver and remove channel setIrfan Sheriff2010-11-024-103/+49
| | | | | | | | With dual band support, using country code settings is the way to go Bug: 2936741 Change-Id: I760dce4c43b1af19ee205c28f0d287420c8d9e85
* Use AsynChannel for synchronous APIIrfan Sheriff2010-11-021-218/+76
| | | | | | | also cleaned up some unnecessary synchronous commands from state machine, and fixed an issue with a synchronous WPS command Change-Id: I55bf4379d9810e11f2ba2e03e2e703b132d1488f
* WifiLock extensions for high performance modeIrfan Sheriff2010-10-263-27/+67
| | | | | | | | | Add extension to WifiLock to allow apps to operate in high performance mode (high power & disable suspend optimizations for battery consumption). Bug: 2834260 Change-Id: Id394d265b9876bf0230efb3d222056e9b80b44fd
* add wps pin from device capabilityIrfan Sheriff2010-10-265-24/+82
| | | | | | Bug: 3119043 Bug: 3112178 Change-Id: Iaae6bcf53e11f7fac82b3c604ddc27ff05e00542
* Update BT APIs return type from Set to List.Jaikumar Ganesh2010-10-221-3/+2
| | | | Change-Id: Ia27220dd26cde13007f6938c830517ee7f6968ce
* Change removeNetowrk to a synchronous channel call.Wink Saville2010-10-201-8/+24
| | | | Change-ID: Iad0380d56972826615e044fa2aaee418b617d732
* Fix wake and scan behaviorIrfan Sheriff2010-10-201-22/+28
| | | | | | | | | | | | - Add wakelock for driver start/stop to ensure a wifilock acquisition kick starts driver. Also cleaned up state machine driver start/stop behavior. - Add periodic scans when driver is started to ensure wifi reconnections when wifilock exists or when user chooses never to sleep - some minor clean up Change-Id: I844eb70491d5aa2f8c8933b3d8dd01ba237ee534
* wifi: Allow dual-band supportDmitry Shmidt2010-10-201-8/+0
| | | | | Change-Id: I90e421efca783080261789378ef6054ac394c1e2 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Remove synchronous bluetooth callbacksIrfan Sheriff2010-10-141-21/+23
| | | | | | Also, fixed an issue with disabling bluetooth coexistence Change-Id: Ia7f68dfe6e8d587101ba8513783a0123ff0561a1
* state machine fixesIrfan Sheriff2010-10-121-44/+23
| | | | | | | | | | | | | | | - When supplicant dies, restart it - When wifimonitor fails to connect in time, restart supplicant - fix dhcp counter reset - defer all load/unload actions when waiting for supplicant control connection - we dont need to disconnect & reconnect at start with the faster monitor connection and handling of failures Bug: 2973023 Bug: 3090725 Change-Id: I5c834ddd08e6300e2b29da0941a24633825b4d3b
* Retry quicker for control channel setupIrfan Sheriff2010-10-111-2/+2
| | | | | Bug: 2976277 Change-Id: Ifedb0c1aebefc251028e8d2f578f530a3840c702
* Use LinkProperties for IP and proxy configurationIrfan Sheriff2010-10-083-209/+315
| | | | Change-Id: I4ae817fb00141e9a742216b7fd02dca1ed228270
* Add LinkAddressIrfan Sheriff2010-10-061-11/+7
| | | | | | LinkAddress stores IP address + prefix for a network link Change-Id: Id3e74e9d0a62121d097ebdc9be064eeea257ba1f
* Add proxy settings per wifi networkIrfan Sheriff2010-10-063-129/+350
| | | | | | | | | Provide per network proxy settings configuration for wifi. This is stored along with the ip configuration in ipconfig.txt bug: 3039302 Change-Id: Ic8bc14493583be19fde3d7c463d1e5a77e6df25f
* Wifi: Update code for new BT Apis.Jaikumar Ganesh2010-09-281-15/+49
| | | | Change-Id: I1deb0a9a1533958cdb79179bebd2d3b435b0b07c
* Add Wifi Protected Setup supportIrfan Sheriff2010-09-236-23/+149
| | | | | | | | | Add WPS PBC and WPS pin method support with pin obtained from AP Bug: 2277571 Change-Id: I6ff8e447ab8c5e59456a55152588fd4d6386c610
* resolved conflicts for merge of 1f377298 to masterDianne Hackborn2010-09-171-10/+63
|\ | | | | | | Change-Id: I0d92abae3a86792b47777f795143acc0489adfe4
| * am 58e0eefe: Improve power tracking of WIFI use.Dianne Hackborn2010-09-171-6/+51
| |\ | | | | | | | | | | | | | | | | | | Merge commit '58e0eefeb5e2e270e2b04369bbf29fc22abda8d5' into gingerbread-plus-aosp * commit '58e0eefeb5e2e270e2b04369bbf29fc22abda8d5': Improve power tracking of WIFI use.
| | * Improve power tracking of WIFI use.Dianne Hackborn2010-09-171-6/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now distribute "wifi started" time across all apps that are holding WIFI locks that cause it to be started. But only when WIFI would not normally be running. Also have a mechanism to distribute other WIFI work that has happened across those processes based on their use. Also fixed a bug where we were not retaining the CPU speed step stats across boots...! Change-Id: I00e3153b98429166273750512cc37e7975211ab9
* | | Add LinkCapabilitiesWink Saville2010-09-162-2/+31
| | | | | | | | | | | | Change-Id: Ia1599ade936b79f12526252c0a2e6b453abb136e
* | | Add per network static IP settingsIrfan Sheriff2010-09-143-198/+407
| | | | | | | | | | | | | | | | | | | | | Remove the existing global static IP settings and add support for per network configuration Change-Id: I5a6d8b877471b8c8ad07951c96d273893754607f
* | | resolved conflicts for merge of 53686433 to masterDianne Hackborn2010-09-132-2/+34
|\ \ \ | |/ / | | | | | | Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
| * | am 7e9f4eb2: Track client requests through location manager.Dianne Hackborn2010-09-132-2/+34
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '7e9f4eb2608148436cef36c9969bf8a599b39e72' into gingerbread-plus-aosp * commit '7e9f4eb2608148436cef36c9969bf8a599b39e72': Track client requests through location manager.
| | * Track client requests through location manager.Dianne Hackborn2010-09-132-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a problem where applications could ask the location manager to do very heavy-weight things (like... say... update location every minute), which would get accounted against the system instead of the application because ultimately it is the system making the heavy calls (wake locks, etc). To solve this, we introduce a new class WorkSource representing the source of some work. Wake locks and Wifi locks allow you to set the source to use (but only if you are system code and thus can get the permission to do so), which is what will be reported to the battery stats until the actual caller. For the initial implementation, the location manager keeps track of all clients requesting periodic updates, and tells its providers about them as a WorkSource param when setting their min update time. The network location provider uses this to set the source on the wake and wifi locks it acquires, when doing work because of the update period. This should also be used elsewhere, such as in the GPS provider, but this is a good start. Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
| * | am 80db4381: Merge "DO NOT MERGE Enable all networks on screen on" into ↵Irfan Sheriff2010-08-211-0/+28
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '80db4381c010c4dec74c2bf1e02380759e4ff97b' into gingerbread-plus-aosp * commit '80db4381c010c4dec74c2bf1e02380759e4ff97b': DO NOT MERGE Enable all networks on screen on
| | * DO NOT MERGE Enable all networks on screen onIrfan Sheriff2010-08-201-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Connectivity to a disabled network never happens. An old dhcp issue for example prevents connectivity again in future. Allow connectivity on all networks on screen on. Bug: 2129037 Change-Id: I42afc17ddb5cd238e46d7e50f1b6e708e107b35d
* | | Merge "Add set/get band in WifiNative"Irfan Sheriff2010-09-022-0/+19
|\ \ \
| * | | Add set/get band in WifiNativeIrfan Sheriff2010-09-022-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for set and get band and set the default to 2GHz for now till we get a fix on issues with 11A Change-Id: Icb9bddc353e4bf013bdb8a08d9b4ee3451c282f4
* | | | Remove unused Intent filter values.Wink Saville2010-09-011-2/+0
|/ / / | | | | | | | | | Change-Id: I902cdbbff9238b2ac975441ef6ecb3c6d5c7a56f
* | | Add WifiConfigStore to manage networksIrfan Sheriff2010-08-312-527/+715
| | | | | | | | | | | | | | | | | | | | | | | | | | | Split configuration management into a seperate class, next to come is per configuration ip management as part of WifiConfigStore. Bug: 2876746 Change-Id: I44b85fb0e23a83d97a5052ba6beafe06f2027f5a
* | | Rename NetworkProperties to LinkPropertiesRobert Greenwalt2010-08-303-29/+29
| | | | | | | | | | | | | | | | | | Also add copy constructors and use them when giving out data. Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
* | | resolved conflicts for merge of 4ea54f44 to masterRobert Greenwalt2010-08-271-27/+4
| | | | | | | | | | | | Change-Id: Ia77bb59a6e1950648c8ebf7db307e204f93a9f56
* | | Merge "Updated documentation for upcoming fix for @code tags"Ben Dodson2010-08-261-2/+2
|\ \ \
| * | | Updated documentation for upcoming fix for @code tagsBen Dodson2010-08-261-2/+2
| | | | | | | | | | | | | | | | Change-Id: Id7b163179132b9cf180afecb4e9e10ee39bcd415
* | | | Add WifiStateMachine details for dumpIrfan Sheriff2010-08-261-0/+31
|/ / / | | | | | | | | | Change-Id: I3015411dd11f3df57422b41125d4db44be1e0854
* | | fix connectNetwork corner casesIrfan Sheriff2010-08-251-15/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. if we try to use the api for an already connected network we could end up in disabling other networks since we dont get events back in that scenario. fix to ignore connect. 2. force transition to mDisconnectingState since we expect a disconnection when we connect to a network. If we are in the other child states in ConnectModeState and dont transition, we could ignore the connection/disconnection which would cause other networks to get disabled. Change-Id: I603d504af21c5ba09411d5e2515b8031b9f8a97a
* | | sendBroadcast needs protectionIrfan Sheriff2010-08-241-0/+2
| | | | | | | | | | | | | | | | | | we need to check if system is ready for broadcasts Change-Id: I342c51ae85c9ca1aa0cb289c673a20f582eb0423
* | | cache configured networksIrfan Sheriff2010-08-232-61/+97
| | | | | | | | | | | | | | | | | | | | | | | | Remove the sync-wait call into state machine for fetching configured networks Bug: b/2876746 Change-Id: I4434627abb78f7112fd613008c4c77374ac1b966
* | | Clean up synchronous callsIrfan Sheriff2010-08-231-95/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We dont plan to have asynchronous versions of the existing synchronous calls since we have added more powerful asynchronous calls. Remove functionality to check for synchronous calls. Also, remove unused sync call for fetching status Change-Id: I2982cb7b2aabc88a63289d49686a6e3645085263