If remote send Exchange MTU it shall fail as the MTU negotiation shall
happen over L2CAP signalling not ATT for those channels.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
* link since the MTU size is negotiated using L2CAP channel
* configuration procedures.
*/
- if (bt_att_get_link_type(att) == BT_ATT_BREDR) {
+ if (bt_att_get_link_type(att) == BT_ATT_BREDR ||
+ chan->type == BT_ATT_EATT) {
switch (opcode) {
case BT_ATT_OP_MTU_REQ:
goto not_supported;