1. 18 May, 2016 2 commits
  2. 17 May, 2016 12 commits
    • Randy Pan's avatar
      Merge changes from topic 'exponential backoff periodic scan' into nyc-dev · ac90f832
      Randy Pan authored
      * changes:
        WifiConfigManager: clean up makeChannelList()
        WifiStateMachine: clean up dead code
        WifiConnectivityManagerTest: exponential backoff periodic scan
        Restrict connectivty periodic scan
      ac90f832
    • TreeHugger Robot's avatar
    • Mukesh Agrawal's avatar
    • Randy Pan's avatar
      WifiConfigManager: clean up makeChannelList() · 304d3451
      Randy Pan authored
      Removed the unused input paramater 'restrict'. Updated its
      callers.
      
      Bug: 28786277
      Change-Id: I44dc870ce3f353698187f76e8996cc77395b17d3
      Tests: Wifi Framework Unit Tests, manual tests
      304d3451
    • Randy Pan's avatar
      WifiStateMachine: clean up dead code · 46604d0d
      Randy Pan authored
      Cleaned up the dead code from the original exponential back off
      scan implementation.
      
      Bug: 28750989
      Bug: 28070598
      
      Change-Id: I8abf82cdaa3530fb514794b4004c5d3f15950672
      Tests: Wifi Unit Tests, manual test
      46604d0d
    • Randy Pan's avatar
      WifiConnectivityManagerTest: exponential backoff periodic scan · b32b649c
      Randy Pan authored
      Add a couple of unit tests to cover the periodic scan exponential
      backoff feature.
      
      Extended MockAlarmManager class such that users can query a
      pending alarm's trigger time.
      
      Bug: 28750989
      Change-Id: I9520477180786fce2937e5fa87f790f60f12a3da
      b32b649c
    • Randy Pan's avatar
      Restrict connectivty periodic scan · ae9e0ef3
      Randy Pan authored
      When the phone screen is on, the periodic scan interval is setup
      in an exponential backoff fashion. Also, if the traffic is higher
      than certain threshold, perform scan on certain channels only
      instead of full band.
      
      Bug: 28627603
      Change-Id: I95b686d7835265d843edac7c005f661393ae5383
      ae9e0ef3
    • Roshan Pius's avatar
      SupplicantScannerImpl: Change PNO scan log location · ab3adbcc
      Roshan Pius authored
      Since PNO scans are started by the PNO debouncer (which debounces PNO state
      change for 5 seconds), the log message stating that we have started PNO
      scan should be moved to the location where the scan is actually started.
      
      This removes the confusion from the logs in the below case:
      05-16 16:51:40.135 D/SupplicantWifiScannerImpl(  876): Change PNO state
      from false to true
      05-16 16:51:42.356 D/SupplicantWifiScannerImpl(  876): Change PNO state
      from true to false
      05-16 16:51:45.109 D/SupplicantWifiScannerImpl(  876): Start PNO timer
      with delay 2247
      05-16 16:51:45.116 D/SupplicantWifiScannerImpl(  876): Starting wifi PNO
      scan
      05-16 16:51:50.111 D/SupplicantWifiScannerImpl(  876): Change PNO state
      from false to true
      05-16 16:51:52.368 D/SupplicantWifiScannerImpl(  876): Change PNO state
      from true to false
      05-16 16:51:55.143 D/SupplicantWifiScannerImpl(  876): Start PNO timer
      with delay 2225
      05-16 16:51:55.148 D/SupplicantWifiScannerImpl(  876): Starting wifi PNO
      scan
      
      BUG: 28800979
      Change-Id: Ib4cc7c59fde83a02a2b938fb334a85f0c046cd87
      ab3adbcc
    • Ningyuan Wang's avatar
      8adf99d6
    • The Android Automerger's avatar
    • Ningyuan Wang's avatar
      Fix null intent handling · cf731bc4
      Ningyuan Wang authored
      This also fixes the potential crash when handling intent
      with null action string.
      
      BUG=28689719
      TEST=compile
      TEST=runtest frameworks-wifi
      
      Change-Id: I6ef3e07e38f33d8c5040dd358f161224095189d6
      cf731bc4
    • mukesh agrawal's avatar
      packet fate: include status code for auth+associate · 5e550bdc
      mukesh agrawal authored
      During 802.11 authentication, we've seen wpa_supplicant
      report error information that is at odds with
      over-the-air traffic.
      
      For systems that provide packet fate for these early
      frames, we can gather better information about the
      auth process from the frames themselves.
      
      Specifically: we can include the status code in the
      packet fate summary. Make it so.
      
      While there:
      - fix a whitespace issue in parseIeee80211FrameCtrlType()
      - rename frameControlField, since it didn't really hold
        all of the frame control info. (frameControlField
        omitted the frame control flags.)
      - modify some packet fate tests to be less specific about
        expected whitespace; it's too hard to maintain the tests
        when exact whitespace matching is required
      
      BUG=28717266
      TEST=unit tests
      TEST=manual
      
      Manual test
      - configure hostapd to allow zero connections
      - configure bullhead to connect to hostapd
      $ adb shell dumpsys > /tmp/dumpsys
      - verify that packet fate summary shows auth frame with status 17
      
      Change-Id: Ib8742091d0a9acc7fdde0423229d150bf4c1c6d8
      5e550bdc
  3. 16 May, 2016 2 commits
  4. 13 May, 2016 1 commit
  5. 11 May, 2016 1 commit
  6. 10 May, 2016 4 commits
  7. 09 May, 2016 6 commits
  8. 08 May, 2016 1 commit
  9. 06 May, 2016 5 commits
    • Randy Pan's avatar
      WifiConfigManager: clean up log message level · 646ee770
      Randy Pan authored
      Quite some logs should be debug message instead of error
      message.
      
      Bug: 28619076
      Change-Id: Iee06f57bab58aeca881068f0b4f36a0d5bbb3230
      Test: Wifi Unit Tests
      646ee770
    • Ningyuan Wang's avatar
      Fix string comparision and return value in try catch block · b2c2f85c
      Ningyuan Wang authored
      This CL uses value comparision instead of reference comparision
      for strings.
      This also removes returning value in finally block, otherwise
      exception may be suppressed.
      
      BUG=28605846
      TEST=compile
      TEST=runtest frameworks-wifi
      
      Change-Id: I6ace4d233d2b0af3627f75dfdb7dcec6a46b0092
      b2c2f85c
    • Roshan Pius's avatar
      SupplicantScanner: Truncate hidden network list · 362fad8e
      Roshan Pius authored
      Truncate the hidden network id list if it goes beyond wpa_supplicant's
      max value. wpa_supplicant has a hard coded value of 16 for the max
      number of networks that can be specified for each scan.
      
      There is currently no way to query this value from wpa_supplicant, so
      hardcoding this value in SupplicantScanner.
      
      BUG: 28632556
      Change-Id: I31a338b91c221c1686437b738894e13abb897474
      TEST: Compiles & unit-test passes
      362fad8e
    • Randy Pan's avatar
      WifiStateMachine: fix setTargetBssid() · 85c0f06d
      Randy Pan authored
      Always return when the current preferred BSSID is the same as
      the target one. This was done previously only if the DBG flag
      is set.
      
      While there, fixed the log message wording a bit.
      
      Bug: 28619076
      Tests: Wifi unit tests, manual connection & roaming tests
      Change-Id: I109b57d54b1bcaccb00a148b488244b7d9358907
      85c0f06d
    • Randy Pan's avatar
      Clear config BSSID after successful roaming · a4e4bd02
      Randy Pan authored
      Clear the config BSSID after roaming completed and before entering
      ConnectedState. Wifi chipset may roam from this point on and
      having the BSSID specified by QNS would cause the roam to fail
      and the device to disconnect.
      
      We used to rely on the fact that entering ObtainingIpState
      clears the config BSSID. But this assumption was broken by
      commit bcbc449d, which changed from transition
      to ObtainingIpState to ConnectedState.
      
      Bug: 28520770
      Test: Wifi unit tests, manual tests
      Change-Id: I09a2d5d1132ff597c63a324a24d13719be384603
      a4e4bd02
  10. 05 May, 2016 2 commits
  11. 04 May, 2016 4 commits
    • Roshan Pius's avatar
      WifiConnectivityManager: Unit tests for metrics · 1d7d6239
      Roshan Pius authored
      Add couple of unit-tests for metrics. Had to migrate the unit-tests to use
      mock alarm manager.
      
      BUG: 27479439
      BUG: 27704599
      BUG: 28480516
      Change-Id: I1424053c35799905612b37edeb679e7556568ca5
      TEST: Compiles & unit-test passes
      1d7d6239
    • Mukesh Agrawal's avatar
    • Roshan Pius's avatar
      WifiConnectivityManager: Increment metrics · bacd0dca
      Roshan Pius authored
      Make changes to increment the watchdog related metrics in
      WifiConnectivityManager.
      
      PS: Will need to add mock alarm manager to add unit-tests here. This is
      done in the next CL.
      
      BUG: 27479439
      BUG: 27704599
      Change-Id: I96e35e06d222056ec29488666619486a65746b38
      bacd0dca
    • mukesh agrawal's avatar
      wifi_hal_stub: add stubs for packet fate · b070203c
      mukesh agrawal authored
      If the vendor's Wifi HAL does not provide packet fate
      functions, then WifiServiceImpl (and hence, system server)
      will crash when WifiLogger calls packet fate functions.
      
      Fix this, by providing stub implementations. These will
      be automatically overriden by vendor-provided implementations.
      
      BUG=28565646
      TEST=manual
      
      Manual test:
      - repeat for angler and bullhead:
        - try to connect to WPA-2 network with wrong password
        $ adb shell dumpsys > /tmp/dumpsys
        - verify that dumpsys contains "Last failed connection fates"
        - verify that dumpsys shows Authentication messages
      - on bullhead
        - hack up HAL, so that packet fate functions are not registered
        $ adb logcat -d | grep 'Failed to start packet fate'
          -> should see matching lines
        (with the hacked up HAL, and without this patch, the call to
        startPktFateMonitoring() causes a SIGSEGV, instead of just a
        clean failure message)
      
      Change-Id: I86ce34784dea396f9e8741353395cab1ec6e0913
      b070203c