test/auto-pts: disable advertisements on power off

This commit is contained in:
Matthias Ringwald 2021-06-10 17:28:41 +02:00
parent dbd5dcc31a
commit 6edb4dfb63

View File

@ -786,6 +786,7 @@ static void btp_gap_handler(uint8_t opcode, uint8_t controller_index, uint16_t l
if (powered){
hci_power_control(HCI_POWER_ON);
} else {
gap_advertisements_enable(0);
hci_power_control(HCI_POWER_OFF);
}
}