1. 19 12月, 2020 1 次提交
  2. 07 12月, 2020 8 次提交
  3. 11 11月, 2020 1 次提交
  4. 09 11月, 2020 2 次提交
  5. 25 9月, 2020 1 次提交
  6. 20 9月, 2020 1 次提交
  7. 15 9月, 2020 1 次提交
    • D
      Bluetooth: pause/resume advertising around suspend · 53274477
      Daniel Winkler 提交于
      Currently, the controller will continue advertising when the system
      enters suspend. This patch makes sure that all advertising instances are
      paused when entering suspend, and resumed when suspend exits.
      
      The Advertising and Suspend/Resume test suites were both run on this
      change on 4.19 kernel with both hardware offloaded multi-advertising and
      software rotated multi-advertising. In addition, a new test was added
      that performs the following steps:
      * Register 3 advertisements via bluez RegisterAdvertisement
      * Verify reception of all advertisements by remote peer
      * Enter suspend on DUT
      * Verify failure to receive all advertisements by remote peer
      * Exit suspend on DUT
      * Verify reception of all advertisements by remote peer
      Signed-off-by: NDaniel Winkler <danielwinkler@google.com>
      Reviewed-by: NAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      53274477
  8. 13 9月, 2020 1 次提交
    • A
      Bluetooth: Set ext scan response only when it exists · 6baf8a6a
      Abhishek Pandit-Subedi 提交于
      Only set extended scan response only when it exists. Otherwise, clear
      the scan response data.
      
      Per the core spec v5.2, Vol 4, Part E, 7.8.55
      
      If the advertising set is non-scannable and the Host uses this command
      other than to discard existing data, the Controller shall return the
      error code Invalid HCI Command Parameters (0x12).
      
      On WCN3991, the controller correctly responds with Invalid Parameters
      when this is sent.  That error causes __hci_req_hci_power_on to fail
      with -EINVAL and LE devices can't connect because background scanning
      isn't configured.
      
      Here is an hci trace of where this issue occurs during power on:
      
      < HCI Command: LE Set Extended Advertising Parameters (0x08|0x0036) plen 25
              Handle: 0x00
              Properties: 0x0010
                Use legacy advertising PDUs: ADV_NONCONN_IND
              Min advertising interval: 181.250 msec (0x0122)
              Max advertising interval: 181.250 msec (0x0122)
              Channel map: 37, 38, 39 (0x07)
              Own address type: Random (0x01)
              Peer address type: Public (0x00)
              Peer address: 00:00:00:00:00:00 (OUI 00-00-00)
              Filter policy: Allow Scan Request from Any, Allow Connect...
              TX power: 127 dbm (0x7f)
              Primary PHY: LE 1M (0x01)
              Secondary max skip: 0x00
              Secondary PHY: LE 1M (0x01)
              SID: 0x00
              Scan request notifications: Disabled (0x00)
      > HCI Event: Command Complete (0x0e) plen 5
            LE Set Extended Advertising Parameters (0x08|0x0036) ncmd 1
              Status: Success (0x00)
              TX power (selected): 9 dbm (0x09)
      < HCI Command: LE Set Advertising Set Random Address (0x08|0x0035) plen 7
              Advertising handle: 0x00
              Advertising random address: 08:FD:55:ED:22:28 (OUI 08-FD-55)
      > HCI Event: Command Complete (0x0e) plen 4
            LE Set Advertising Set Random Address (0x08|0x0035) ncmd
              Status: Success (0x00)
      < HCI Command: LE Set Extended Scan Response Data (0x08|0x0038) plen 35
              Handle: 0x00
              Operation: Complete scan response data (0x03)
              Fragment preference: Minimize fragmentation (0x01)
              Data length: 0x0d
              Name (short): Chromebook
      > HCI Event: Command Complete (0x0e) plen 4
            LE Set Extended Scan Response Data (0x08|0x0038) ncmd 1
              Status: Invalid HCI Command Parameters (0x12)
      Signed-off-by: NAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
      Reviewed-by: NDaniel Winkler <danielwinkler@google.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      6baf8a6a
  9. 31 7月, 2020 1 次提交
    • A
      Bluetooth: use the proper scan params when conn is pending · 9a9373ff
      Alain Michaud 提交于
      When an LE connection is requested and an RPA update is needed via
      hci_connect_le_scan, the default scanning parameters are used rather
      than the connect parameters.  This leads to significant delays in the
      connection establishment process when using lower duty cycle scanning
      parameters.
      
      The patch simply looks at the pended connection list when trying to
      determine which scanning parameters should be used.
      
      Before:
      < HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 8
                                  #378 [hci0] 1659.247156
              Own address type: Public (0x00)
              Filter policy: Ignore not in white list (0x01)
              PHYs: 0x01
              Entry 0: LE 1M
                Type: Passive (0x00)
                Interval: 367.500 msec (0x024c)
                Window: 37.500 msec (0x003c)
      
      After:
      < HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 8
                                     #39 [hci0] 7.422109
              Own address type: Public (0x00)
              Filter policy: Ignore not in white list (0x01)
              PHYs: 0x01
              Entry 0: LE 1M
                Type: Passive (0x00)
                Interval: 60.000 msec (0x0060)
                Window: 60.000 msec (0x0060)
      Signed-off-by: NAlain Michaud <alainm@chromium.org>
      Reviewed-by: NAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
      Reviewed-by: NYu Liu <yudiliu@google.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      9a9373ff
  10. 30 7月, 2020 5 次提交
  11. 15 7月, 2020 1 次提交
  12. 08 7月, 2020 1 次提交
  13. 07 7月, 2020 1 次提交
  14. 25 6月, 2020 1 次提交
  15. 22 6月, 2020 1 次提交
  16. 18 6月, 2020 3 次提交
  17. 12 6月, 2020 1 次提交
  18. 04 6月, 2020 1 次提交
  19. 13 5月, 2020 3 次提交
  20. 11 5月, 2020 1 次提交
  21. 15 4月, 2020 1 次提交
  22. 18 3月, 2020 1 次提交
  23. 12 3月, 2020 2 次提交