summaryrefslogtreecommitdiffstats
path: root/wifi
Commit message (Collapse)AuthorAgeFilesLines
* Changed walled garden to better urlIsaac Levy2011-07-281-35/+22
| | | | | | | Now checking for walled gardens using 204 error code on http://clients3.google.com/generate_204 Change-Id: I0a00dc8b956f35f6695d2085c9f03ce40dc7e231
* Will not disable wifi on wifi-only devices.Isaac Levy2011-07-271-0/+32
| | | | | | | | - Turn off watchdog by default on wifi-only devices, b/5073657 - Do not disable wifi networks if connectivity manager reports no mobile connection. Change-Id: I835e753624fc5e447081cde473039011721112c6
* Run hostapd on a seperate threadIrfan Sheriff2011-07-261-38/+88
| | | | | | | | Hostapd start can block and state machine can be slow to respond. Refactor wifi state machine to handle this behavior. Bug: 5079498 Change-Id: Id7707bf2b0e1cb46a1f1374598ec4d7f6403ae1a
* Merge "Fix interface notification race"Irfan Sheriff2011-07-241-6/+9
|\
| * Fix interface notification raceIrfan Sheriff2011-07-241-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In one use case, I see that if we go straight from wifi client mode to tethering operation, the interface change notifications are reported in an order that causes to enter tethered state without actually tethering through connectivity service. It is because an interface down notification (from wifi going down) comes after we have started soft ap and we think we have tethered after calling startTethering and switch to Tethered state Instead, we should make sure tethering has started before going to Tethered state. Change-Id: Iba7e8fab0feeb5637d40938862a8638871df8b02
* | Updated: Wi-Fi p2p frameworkrepo sync2011-07-2420-222/+2832
|/ | | | | | | | | | First stage. Get the bones in right now even though we are not ready on the native side. Once, we have things underneath working - we will further update the framework Change-Id: I4a7dab5cd4267373dc5f8989ae4122f91c384ed5
* Handle hostapd and tether interface changesIrfan Sheriff2011-07-231-28/+74
| | | | | | | | | The set config will only update hostapd config file right now and we need to restart after that happens. Also, softap interface is changed to be the regular interface Bug: 5069108 Change-Id: Ibe80129b58e5339f06f186870bcd8f37569c6db3
* Fixing WifiWatchdog log flagIsaac Levy2011-07-221-1/+1
| | | | | | Accidentally merged verbose logging - setting to false. Change-Id: I6cd9321c7602d86aac4a8340ef0233310a665bd9
* Merge "Fix multicast API"Irfan Sheriff2011-07-212-16/+72
|\
| * Fix multicast APIIrfan Sheriff2011-07-212-16/+72
| | | | | | | | | | | | | | Fix multicast API and disable mutlicast V6 packets at driver start Bug: 5016558 Change-Id: I1e04a905a36045e52c785c1dc702cc246a381a57
* | WifiWatchdogSM notification for first wifi disableIsaac Levy2011-07-211-75/+247
| | | | | | | | | | | | | | Also moved customizable settings into Settings.Secure and added listeners for setting changes into the state machine. Change-Id: Ia6859c71f7edae13062685867959adc423af4643
* | Adding WifiInfo object in CONNECTED broadcastIsaac Levy2011-07-193-2/+31
|/ | | | | | | | | | | | | | | | | Adding a parsable wifiinfo object in Connected broadcast, public api. The connected broadcast only occurs on successful setup on the wifi interface, so in normal use is very infrequent (once if the wifi sleeps, or once at new hotspots, etc...) WifiInfo objects are small, <10 ints, <5 short strings, and contain info that could be useful to listeners, such as SSID. The alternative is to the poll the Wifi Manager, using getConnectionInfo. Because the Wifi Manager can update state in its own thread, polling the Wifi Manager might result in an info object that's out of sync from the received broadcast. Change-Id: Iafcec77f45dd094ea84e6022b7a40e8952ae8137
* WifiWatchdog rewrite to formal statemachineIsaac Levy2011-07-152-765/+825
| | | | | | Rewrote wifiwatchdog service to use net.statemachine Change-Id: Id6fd42b13192ac2e99f842ff50e9edff1696675d
* Merge "Moved WifiWatchdogService and DnsPinger"Irfan Sheriff2011-07-061-0/+765
|\
| * Moved WifiWatchdogService and DnsPingerIsaac Levy2011-07-061-0/+765
| | | | | | | | | | | | | | - Moved WWS and DnsPinger in prep for StateMachine rewrite intent. Change-Id: I912ca80d31ee2ded99eb345a2e5a55d01bd9910c
* | Log supplicant restart count correctlyJi-Hwan Lee2011-07-041-1/+1
|/ | | | | | Currently, it's always 0. Change-Id: I99b2d31e61e1ec7dfffc7a77e04f4059fd6869ef
* Merge "Fix IP address cleanup on network disconnect"Irfan Sheriff2011-06-171-9/+10
|\
| * Fix IP address cleanup on network disconnectIrfan Sheriff2011-06-171-9/+10
| | | | | | | | | | | | | | | | | | | | | | We used to bring down the interface on network disconnect which would in turn clean up all the IP addresses. The interface bringup/shutdown is now handled by wpa_supplicant. Add netd interface for clearing all IP addresses Bug: 4676254 Change-Id: I7e24c0ab2e4a412b8d61e9c33ce028966913aaf6
* | Fix network state handlingIrfan Sheriff2011-06-161-2/+6
|/ | | | | | | | | | | Change I242cda97 introduced a regression where network state was being modified on any supplicant state change. Revert the old behavior of only changeing network detailed state based on supplicant state change in a disconnected state Bug: 4690073 Change-Id: I927cc5fa36b862cc54661b033939f543cd15d31f
* am 241b65ac: am 5f350512: Merge "Reset connections AFTER we take down the ↵Robert Greenwalt2011-06-161-7/+3
|\ | | | | | | | | | | | | network." into honeycomb-LTE * commit '241b65aca93e263f0869c5bec4ad1dbda0dec6db': Reset connections AFTER we take down the network.
| * Reset connections AFTER we take down the network.Robert Greenwalt2011-06-161-7/+3
| | | | | | | | | | | | | | | | | | If you do it before you have a race condition and some apps will manage to reconnect on the dieing network before it goes and then get no notification when it goes. bug: 3408025 Change-Id: I5386ff313c759b3f687bc38731454ab43dbe76b8
* | Fix driver start/stop handlingIrfan Sheriff2011-06-103-66/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The driver start and stop events will be removed as they are now redundant (and incorrect) Move to using supplicant INTERFACE_DISABLED indication for deciding if driver has started or stopped When driver start is given, the supplicant will first switch to INTERFACE_DISABLED state and then out of it to start connecting. We should use this indication to find out driver has started When driver stop is given, the supplicant will just switch to INTERFACE_DISABLED state and this indicates driver has stopped Bug: 4550125 Change-Id: I242cda97951a733c8707c8d99cdfcc9a33b75c2d
* | Merge "Remove interface disable in wifistatemachine"Irfan Sheriff2011-06-091-3/+0
|\ \
| * | Remove interface disable in wifistatemachineIrfan Sheriff2011-06-091-3/+0
| | | | | | | | | | | | | | | | | | Supplicant now handles interface disable/enable on its own Change-Id: Ib104989dd49654befff82261cc531b0646c7b15d
* | | am 92593dc4: am 84db79bb: Merge "Clear IP configuration on lost network" ↵Irfan Sheriff2011-06-082-1/+19
|\ \ \ | |/ / |/| / | |/ | | | | | | into honeycomb-LTE * commit '92593dc49b348c4951037a1ae2fa17bb6644ffb9': Clear IP configuration on lost network
| * Clear IP configuration on lost networkIrfan Sheriff2011-06-072-1/+19
| | | | | | | | | | Bug: 4391449 Change-Id: I574128083a5612f13fcccaf5ed091eae114b7943
* | Add new states to support wpa_supplicant 0.8Irfan Sheriff2011-06-023-11/+57
| | | | | | | | | | | | | | | | | | | | | | Latest supplicant introduces the INTERFACE_DISABLED state. This is entered when the interface is brought down (which is effectively done by us and tracked already through the driver stop operation) Also, added is a state for tracking authentication when supplicant acts as the SME Change-Id: I76090068d0ebba6df76f16707da559fcbd7512c5
* | am c2ff0e70: am 9a737639: Merge "Clear network id when invalid" into ↵Irfan Sheriff2011-05-241-8/+12
|\ \ | |/ | | | | | | | | | | honeycomb-LTE * commit 'c2ff0e7031b54810d26e1d2a1ba9cdb529f25306': Clear network id when invalid
| * Clear network id when invalidIrfan Sheriff2011-05-231-8/+12
| | | | | | | | | | Bug: 4391449 Change-Id: If0902a3fe4ad65d34dfc3d60f0e630d5e868d6a9
* | am 5b9ceeba: am a4815c0e: am 9c9088a5: Merge "Move softap config handling to ↵Irfan Sheriff2011-05-194-37/+251
|\ \ | |/ | | | | | | | | | | WifiConfigStore" into honeycomb-mr2 * commit '5b9ceebafd36db4491a49c1f00750ce50c4d4433': Move softap config handling to WifiConfigStore
| * am 9c9088a5: Merge "Move softap config handling to WifiConfigStore" into ↵Irfan Sheriff2011-05-194-37/+251
| |\ | | | | | | | | | | | | | | | | | | honeycomb-mr2 * commit '9c9088a54f6dee7a13dcc7a12297137147b01baa': Move softap config handling to WifiConfigStore
| | * Move softap config handling to WifiConfigStoreIrfan Sheriff2011-05-184-37/+251
| | | | | | | | | | | | | | | | | | | | | | | | Move softap config to flat file and read/write on a seperate handler thread Bug: 4391796 Change-Id: Iafe43200d7f829df7ced20a4e7b0ed451ad22a05
| | * DO NOT MERGE Add DhcpStateMachineIrfan Sheriff2011-05-121-128/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add DhcpStateMachine for interation with dhcpcd - Supports wakeup and renewal on dhcp - Supports multiple controllers to use the state machine simultaneously - Optionally, a controller can request a notification prior to DHCP request/renewal being sent Change-Id: I5324814b19ff19863aa6fa89f1e3f0a202930c98
| | * DO NOT MERGE Define Protocol classIrfan Sheriff2011-05-061-56/+59
| | | | | | | | | | | | | | | | | | | | | Adds a common namespace for communication across different state machines Change-Id: Ib6a29715c651371f91a950348a8525275b6026a0
* | | resolved conflicts for merge of db46fa25 to masterRobert Greenwalt2011-05-021-17/+44
|\ \ \ | |/ / | | | | | | Change-Id: I8df9d5d07588fbd70e417dae567be26f645b74b6
| * | Merge "Add RouteInfo objects for tracking routes." into honeycomb-LTERobert Greenwalt2011-05-021-17/+44
| |\ \
| | * | Add RouteInfo objects for tracking routes.Robert Greenwalt2011-05-021-17/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Used to have list of gateways for default routes, but general static routes should be supported. Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
* | | | am d369d64e: am 8ab6a6d4: Merge "Add DhcpStateMachine for interation with ↵Irfan Sheriff2011-05-021-128/+150
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | dhcpcd" into honeycomb-LTE * commit 'd369d64ee7931726d479e60e64d76a31fdba4a8f': Add DhcpStateMachine for interation with dhcpcd
| * | | Add DhcpStateMachine for interation with dhcpcdIrfan Sheriff2011-04-301-128/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Supports wakeup and renewal on dhcp - Supports multiple controllers to use the state machine simultaneously - Optionally, a controller can request a notification prior to DHCP request/renewal being sent Change-Id: I3a9d7e6a02ff26be3a86ddca6964683ad3c28f93
* | | | am c1f39396: am 8f87f838: Merge "Define Protocol class for use with ↵Irfan Sheriff2011-04-281-56/+59
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | StateMachine" into honeycomb-LTE * commit 'c1f39396b94837f728c56b4c3e2f5c37e1d0eef7': Define Protocol class for use with StateMachine
| * | | Define Protocol class for use with StateMachineIrfan Sheriff2011-04-281-56/+59
| |/ / | | | | | | | | | | | | | | | | | | Adds a common namespace for communication across different state machines Change-Id: I0a9ae872112567afd35a1dc95ac9283170f3f459
* | | handle supplicant stop after child states exitIrfan Sheriff2011-04-191-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a user explicitly disables wifi, wait on the supplicant shut down until after all child states have handled exit - this avoids time outs due to communicating with supplicant after breaking the socket connection Bug: 4052161 Change-Id: Iec5bb3e14a2df4a8a12de8bb81d9c10aeb992ad4
* | | am 37677849: am 64c42cae: Rename HierarchicalStateMachine and ↵Wink Saville2011-04-183-75/+75
|\ \ \ | |/ / | | | | | | | | | | | | | | | HierarchicalState to StateMachine and State. * commit '37677849998e6c9a39afe0a730b2f0131a371f3b': Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
| * | Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.Wink Saville2011-04-183-75/+75
| | | | | | | | | | | | Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7
* | | Remove the deprecated things from Config.java. These haven't been working ↵Joe Onorato2011-04-071-6/+5
| | | | | | | | | | | | | | | | | | since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
* | | am f4a29403: resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aospRobert Greenwalt2011-04-071-0/+12
|\ \ \ | |/ / | | | | | | | | | * commit 'f4a29403ae5b6d3e8e754a025d33f0c33adecb21': Add external dependency API.
| * | Add external dependency API.Robert Greenwalt2011-04-071-0/+12
| |/ | | | | | | | | | | | | An APN will not be connected to if some external dependency is not met. bug:3486704 Change-Id: I7d94df343b260013efd11faa978deb13f07f1389
* | Add support for supplicant SCAN_INTERVALIrfan Sheriff2011-04-062-20/+48
| | | | | | | | | | | | | | | | Also, allow scan interval for framework and supplicant to be configured at build time or run time Bug: 4144882 Change-Id: I877f4bcc872597b44d3f4da85cf2bc0f16e09444
* | Update WakeLock-related docs to mention permissionsKenny Root2011-03-161-2/+5
|/ | | | | | | | android.permission.WAKE_LOCK permission is required to use WakeLock or WifiLock, but nowhere is it mentioned that you must declare that permission to use it. Change-Id: Ib5f5294d37e39169fe5678743f380d95c4e5a842
* Backup and restore IP and proxy settingsIrfan Sheriff2011-03-104-0/+25
| | | | | Bug: 4081954 Change-Id: I27266637c6ade0c5c8242792176d1edae0983446