In case of BR/EDR the L2CAP MTU negotion is used instead:
BLUETOOTH CORE SPECIFICATION Version 5.1 | Vol 3, Part G page 2370
4.3.1 Exchange MTU
This sub-procedure shall not be used on a BR/EDR physical link since
the MTU size is negotiated using L2CAP channel configuration
procedures.
Change-Id: Iadcd6d11ad30f892661da0e9e58993fa2e4e987b
Signed-off-by: himanshu <h.himanshu@samsung.com>
if (!opcode_match(notify->opcode, opcode))
continue;
+ /* BLUETOOTH CORE SPECIFICATION Version 5.1 | Vol 3, Part G
+ * page 2370
+ *
+ * 4.3.1 Exchange MTU
+ *
+ * This sub-procedure shall not be used on a BR/EDR physical
+ * link since the MTU size is negotiated using L2CAP channel
+ * configuration procedures.
+ */
+ if (bt_att_get_link_type(att) == BT_ATT_LINK_BREDR) {
+ switch (opcode) {
+ case BT_ATT_OP_MTU_REQ:
+ goto not_supported;
+ }
+ }
+
found = true;
if (notify->callback)
break;
}
+not_supported:
/*
* If this was not a command and no handler was registered for it,
* respond with "Not Supported"