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:
parent
3142503ecb
commit
ac7f81314e
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue