Commit Graph

8 Commits

Author SHA1 Message Date
Zhanglong Xia
3297a174d6 remove manually freeing the variable mDeathRecipient
The variable `mDeathRecipient` will automatically free the allocated
memory when it is destructed. This CL deletes the code for manually
releasing the variable `mDeathRecipient` to avoid the same variable
being freed twice.

Bug: 296617022
Test: Run fuzzer test.
Change-Id: I733f7f8d26e48a9434d41c5098f39ad91208abeb
2023-08-24 15:38:05 +08:00
Zhanglong Xia
2f5e431e3f Merge "fix the Thread Network fuzz testing error" into main 2023-07-11 08:10:50 +00:00
Zhanglong Xia
a6165dcccf change the Thread Network HAL api from 'reset' to 'hardwareReset'
This CL changes the API from 'reset' to 'hardwareReset' to make the
the definition of the API clearer. This CL also optimizes the Thread
Network HAL default implementation.

Bug: 289867661
Test: Run Thread stack on cuttlefish.
Change-Id: Id742453d9d7a0d369ac8f16905efdacfcfba1dbc
2023-07-07 11:22:57 +08:00
Zhanglong Xia
7f7e8647fa fix the Thread Network fuzz testing error
The current fuzz testing comunicates with the Thread radio chip
simulation program `ot-rcp`. The 'ot-rcp' is not installed by all
devices, which causes the fuzz testing program is unable to find
the program '/vendor/bin/ot-rcp'.

This commit enables the HAL to talk to the '/dev/null' to avoid
'/vendor/bin/ot-rcp' not being found.

Bug: 289627270
Test: Run the fuzz test on cuttlefish
Change-Id: If410d7d75abe05c7c2d2c82fa0450e925b9a48bb
2023-07-06 13:45:23 +08:00
Zhanglong Xia
7ae6d6f4ff add Spinel SPI interface support
This commit enables the Thread Network HAL to support the Spinel
SPI interface.

Bug: 277286756
Test: Build and run otbr-agent on the emulator.
Change-Id: I6726eead5686f0afb33e5e2035ebc9021eca5afa
2023-07-03 11:59:17 +08:00
Zhanglong Xia
5c027015c3 add fuzz test and fix the Thread network HAL compile errors
Bug: 288825495
Test: Build and run fuzz test in cuttlefish

Change-Id: If14bd95657d6a71737a348ccbc6d1b05bbcc1f4c
2023-06-26 17:55:39 +08:00
Zhanglong Xia
24e527475f Add Thread network HAL
Bug: b/203492431
Test: Build and run the VTS test and run otbr-agent on Android emulator.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b82b0478059dd6203f43d5917558e34fd4ed44d5)
Merged-In: If58b5a8c75e40376ae6c6e93554afe750496308b
Change-Id: If58b5a8c75e40376ae6c6e93554afe750496308b
2023-06-14 22:24:24 +08:00
Kangping Dong
c756ab2e12 add OWNERS file for the threadnetwork HAL project
Test: N/A
Bug: 262471085
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:90bf9095167d0478c0ae4371ac82daf22a4efc73)
Merged-In: I024e7d5c1fe3adf7ae03f77d1580bd1f19f750c1
Change-Id: I024e7d5c1fe3adf7ae03f77d1580bd1f19f750c1
2023-05-26 16:17:38 +00:00