Skip to content
Snippets Groups Projects
  1. Mar 06, 2023
    • Abhishek Pandit-Subedi's avatar
      floss: Refactor le reconnection during suspend · f232c698
      Abhishek Pandit-Subedi authored
      During system suspend, we need to use a separate set of LE scan window
      and intervals that are specifically tuned for this purpose. In order to
      do this only when suspended, we add |SetSystemSuspendState| to indicate
      when we're entering and existing suspend.
      
      We set the suspend state via |AllowWakeByHid| and remove the suspend
      state via |RestoreFilterAcceptList|. Currently, we only restore LE hid
      devices on resume to the accept list but we should also restore
      non-direct gatt connections in the future.
      
      Bug: 271159571
      Tag: #floss
      Test: Manual test, ChromeOS Autotest and unit tests
      Change-Id: I3e67f06f7667dec69379468cc51b8405cf10de10
      f232c698
    • Abhishek Pandit-Subedi's avatar
      floss: Refactor allow_wake_by_hid for classic · 8d4c318c
      Abhishek Pandit-Subedi authored
      Currently, allow_wake_by_hid tries to configure set event filter to
      allow all classic devices that are HID major class to attempt connection
      and wake us from suspend. This is insufficient to keep us from being
      woken by unbonded devices (which we don't want).
      
      The refactor does the following:
      * Gets a list of classic hid devices (where DevClass matches either
        keyboard or pointing device).
      * Program event filter using BD_ADDR instead of Class of Device
        filtering. Only bonded devices will be able to reconnect until we
        clear the Event Filter on resume.
      
      Bug: 269835025
      Tag: #floss
      Test: Manual suspend test + autotest
      Change-Id: I392bd63a8ebe0e8b7d53524dd24777b599ca8e41
      8d4c318c
  2. Mar 03, 2023
  3. Mar 02, 2023
Loading