1. 18 May, 2016 5 commits
    • TreeHugger Robot's avatar
    • Randy Pan's avatar
      WifiConnectivityManager: partial scan only when connected · ee9329dc
      Randy Pan authored
      Starts partial scan only when Wifi is connected and traffic
      is heavy. This is to work around an issue that WifiInfo
      tx/rx rate is not updated to reflect the Wifi state. Ideally
      the tx/rx rate should have been reset to 0 when Wifi is
      disconnected.
      
      Bug: 28831562
      Change-Id: Ifa415b14e2b216654ddd8a2a0c885754da489bef
      Test: Wifi Framework Unit Tests, manual tests
      ee9329dc
    • Mukesh Agrawal's avatar
      Merge changes I5884dee0,I6f4cb00c into nyc-dev · 43d1480f
      Mukesh Agrawal authored
      * changes:
        WifiLogger: use large ringbuffers on eng/userdebug
        WifiService: add build properties abstraction
      43d1480f
    • mukesh agrawal's avatar
      WifiLogger: use large ringbuffers on eng/userdebug · 8df302f5
      mukesh agrawal authored
      We're having trouble resolving some field reports, due
      to insufficient time coverage in the HAL ring buffers.
      
      Increase the ringbuffer size of eng/userdebug builds,
      to make it easier to debug issues reported by
      dogfooders.
      
      This change will be reverted closer to launch.
      (b/28822174 has been filed for the reversion.)
      
      BUG=28729317
      TEST=unit tests
      
      Change-Id: I5884dee05db79245d211a457ff44b5e7b96ddbcb
      8df302f5
    • mukesh agrawal's avatar
      WifiService: add build properties abstraction · b6d6e31d
      mukesh agrawal authored
      As it turns out, WifiStateMachine isn't the only thing that
      wants to change its logging behavior depending on
      Build.TYPE.
      
      1) Add an abstraction of Build.TYPE, so that we can
         a) check build type in a common way, and
         b) test the logging behavior across build types
      2) Migrate WifiStateMachine to use this new abstraction.
      
      BUG=28822027
      TEST=unit tests
      
      Change-Id: I6f4cb00ccb5f3a4b9a5b67e69f8365aab7fd429c
      b6d6e31d
  2. 17 May, 2016 11 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
    • 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 1 commit
  4. 13 May, 2016 1 commit
  5. 10 May, 2016 3 commits
  6. 09 May, 2016 6 commits
  7. 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
  8. 05 May, 2016 1 commit
  9. 04 May, 2016 7 commits