hci: try to re-enable advertisements in slave role

This commit is contained in:
Matthias Ringwald 2016-11-22 15:23:42 +01:00
parent 18707219a5
commit 5106e6dc65

View File

@ -1896,6 +1896,8 @@ static void event_handler(uint8_t *packet, int size){
} else {
// if we're slave, it was an incoming connection, advertisements have stopped
hci_stack->le_advertisements_active = 0;
// try to re-enable them
hci_stack->le_advertisements_todo |= LE_ADVERTISEMENT_TASKS_ENABLE;
}
// LE connections are auto-accepted, so just create a connection if there isn't one already
if (!conn){