Bluetooth: ATT: Fix responding to unknown ATT command

Host shall ignore the unknown ATT PDU that has Command Flag set.
Fixes regression introduced in 3b271b8455.

Fixes: GATT/SR/UNS/BI-02-C
Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
Mariusz Skamra 2019-09-09 15:53:38 +02:00 committed by Johan Hedberg
commit ac7f81314e

View file

@ -1965,6 +1965,10 @@ static att_type_t att_op_get_type(u8_t op)
return ATT_INDICATION; return ATT_INDICATION;
} }
if (op & ATT_CMD_MASK) {
return ATT_COMMAND;
}
return ATT_UNKNOWN; return ATT_UNKNOWN;
} }