BT_ATT_OP_MTU_REQ shall only be sent on the so called fixed channel
since EATT channels shall use L2CAP procedure to update its MTU.
op->id = att->next_send_id++;
+ /* Always use fixed channel for BT_ATT_OP_MTU_REQ */
+ if (opcode == BT_ATT_OP_MTU_REQ) {
+ struct bt_att_chan *chan = queue_peek_tail(att->chans);
+
+ result = queue_push_tail(chan->queue, op);
+ goto done;
+ }
+
/* Add the op to the correct queue based on its type */
switch (op->type) {
case ATT_OP_TYPE_REQ:
break;
}
+done:
if (!result) {
free(op->pdu);
free(op);