Skip to content
Snippets Groups Projects
  1. May 20, 2022
  2. May 04, 2022
  3. Apr 20, 2022
    • Henri Chataing's avatar
      gd: Fix typo in ErrorCode::UNSUPORTED_FEATURE_OR_PARAMETER_VALUE · e641e63e
      Henri Chataing authored
      Test: build libbluetooth
      Change-Id: I1e5a5a5ad4174f7ba603045dc19dab436cf4554d
      e641e63e
    • Henri Chataing's avatar
      Root-Canal: Fix event type sent for LE Connection completion · 86b70880
      Henri Chataing authored
      Previoulsy Root-Canal always notified LE connection completion
      with the event LE_Connection_Complete. However the specification
      indicate that LE_Enhanced_Connection_Complete should be used
      in preference if the event is unmsked by the host.
      
      This patch modifies the behaviour of HandleLeConnect to:
      - Send LE_Enhanced_Connection_Complete or LE_Connection_Complete
        events only if unmasked by the host.
      - Send LE_Enhanced_Connection in preference to LE_Connection_Complete
        when unmasked.
      
      Test: PTS VCS test against Eiffel
      Change-Id: Ibc90196e1ed716643e82c2c630e4c9a5354bc3ae
      86b70880
    • Henri Chataing's avatar
      Root-Canal: Add PDL definition of LL feature bits · 3ec77bca
      Henri Chataing authored
      The LE local supported features mask was previously defined
      as an hexadecimal value, making it complex to read and edit.
      
      Define an enum with LL feature bit values, and initialize the
      le_supported_features_ field in DeviceProperties using
      an explicit feature list.
      
      Bug: 228326164
      Test: VCS PTS tests against Eiffel
      Change-Id: I2bbc1b6ac4f6f825437ad889ba910192e6a2d7d8
      3ec77bca
  4. Apr 18, 2022
  5. Apr 13, 2022
    • David Duarte's avatar
      PDL: Remove Located and Named trait · 1eb3520f
      David Duarte authored
      The traits were not used for dynamic dispatch nor
      for generic code.
      The `Named` trait was also directly implemented on
      stdlib types (via FieldPath).
      
      As the trait was not giving any advantages over
      a direct impl, remove them and put methods
      directly on the ast nodes.
      
      Test: compiles
      Change-Id: I5ccf498cf985ea4206c2fb42bed5e0d7eb3c5b92
      1eb3520f
    • David Duarte's avatar
      PDL: Remove unnecessary `extern crate` · f9dff389
      David Duarte authored
      Test: compiles
      Change-Id: Ifcd68ba5864183e89f902ebed62ae18bd3dd3738
      f9dff389
    • David Duarte's avatar
      PDL: Add OWNERS · 5d86199b
      David Duarte authored
      Test: None
      Change-Id: Ie4056c0fbcf1ae4a68bc51c96f016aa801b2f166
      5d86199b
  6. Apr 11, 2022
    • Henri Chataing's avatar
      PDL: Change the scoping of packet and group declarations · 5f8df1ad
      Henri Chataing authored
      Packet, struct, and group previously lived in different scopes,
      which allowed packets and structs to have the same name.
      This impacts the rust code generation as packets and structs are
      disambiguated by adding appropriate suffixes, which is undesirable.
      
      Packets and groups are now declared in the same namespace
      as structs and other typedef declarations. An error is raised
      if a packet is declared with the same name as another struct or
      group declaration.
      
      Test: pdl_inline_tests, validate hci_packets.pdl file
      Bug: 228327522
      Change-Id: I8055bed118e04de7297e240ac075ca529b5a8f8a
      5f8df1ad
    • David Duarte's avatar
      RootCanal: Remove usage of a cc_object for devices · 0a9fbc5a
      David Duarte authored
      The single object is triggering CFI as this file doesn't
      contains LTO that are required for Control Flow Integrity
      to work
      
      Bug: 228517914
      Test: Run RootCanal and see that we have devices registering
      Change-Id: I9289efc6e786c4ac830f65d6cc23da2c6492f350
      0a9fbc5a
  7. Apr 08, 2022
    • Henri Chataing's avatar
      PDL: Unify the declaration scope for Packet and Struct declarations · cc9c9633
      Henri Chataing authored
      Packet and Struct currently live in different scopes, which allows
      packet and struct to have the same name. This impacts the rust
      code generation as packets and structs are disambiguated by adding
      appropriate suffixes, which is undesirable.
      
      This change renames the few name conflicts in hci_packets.pdl that
      prevent an immediate enforcement of this new rule.
      
      Bug: 228327522
      Test: Tested libbluetooth, root-canal target compilation
      Change-Id: I88bbd394b56dbf6ac24ead4dcdeddcd467f71426
      cc9c9633
  8. Apr 04, 2022
    • Martin Geisler's avatar
      pdl: use docstrings instead of attribute arguments · c07057c7
      Martin Geisler authored
      Editors typically have better support for editing text in docstrings
      than in attributes.
      
      Test: pdl --help
      Change-Id: I3b1062a188feb6d34d727442390bf1859270bf77
      c07057c7
    • Martin Geisler's avatar
      pdl: fix computation of `SourceLocation` line numbers · 58836880
      Martin Geisler authored
      Before, we would always exit the loop at the first iteration since the
      `line_starts` passed in start with a zero offset. We should actually
      search through the line starts to find the last line which starts
      before the given offset.
      
      This also adds new unit tests to cover this.
      
      Test: atest pdl_inline_tests
      Change-Id: I171803822c3cb58deec167a2bc063cbd8f99110f
      58836880
  9. Mar 31, 2022
  10. Mar 28, 2022
  11. Mar 23, 2022
    • David Duarte's avatar
      RootCanal: Split HciSocketDevice into HciDevice + HciSocketTransport · 1a7196e4
      David Duarte authored
      This is done by introducing a new HciTransport pure virtual class
      used by HciDevice and implemented by HciSocketTransport
      
      This make it possible to create other transport than the
      HciSocketTransport
      
      All the hci related code is also moved into a new model/hci
      folder
      
      Test: gd/cert/run
      Change-Id: I7f5259aa87c51d58fc4c7c7c666e62060491f30f
      1a7196e4
  12. Mar 22, 2022
  13. Mar 17, 2022
  14. Mar 11, 2022
  15. Mar 10, 2022
  16. Mar 09, 2022
    • Myles Watson's avatar
      RootCanal: Send LeReadRemoteFeatures on LE link · 13188fa1
      Myles Watson authored
      Bug: 223660948
      Test: cert/run
      Tag: #gd-refactor
      Change-Id: Ibde188d6ceceaa42314487fa3ef53c8900cc9de7
      13188fa1
    • Henri Chataing's avatar
      Root-Canal: Explicitly set initial advertising parameters · 19cc7715
      Henri Chataing authored
      The Core specification does not require that
      LE Set Advertising Parameters be called before
      LE Set Advertising Enable; instead default values
      are specified for all advertising parameters.
      
      This change lets hosts enable advertising
      using the default parameters.
      
      Test: PTS test GATT/SR/GAD/BV-01-C against Eiffel stack
      Change-Id: I5d429d40eddb7ceff3d33a7d864db48a8f2ed3e9
      19cc7715
  17. Mar 08, 2022
    • David Duarte's avatar
      RootCanal: Move into tools/ · 18c8bb01
      David Duarte authored
      Rename the namespace from test_vendor_lib to rootcanal
      
      Test: None
      Change-Id: I9cf72eef6c6100888faa0e6344ebd4c5b7ec716e
      18c8bb01
  18. Mar 07, 2022
    • David Duarte's avatar
      Create a new tools/ folder · fe376710
      David Duarte authored
      This folder will host Bluetooth tools
      The OWNERS file is copied from system/
      
      Test: None
      Change-Id: I29f3fc32794692ad2e62cc0e31a4339a4a2b1ea4
      fe376710
Loading