att_dispatch: forward l2cap channel closed

This commit is contained in:
Matthias Ringwald 2023-07-05 17:20:50 +02:00
parent 180cbe7900
commit 434166e3bd

View File

@ -195,6 +195,14 @@ static void att_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *p
}
}
break;
case L2CAP_EVENT_CHANNEL_CLOSED:
// dispatch to all roles
for (index = 0; index < ATT_MAX; index++){
if (subscriptions[index].packet_handler != NULL){
subscriptions[index].packet_handler(packet_type, channel, packet, size);
}
}
break;
#endif
default:
break;