Skip to content
Snippets Groups Projects
  1. Nov 04, 2022
  2. Nov 03, 2022
    • Henri Chataing's avatar
      RootCanal: Remove unecessary std::move in DualModeController · 9e780ad1
      Henri Chataing authored
      - Add definition of SetEventMaskPage2 in hci_packets.pdl
      - Use generated class for SetResolvablePrivateAddressTimeout
      - Remove unecessary validation of LeIsoCommand views
      
      Test: m root-canal
      Change-Id: I223c9f56839a734f6b11e37a7ae3417ef9c25153
      9e780ad1
    • Henri Chataing's avatar
      RootCanal: Misc improvements · 1d8c3191
      Henri Chataing authored
      - Remove some declared but un-implemented functions
        in DualModeController
      - Move suggested_max_tx_octets and suggested_max_tx_time
        to the link layer controller
      - Change the type of extended inquiry response
        to std::array<uint8_t, 240>, which accurately
        reflects the length of the response as passed
        from the HCI command
      
      Test: m root-canal
      Change-Id: I8837333f9c080454d987a9b7877d8c55e6d0c324
      1d8c3191
  3. Nov 02, 2022
    • Erwin Jansen's avatar
      Pin lmp crates · e5837717
      Erwin Jansen authored
      This pins all the lmp dependencies to a set of crates that we know that
      we have.
      
      Bug: 238726856
      Test: Build succeeds
      Change-Id: I35cf5198fe7af22ceac2dde3f9023608c6f0a7c7
      e5837717
  4. Oct 31, 2022
    • Henri Chataing's avatar
      RootCanal: Copy OSI_NO_INTR to net/posix · 36da573d
      Henri Chataing authored
      This macro is provided by the gd header os/include/osi.h.
      This change is made to remove dependencies from Rootcanal on gd's
      runtime.
      
      Bug: 256013143
      Test: m root-canal
      Change-Id: I5a003a6885cad58c7421c58527524c8a3ea36d3b
      36da573d
  5. Oct 28, 2022
  6. Oct 27, 2022
  7. Oct 26, 2022
    • Henri Chataing's avatar
      RootCanal: Implement LMP feature validation · 86b34156
      Henri Chataing authored
      The section Vol 2, Part C § 3.5 Feature requirements defines
      requirements for the LMP feature mask. This change checks all
      of these and emits warning for invalid features.
      
      Test: m root-canal
      Bug: 253524415
      Change-Id: I13db270f7748003f4f0e1e22cd6f335dabcb97a6
      86b34156
    • Henri Chataing's avatar
      RootCanal: Rewrite LE connection logic · 0b51f53c
      Henri Chataing authored
      Specifically the checks run by the initiator before sending a
      connect indication to a connectable advertising PDU.
      
      Test: gdcert + pts-bot
      Change-Id: I759cbde63505528b9ba296835a542b40b0c425c4
      0b51f53c
  8. Oct 25, 2022
  9. Oct 24, 2022
  10. Oct 21, 2022
  11. Oct 20, 2022
    • Henri Chataing's avatar
      RootCanal: Implement extended advertising PDUs · 55c60321
      Henri Chataing authored
      Refactor LE extended advertising to implement HCI parameter
      validation as required by the specification.
      
      Add a new link layer packet type LE_EXTENDED_ADVERTISING_PDU
      corresponding to ADV_EXT_IND, AUX_ADV_IND, AUX_CHAIN_IND PDUs,
      and implement proper handling for extended scanning and legacy
      initiator states
      
      Test: atest --host rootcanal_hci_test
      Test: gd/cert
      Test: pts-bot
      Change-Id: I6696ccc47de7b72715e6f6eeda3ab4c5511e11af
      55c60321
  12. Oct 19, 2022
    • Cole Faust's avatar
      Remove references to modern_python_path_defaults · ab45e01a
      Cole Faust authored
      The new python path behavior has been enabled by default,
      so enabling it manually with modern_python_path_defaults
      is no longer necessary.
      
      Bug: 245583294
      Test: Presubmits
      Change-Id: I0d2a15216be9481f3851a054351c20fbbbde8b5f
      ab45e01a
  13. Oct 18, 2022
  14. Oct 17, 2022
    • Henri Chataing's avatar
      pdl: Generate additional canonical test vectors · 9f4ada81
      Henri Chataing authored
      - Add tests with min and max scalar values
      - Add tests for array with a size field and
        dynamically sized elements
        (real life example TLV buffers)
      - Fix python generation bug with said arrays
      
      Test: atest --host pdl_python_generator_test
      Change-Id: Iad255cc452399967e24e212a82aff747fca3b37e
      9f4ada81
  15. Oct 14, 2022
    • Grace Cham's avatar
      PDL: rename hci_packages enums · a81620a2
      Grace Cham authored
      * DirectAdvertisingAddressType::NO_ADDRESS{=>_PROVIDED}
      * PacketStatusFlag::NO_DATA{=>_RECEIVED}
      
      libchrome started to include libevent.h from r1033946
      (crrev.com/c/3811220) and hence indirectly include netdb.h, which
      defines macro NO_DATA and NO_ADDRESS. This causes compile error in floss
      when they are used in the enums.
      
      Use NO_ADDRESS_PROVIDED and NO_DATA_RECEIVED to be consistent with the
      spec (downloadable from
      https://www.bluetooth.com/specifications/specs/core-specification-5-3/,
      page 2272 and 1814 respectively)
      
      BUG: 253138188
      Tag: #floss
      Test: emerge-hatch libchrome floss
      Change-Id: I493017f800ffddab2a24d8cf3324d8e21e96aee0
      a81620a2
  16. Oct 11, 2022
  17. Oct 07, 2022
    • Henri Chataing's avatar
      RootCanal: Refactor LE scanning commands · 6788e3ec
      Henri Chataing authored
      Implement HCI parameter validation as required by the specification.
      Resolve or generate private addresses when required in
      6.B.6.3 Privacy in scanning state.
      
      Test: atest --host --no-bazel rootcanal_hci_test
      Change-Id: Ice2e2e46b8ca157ca1b4131d0c7a642a2074ddc6
      6788e3ec
  18. Oct 06, 2022
    • Mark Wheatley's avatar
      Migrate pdl from structopt to clap 3 · cbaacae9
      Mark Wheatley authored
      Migrate the pdl tool from structopt to clap 3 and use the derive API.
      
      Bug: 241573790
      Test: m pdl + run `pdl --help`
      Change-Id: I23fa9220208afa9e0832f94b1a25d3f13dd40d00
      cbaacae9
    • Cole Faust's avatar
      Use modern_python_path_defaults · 3afdc719
      Cole Faust authored
      The python path for soong-built modules used to automatically
      include all the subdirectories of the root package, and also
      the package of the entrypoint script. Soong is being updated
      to remove that, to match bazel's behavior and soong's behavior
      with embedded_launcher: true, so update these scripts to work
      with the new behavior.
      
      Bug: 245583294
      Test: m pdl_python_generator_test pdl_python_parser_test && /ssd/aosp-master/out/host/linux-x86/nativetest64/pdl_python_generator_test/pdl_python_generator_test && /ssd/aosp-master/out/host/linux-x86/nativetest64/pdl_python_parser_test/pdl_python_parser_test
      Change-Id: I6b64c0ed77e41348992cf266ce601977ac754f20
      3afdc719
  19. Oct 05, 2022
    • Erwin Jansen's avatar
      Rootcanal: do not starve the reader in unittest · c1a2deb6
      Erwin Jansen authored
      On an M1 the writer thread can write faster than the reader can read.
      This results in the reader never exiting the loop, causing the test to
      hang.
      
      We now lower the rate of writing to make sure the readers can always
      keep up.
      
      Bug: 251187705
      Test: Unit tests now succeed on M1
      Change-Id: Ia675c3b3b0613b2b00a588a803473a3d997bf0ee
      c1a2deb6
  20. Oct 04, 2022
    • Hui Peng's avatar
      Factor out duplicated warning options · 2ccf62f5
      Hui Peng authored
      There are multiple duplicated compiler options
      configs for turning warnings into error.
      This patch factor out these duplicated configs
      
      Bug: 250720917
      Test: refactoring CL. Existing unit tests still pass.
      
      Change-Id: I66ace35eea122be2458b6eb03ac406c8ba50ca61
      2ccf62f5
  21. Oct 03, 2022
    • Henri Chataing's avatar
      RootCanal: Refactor legacy LE advertising commands · c411f010
      Henri Chataing authored
      Implement HCI parameter validation as required by the
      specification. Resolve or generate private addresses
      when required in 6.B.6.2 Privacy in advertising mode.
      
      Test: gd cert
      Test: atest --host --no-bazel rootcanal_hci_test
      Change-Id: I83d2bbad31ec41c4c8b5c27c6280530bfb8dbb6a
      c411f010
  22. Sep 30, 2022
Loading