[diag] support send security processed frames (#10640)

This commit extends the `diag frame` command by adding an argument `-s`
to indicate whether the frame has been encrypted or not, so that the
diag commands can be used to test frames having security processed in
the host.
This commit is contained in:
Yakun Xu
2024-08-27 18:35:04 -07:00
committed by GitHub
parent a30cbda8ae
commit 95a4c338e0
4 changed files with 49 additions and 5 deletions
+7
View File
@@ -152,6 +152,13 @@ send "diag repeat 1\n"
expect "length 0x7f"
expect "Done"
send_user "send frame with security processed\n"
send "diag frame -s 112233\n"
expect "Done"
send "diag send 1\n"
expect "length 0x3"
expect "Done"
send "diag repeat stop\n"
expect "Done"