summaryrefslogtreecommitdiff
path: root/wifi/java/android/net/wifi/WifiWatchdogStateMachine.java
AgeCommit message (Collapse)Author
2013-12-11Move Wifi/P2p service components under servicesVinit Deshapnde
Some methods need to be public, since frameworks/base complies before frameworks/base/services; and services takes build dependency on base. Similar issue exists with WifiEnterpriseConfig constants. Bug: 9907308 Change-Id: Ied0e3dee0b25c939067dbc66867a9814b3b3b68e
2013-11-20Remove unused imports from frameworks/base.John Spurlock
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-09-19Remove STOPSHIP in WifiWatchdogStateMachineYuhao Zheng
There used to be some STOPSHIP code in WifiWatchdogStateMachine for debug purposes. We don't need them for the release. Bug: 10841961 Change-Id: I501d62e9891ace52317e6c1d399b877175099a3c
2013-03-14Fix msg argument usageIrfan Sheriff
Change-Id: I5b38dcbae3918a1e8c828d6e246eadf520d06c06
2013-01-28Add protected log methods to StateMachineWink Saville
This allow child classes to Override the logging and have consistent behavior across StateMachines. Change-Id: I7e23a44d08ca304ade2d7830fd0e307f63f1879e
2012-11-30Cleanup loggingIrfan Sheriff
Change-Id: Ieea19853c069266b55cad80cce3743b5ba91218a
2012-10-16Handle null BSSIDIrfan Sheriff
The root cause of why bssid needs investigation, but for now, we can avoid crashing wifiwatchdog. When bssid is null, just treat it as a good link. Bug: 7357232 Change-Id: I080dfc990f3412646976cdc6ef75112ab093d326
2012-10-09Fix buildIrfan Sheriff
had local changes from b/7318044 Change-Id: Idc6907d648a07d36f93dee859e361e9655cdd8e6
2012-10-09Disable poor network avoidance by defaultIrfan Sheriff
Bug: 7318044 Change-Id: Icf27e823453eeaba901aad6f3f8eedea242794f9
2012-09-26First step towards cleaning up Global settings.Jeff Sharkey
Remove all @Deprecated @hide settings, and clean up any stragglers. Bug: 7232125 Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
2012-08-27Captive portal handlingIrfan Sheriff
We now notify the user of a captive portal before switching to the network as default. This allows background applications to continue to work until the user confirms he wants to sign in to the captive portal. Also, moved out captive portal handling out of wifi as a seperate component. Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
2012-08-15CTS test for WiFi watchdog - framework support.Yuhao Zheng
The new WiFi watchdog requires kernel/driver to export some packet loss counters. This CTS tests whether those counters are correctly exported. Change-Id: I41999676f8488e86f35f1f8214ce668f1a2b5638
2012-08-06WifiWatchdog changes for poor link detectionYuhao Zheng
- use packet loss (wlutil pktcnt) instead of frame loss, retune all parameters - use wpa_supplicant to get packet loss counters, instead of netd - handle BSSID roaming in all situations - improve flapping avoidance mechanism by setting different target RSSI - handle high packet loss in high RSSI (never seen in real testing) - add more comments on how to set all parameters Signed-off-by yuhaozheng@google.com Change-Id: I33429f063d8625a458be4791edd83a86d5a723df
2012-06-21Move ARP test functionality to ArpPeerIrfan Sheriff
Change-Id: Iecd6037cf8e0faa626ba6c27cef014822a6bc61b
2012-05-31Fix walled garden detection on nakasiIrfan Sheriff
Bug: 6576101 Change-Id: Iad2ea67e54662cd30a0e7425dab2a6174d13d152
2012-05-09Tone down poor connection avoidanceIrfan Sheriff
Until we figure out a way to compare a poor mobile network against and poor wifi network and then weighing in other factors, tone down wifi avoidance aggressiveness Bug: 6456541 Change-Id: Idc81e4d83f47c9870abbdb4359ddfeaffdcca838
2012-03-12Improve network avoidanceIrfan Sheriff
Adds a back-off based technique where the amount of time we wait before avoiding wi-fi is increased. This will reduce power consumption on devices that are experiencing high variance on wi-fi Change-Id: I40da03edfb5373ddb51056818ca0744dc26a5600
2012-03-08Enhancements for avoiding poor connection on wifiIrfan Sheriff
- Avoid flapping - Increase thresholds and monitor rssi more closely to detect consistently weak signal Change-Id: I6139a20b7306839b345146a72ce690020a2e00b8
2012-02-29Improve Wi-Fi hand-offIrfan Sheriff
When Wi-fi connects at L2 layer, the beacons reach and the device can maintain a connection to the access point, but the application connectivity can be flaky (due to bigger packet size exchange). We now use Watchdog to monitor the quality of the last hop on Wi-Fi using signal strength and ARP connectivity as indicators to decide if the link is good enough to switch to Wi-Fi as the uplink. ARP pings are useful for link validation but can still get through when the application traffic fails to go through and thus not best indicator real packet loss since they are tiny packets (28 bytes) and have much low chance of packet corruption than the regular data packets. Signal strength and ARP used together ends up working well in tests. The goal is to switch to Wi-Fi after validating ARP transfer and RSSI and then switching out of Wi-Fi when we hit a low signal strength threshold and waiting until the signal strength improves and validating ARP transfer. Change-Id: Ica593291ec7772da892f03cf45b649635b730c47
2011-12-09Remove explicit network disabling codeIrfan Sheriff
We are going to always disable the notification Bug: 5556629 Change-Id: I981eb55a1bb6f44defd674e3a86d9c6f3805f4fc
2011-12-06Disable poor network connection aloneIrfan Sheriff
- Keep the walled garden detection in place Bug: 5719771 Change-Id: I9e5d69b6d56096be904106b1db48c02db4c0fb50
2011-12-06am 7b62313e: Disable wifiwatchdog for nowIrfan Sheriff
* commit '7b62313eab4af8835a64fb3fe1e15e5e534a9479': Disable wifiwatchdog for now
2011-12-06Disable wifiwatchdog for nowIrfan Sheriff
Change-Id: I2ac4fa706f3d0a415cb8e86002173b776aba4e02
2011-12-05Switch to notifications for walled gardenIrfan Sheriff
Also, switches the URL for browser to the actual URL used for checking walled garden Bug: 5398921 Change-Id: Ie4d4b1d47f4151d0f85975b10190bdcf5f2e7a57
2011-10-19Add a delay before walled garden testIrfan Sheriff
This allows a carrier app to authenticate before we notify the user. For future, we will provide an API that allows app to disable the walled garden check. Bug:5398921 Change-Id: Iff98ddaaa9fa38def4f43b1995f4b2c36f93a919
2011-10-04Reduce/Fix system loggingIrfan Sheriff
Bug: 5410239 Change-Id: I2f91dfde0b701e8905a1235696591b3154693c7c
2011-09-23Fix watchdog to stop ping after wifi disconnectsIrfan Sheriff
- The pings are delayed async messages that were getting handled after a disconnect as well - Increase poll time to 200 ms, so we block on a receive for 1ms every 200ms for a sent packet Bug: 5361564 Change-Id: I1931a1c4146e78a87407d541d8c3934ff8232604
2011-09-09Finalize wifi watchdog default settingsIrfan Sheriff
- Reduce DNS counts from 15 to 5. 15 was for debug. - Keep success scenario as atleast 1 being successful - Wait for a second to start checks (for some setups) - Use one bar as a start for doing periodic DNS checks - Do a DNS check every hour (instead of half hour) Bug: 5284337 Change-Id: Ie64d8cac48318a0c4c59f91ad21f8c6712b71338
2011-08-31Create new isNetworkSupported APIRobert Greenwalt
Useful for checking if on a wifi-only device. Similar to asking for NetworkInfo for a network type and checking for null, though here the intent is explicit. bug:5087537 Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
2011-08-23Added support for multiple DNS servers.Isaac Levy
Also increased delay on repeat checks for WWSM. Change-Id: Ic11b1f37a910c483f48e04dadb539b39fe50e622
2011-08-09DnsPinger -- log setup problemsIsaac Levy
Changed class to send a pings for 1.5 seconds to see if conn problems are resolving after time. Turning RD flag on for now Change-Id: I05bcf208bda3ea8fb98bd7aec8f0109523d64583
2011-08-05Watchdog notify on explicit connectIsaac Levy
Notifies when user explicitly clicks on wifi dialog. Change-Id: I5eee37d68b422d748d41e9384d5006482a223dc5
2011-08-04Rewrote DnsPinger - now is async and concurrantIsaac Levy
Change-Id: I93e1374ae857832935202614e34ce18f040fcfc7
2011-07-28Changed walled garden to better urlIsaac Levy
Now checking for walled gardens using 204 error code on http://clients3.google.com/generate_204 Change-Id: I0a00dc8b956f35f6695d2085c9f03ce40dc7e231
2011-07-27Will not disable wifi on wifi-only devices.Isaac Levy
- 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
2011-07-22Fixing WifiWatchdog log flagIsaac Levy
Accidentally merged verbose logging - setting to false. Change-Id: I6cd9321c7602d86aac4a8340ef0233310a665bd9
2011-07-21WifiWatchdogSM notification for first wifi disableIsaac Levy
Also moved customizable settings into Settings.Secure and added listeners for setting changes into the state machine. Change-Id: Ia6859c71f7edae13062685867959adc423af4643
2011-07-15WifiWatchdog rewrite to formal statemachineIsaac Levy
Rewrote wifiwatchdog service to use net.statemachine Change-Id: Id6fd42b13192ac2e99f842ff50e9edff1696675d