1. 04 May, 2016 1 commit
  2. 03 May, 2016 2 commits
  3. 02 May, 2016 4 commits
  4. 30 Apr, 2016 1 commit
  5. 29 Apr, 2016 2 commits
    • Rebecca Silberstein's avatar
      WifiLastResortWatchdog: update config if not null · 91a8893f
      Rebecca Silberstein authored
      When new scan results are processed, networks already stored as the
      available networks may have updated configs passed in, but they may also
      have null configs.  The null configs should not be used to update the
      stored config.  Added a check to determine if the passed in config is
      not null before the update.
      
      In addition, debugging output also reported the value of
      HasEverConnected as false for networks with a null config.  This was
      updated to report null_config instead.
      
      Added tests covering config updates.
      Added tests for debugging output.
      
      BUG: 28451079
      Change-Id: Iff9888ab87c61619b2f865516eca22d87eb4f4b8
      91a8893f
    • Randy Pan's avatar
      Fix check on current connected/connecting network · 50abba06
      Randy Pan authored
      Keep track of the network BSSID of the last connection attempt.
      This BSSID is checked in case the phone is still in the process of
      connecting to that network. mWifiInfo is checked for the currently
      connected network. This is for the case that firmware performed
      roaming automatically.
      
      While there, addressed a checkstyle issue.
      
      Bug: 28462151
      Change-Id: Ia9316048e0549036de1c20bf1f3099cfcda9a75e
      Test: WiFi unit tests
      50abba06
  6. 27 Apr, 2016 4 commits
    • TreeHugger Robot's avatar
      ddf3afe3
    • TreeHugger Robot's avatar
      Merge changes I91ad6127,I416bfd0e into nyc-dev · 7883cf59
      TreeHugger Robot authored
      * changes:
        WifiLastResortWatchdog trigger logic
        WifiLastResortWatchdog failure counting
      7883cf59
    • Glen Kuhne's avatar
      WifiLastResortWatchdog metrics · 5f001750
      Glen Kuhne authored
      Added logging of various metrics to the WifiLastResortWatchdog. These
      metrics count the number of times the Watchdog triggers, and stats
      counting the number of networks present at failure time for different
      failure types.
      
      BUG=27856474
      
      Change-Id: If43836b1c33791fefb8000196b231c312161feef
      5f001750
    • Glen Kuhne's avatar
      WifiLastResortWatchdog trigger logic · 83f2b808
      Glen Kuhne authored
      Implemented trigger condition logic that is checked after a failure is
      counted. The condition takes into account: failure counts, wifi
      connected state, past connections to saved networks and whether the
      watchdog has fired since the wifi environment changed.
      
      Please note: This change only implements the logic for deciding when to
      trigger, not the trigger itself.
      
      BUG=27856709
      
      Change-Id: I91ad6127a72ca24c72a5520348c4fff83f16b559
      83f2b808
  7. 26 Apr, 2016 9 commits
  8. 25 Apr, 2016 5 commits
  9. 22 Apr, 2016 6 commits
    • Roshan Pius's avatar
      WificonfigManager: Split out scandetail to network lookup · f799eff7
      Roshan Pius authored
      Create a separate method to fetch the saved network from scan detail.
      This can be used for caching dtim values in WifiStateMachine.
      
      BUG: 26494190
      TEST: Compiles & unit-test passes
      
      Change-Id: Ib5819fd72afc3dcf691735deccb237874eac3f8d
      f799eff7
    • Ningyuan Wang's avatar
      Optimize logcat fetching by using logcat -t option · 37e07335
      Ningyuan Wang authored
      WifiLogger::getOutput() sometimes takes more than a few
      seconds because it fetchs the entire logcat buffer then takes
      the most recent 127 lines.
      Since it is a blocking call, it may increase the chance that
      WifiService being killed by WatchDog.
      
      This change uses logcat -t option, only fetching the
      most recent 127 lines. It significantly reduces the time of the
      blocking call.
      
      BUG=28298654
      TEST=unit tests, manual test
      Manual test:
      - boot device
      $ adb logcat -d | wc -l
        -> repeat until >127
      $ adb bugreport > /tmp/bugreport
      - check that ‘system log:’ section contains 127 lines.
      
      Change-Id: Ifcfb9e53a7c8b731e76cab1f25cec1bc0c83f33e
      37e07335
    • pkanwar's avatar
      Fix the string equality check, to avoid a possible NPE. · a7bf9d90
      pkanwar authored
      b/27905553  This fixes CTS failures in testProtectedBroadcasts in
      android.permission.cts.TelephonyManagerPermissionTest.
      
      Currently the "state" variable can be null, so the equality condition 
      has been rearranged to avoid the NPE.
      
      Change-Id: I0326df8680c6e37bc2151a38f8f74305b3f8de79
      a7bf9d90
    • Roshan Pius's avatar
      Merge changes I2bfae3a9,I3e247667 into nyc-dev · c7338605
      Roshan Pius authored
      * changes:
        WifiConnectivityManager: Unit tests for rate limit
        WifiConnectivityManager: Connection rate limit
      c7338605
    • TreeHugger Robot's avatar
    • mukesh agrawal's avatar
      WifiStateMachine: dynamically configure WifiHAL log level · ced2db17
      mukesh agrawal authored
      By default, VERBOSE level logging is disabled for native code.
      However, when debugging Wifi issues, we'll sometimes want to
      include VERBOSE level log messages from the HAL implementation.
      
      Update WifiStateMachine's verbose-debugging logic, to support
      this case.
      
      Note that VERBOSE level messages will not be compiled in
      on user builds. Nor will system server be permitted to change
      the logging level on user builds. For these reasons, the
      log level is only modified on non-user builds.
      
      BUG=27857554
      TEST=manual
      
      Manual test (bullhead + forthcoming HAL patch)
      - On userdebug build with 'Enable Wi-Fi Verbose Logging' set:
        $ adb reboot && adb wait-for-device && adb logcat -d | grep 'V WifiHAL'
        -> matching lines seen
        $ adb shell getprop | grep WifiHAL
        [log.tag.WifiHAL]: [V]
      - On userdebug build with 'Enable Wi-Fi Verbose Logging' unset:
        $ adb reboot && adb wait-for-device && adb logcat -d | grep 'V WifiHAL'
        -> NO matching lines
        $ adb shell getprop | grep WifiHAL
        [log.tag.WifiHAL]: [D]
      - On user build with 'Enable Wi-Fi Verbose Logging' set:
        $ adb logcat -d | grep 'V WifiHAL'
        -> NO matching lines
        $ adb shell getprop | grep WifiHAL
        -> NO matching lines
      
      Change-Id: I43af6852cd445f9a7daee04981f253a6c0ebc499
      ced2db17
  10. 21 Apr, 2016 6 commits