Re: [PATCH 0/2] shared/att: Improve client support.

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

 



Hi Arman,

> This patch set makes the following additions/changes:
> 
>  - The opcode + param structure semantics are no longer used. bt_att_send now
>    takes in the PDU as it will be sent over the physical link and it won't
>    perform any explicit encoding or decoding of PDUs between host order and BT
>    order. Any packed structs that get passed to bt_att_send need to be
>    formatted according to the correct endianness.
> 
>  - bt_att_register and bt_att_unregister* functions are implemented. Callbacks
>    are registered for a particular opcode and they get invoked when an incoming
>    PDU of type "request", "indication", or "notification" is received.
> 
> This provides the basic functionality needed to implement a GATT client layer,
> except for PDU signing and verifications of incoming signed PDUs. This isn't
> immediately needed to implement a functioning client and could be left to the
> upper layer.
> 
> Arman Uguray (2):
>  shared/att: Remove parameters structures.
>  shared/att: Implement bt_att_register.
> 
> src/shared/att-types.h | 153 +-------------------
> src/shared/att.c       | 383 ++++++++++++++++++++++++++++++++-----------------
> src/shared/att.h       |  19 +--
> 3 files changed, 267 insertions(+), 288 deletions(-)

I have applied both patches. However please keep in mind that the CSRK signing and resolving still needs to happen in this low-level ATT. The signatures are calculated over the whole PDU including opcode. Our BlueZ for Android code is capable of using signed write, so you can test against that one.

Regards

Marcel

--
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