Hi Luiz, > Both max_num_keys and num_key are 2 octects: > > BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 4, Part E > page 1985: > > Max_Num_Keys: > Size: 2 octets > Range: 0x0000 to 0xFFFF > > Num_Keys_Read: > Size: 2 octets > Range: 0x0000 to 0xFFFF > > Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> > --- > v2: Use __le16 instead of __u16 in hci_rp_read_stored_link_key and update > fields in hci_dev to properly store 2 octects. Also add a patch for > hci_rp_delete_stored_link_key since num_keys is also 2 octecs like > hci_rp_read_stored_link_key. > > include/net/bluetooth/hci.h | 4 ++-- > include/net/bluetooth/hci_core.h | 4 ++-- > net/bluetooth/hci_event.c | 4 ++-- > 3 files changed, 6 insertions(+), 6 deletions(-) patch has been applied to bluetooth-next tree. However I had to fix some alignment issue. Regards Marcel