mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 13:29:54 +00:00
[spinel] networkInfo may not exist when recovering from RCP failure (#9327)
Current implementation of RestoreProperties() assumes there's always a networkInfo structure stored in the settings. But, it's possible the RCP device needs to be recovered before this structure is populated. Signed-off-by: Axel Le Bourhis <[email protected]>
This commit is contained in:
@@ -54,17 +54,6 @@ puts "RCP PID: $rcp_pid"
|
||||
try {
|
||||
puts "Before enabling"
|
||||
|
||||
spawn_node 1 "rcp" "spinel+hdlc_uart://$host_pty"
|
||||
|
||||
exec kill $rcp_pid
|
||||
puts "Killed $rcp_pid"
|
||||
sleep 1
|
||||
set rcp_pid [exec $::env(OT_SIMULATION_APPS)/ncp/ot-rcp 1 < $radio_pty > $radio_pty &]
|
||||
puts "RCP PID: $rcp_pid"
|
||||
|
||||
expect eof
|
||||
|
||||
|
||||
puts "Queued parent-to-child packets, as parent"
|
||||
|
||||
spawn_node 1 "rcp" "spinel+hdlc_uart://$host_pty"
|
||||
|
||||
Reference in New Issue
Block a user