Bluetooth: ATT: Fix responding to unknown ATT command
Host shall ignore the unknown ATT PDU that has Command Flag set.
Fixes regression introduced in 3b271b8455f1ef6d74ffc80f610633146b00265e.
Fixes: GATT/SR/UNS/BI-02-C
Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
diff --git a/subsys/bluetooth/host/att.c b/subsys/bluetooth/host/att.c
index a3f44e6..de27998 100644
--- a/subsys/bluetooth/host/att.c
+++ b/subsys/bluetooth/host/att.c
@@ -1965,6 +1965,10 @@
return ATT_INDICATION;
}
+ if (op & ATT_CMD_MASK) {
+ return ATT_COMMAND;
+ }
+
return ATT_UNKNOWN;
}