Re: [PATCHv2 1/5] shared/att: Handle commands under BT_ATT_ALL_REQUESTS op group type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jakub,

On Tue, Dec 9, 2014 at 10:51 AM, Jakub Tyszkowski
<jakub.tyszkowski@xxxxxxxxx> wrote:
> This is needed for backward compatibility with gattrib.
> ---
>  src/shared/att.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/shared/att.c b/src/shared/att.c
> index ee425d8..3181b36 100644
> --- a/src/shared/att.c
> +++ b/src/shared/att.c
> @@ -666,8 +666,10 @@ struct notify_data {
>
>  static bool opcode_match(uint8_t opcode, uint8_t test_opcode)
>  {
> -       if (opcode == BT_ATT_ALL_REQUESTS &&
> -                                   get_op_type(test_opcode) == ATT_OP_TYPE_REQ)
> +       enum att_op_type op_type = get_op_type(test_opcode);
> +
> +       if (opcode == BT_ATT_ALL_REQUESTS && (op_type == ATT_OP_TYPE_REQ ||
> +                                               op_type == ATT_OP_TYPE_CMD))
>                 return true;
>
>         return opcode == test_opcode;
> --
> 1.9.1

Applied, thanks.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux