Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 671d219b authored by Joseph Hwang's avatar Joseph Hwang
Browse files

PDL: support the MsftLeCancelMonitorAdv command

This patch supports the MsftLeCancelMonitorAdv command.

Bug: 246404026
Tag: #floss
Test: ./build.py --target test
Test: atest packages/modules/Bluetooth/system/gd/hci/hci_packets_test.cc
Test: Manual test on a ChromeOS device

Change-Id: Id0a167f7a1c52fec97919d71c0aeac71fa3d2575
parent 7c4dc2b2
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -6375,6 +6375,14 @@ test MsftLeMonitorAdvConditionUuid16 {
  "\x70\xfd\x17\x03\x10\x11\x12\x13\x02\x03\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f",
}

packet MsftLeCancelMonitorAdv: MsftCommand (subcommand_opcode = MSFT_LE_CANCEL_MONITOR_ADV) {
  monitor_handle: 8,
}

test MsftLeCancelMonitorAdv {
  "\x1e\xfc\x02\x04\x01", // cancel handle 0x01
}

packet MsftLeSetAdvFilterEnable : MsftCommand (subcommand_opcode = MSFT_LE_SET_ADV_FILTER_ENABLE) {
  enable: 8,
}
@@ -6410,6 +6418,8 @@ test MsftLeMonitorAdvCommandComplete {
  "\x0e\x06\x01\x70\xfd\x01\x03\x06", // failed
}

packet MsftLeCancelMonitorAdvCommandComplete : MsftCommandComplete (subcommand_opcode = MSFT_LE_CANCEL_MONITOR_ADV) {}

packet MsftLeSetAdvFilterEnableCommandComplete : MsftCommandComplete (subcommand_opcode = MSFT_LE_SET_ADV_FILTER_ENABLE) {}

enum MsftEventCode : 8 {