zephyr/net/bluetooth
Arkadiusz Lichwa 134ae99d35 Bluetooth: Refactor LE Connection Params validator
Move le_validate_conn_params() interface to internal HCI
header to be commonly shared between HCI and L2CAP layers.
Refactor the interface and its users and rename related to Connection
Parameters Update procedure values used for validation.

< ACL Data TX: Handle 42 flags 0x00 dlen 16                                                                                                                          [hci1] 2832.387859
      LE L2CAP: Connection Parameter Update Request (0x12) ident 1 len 8
        Min interval: 40
        Max interval: 56
        Slave latency: 0
        Timeout multiplier: 0
@ Device Connected: 00:AA:01:00:00:23 (1) flags 0x0000
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2                                                                                                     [hci0] 2832.389374
        Handle: 42
> ACL Data RX: Handle 42 flags 0x02 dlen 16                                                                                                                          [hci0] 2832.389437
      LE L2CAP: Connection Parameter Update Request (0x12) ident 1 len 8
        Min interval: 40
        Max interval: 56
        Slave latency: 0
        Timeout multiplier: 0
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                               [hci1] 2832.389440
        Num handles: 1
        Handle: 42
        Count: 1
> HCI Event: Command Status (0x0f) plen 4                                                                                                                            [hci0] 2832.389443
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                            [hci0] 2832.389444
      LE Read Remote Used Features (0x04)
        Status: Success (0x00)
        Handle: 42
        Features: 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Connection Parameter Request Procedure

< ACL Data TX: Handle 42 flags 0x00 dlen 10                                                                                                                          [hci0] 2832.393154
      LE L2CAP: Connection Parameter Update Response (0x13) ident 1 len 2
        Result: Connection Parameters rejected (0x0001)
> ACL Data RX: Handle 42 flags 0x02 dlen 10                                                                                                                          [hci1] 2832.393181
      LE L2CAP: Connection Parameter Update Response (0x13) ident 1 len 2
        Result: Connection Parameters rejected (0x0001)

Rejected due to Timeout multiplier: 0.

Change-Id: Idaf4f452f560ff71d9637ec5d793154190e94b35
Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-02-05 20:15:38 -05:00
..
att.c Bluetooth: Fix wrong buffer allocation result 2016-02-05 20:15:37 -05:00
att.h Bluetooth: ATT: Add bt_att_get_mtu 2016-02-05 20:15:22 -05:00
buf.c clarify use of term 'context' 2016-02-05 20:15:27 -05:00
conn.c Bluetooth: Set bt_conn role based on LE Connection Complete Event data 2016-02-05 20:15:38 -05:00
conn_internal.h Bluetooth: Set bt_conn role based on LE Connection Complete Event data 2016-02-05 20:15:38 -05:00
gatt.c Bluetooth: Fix wrong read included function name 2016-02-05 20:15:37 -05:00
hci_core.c Bluetooth: Set bt_conn role based on LE Connection Complete Event data 2016-02-05 20:15:38 -05:00
hci_core.h Bluetooth: Refactor LE Connection Params validator 2016-02-05 20:15:38 -05:00
Kconfig Bluetooth: Make self-test option relevant to SMP debug 2016-02-05 20:15:23 -05:00
keys.c Bluetooth: Simplify keys management code 2016-02-05 20:15:38 -05:00
keys.h Bluetooth: Store key type in common structure 2016-02-05 20:15:38 -05:00
l2cap.c Bluetooth: Refactor LE Connection Params validator 2016-02-05 20:15:38 -05:00
l2cap.h Bluetooth: Refactor LE Connection Params validator 2016-02-05 20:15:38 -05:00
Makefile Bluetooth: Move key handling to separate files 2016-02-05 20:14:17 -05:00
smp.c Bluetooth: Add callback for identity resolution 2016-02-05 20:15:38 -05:00
smp.h Bluetooth: Add data signing function 2016-02-05 20:15:24 -05:00
uuid.c Bluetooth: Add bt_uuid_cmp 2016-02-05 20:14:04 -05:00