Commit acec2a2
fix(bindings): correct otRadioCaps type to u16 for riscv32imac
The riscv32imac bindings incorrectly defined otRadioCaps as u8, but
OT_RADIO_CAPS_RX_ON_WHEN_IDLE = 256 which doesn't fit in u8.
This caused the capability to be silently truncated to 0, preventing
OpenThread from calling otPlatRadioSetRxOnWhenIdle callback.
Changes:
- Change otRadioCaps from u8 to u16 in riscv32imac bindings
- Add missing OT_RADIO_CAPS_RX_ON_WHEN_IDLE constant (256)
- Use proper import in lib.rs instead of local const
- Fix otPlatRadioGetCaps return type to use otRadioCaps
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>1 parent 8e42bae commit acec2a2
File tree
3 files changed
+6
-6
lines changed- openthread-sys/src/include
- openthread/src
3 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2830 | 2830 | | |
2831 | 2831 | | |
2832 | 2832 | | |
2833 | | - | |
| 2833 | + | |
2834 | 2834 | | |
2835 | 2835 | | |
2836 | 2836 | | |
| |||
2849 | 2849 | | |
2850 | 2850 | | |
2851 | 2851 | | |
| 2852 | + | |
| 2853 | + | |
2852 | 2854 | | |
2853 | 2855 | | |
2854 | 2856 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
1427 | 1427 | | |
1428 | 1428 | | |
1429 | 1429 | | |
1430 | | - | |
1431 | | - | |
1432 | 1430 | | |
1433 | 1431 | | |
1434 | 1432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments