Matthias Ringwald
b26f445ff2
sm: move SM_INITIATOR_PH1_W2_SEND_PAIRING_REQUEST code into sm_run
...
remove SM_INITIATOR_PH1_SEND_PAIRING_REQUEST
2020-10-29 11:39:39 +01:00
Matthias Ringwald
f32b7a88e6
sm: move SM_INITIATOR_PH0_HAS_LTK code into sm_run
...
remove SM_INITIATOR_PH0_SEND_START_ENCRYPTION
2020-10-29 11:39:05 +01:00
Matthias Ringwald
178e8c1b8f
sm: defer sending security request until ec key is ready
2020-10-29 11:33:52 +01:00
Matthias Ringwald
30c8e1142e
Revert "sm: delete unused ir_loopup_active"
...
This reverts commit bac48def6980b39e32241a04b057248e72bd89b2.
2020-10-28 09:04:11 +01:00
Matthias Ringwald
bac48def69
sm: delete unused ir_loopup_active
2020-10-27 18:48:19 +01:00
Matthias Ringwald
a8d51f092f
add missing default switch cases
2020-10-27 18:16:17 +01:00
Milanka Ringwald
e0d13a1902
avoid warning for set but unused variables when log_info and log_error are disabled
2020-10-27 14:34:31 +01:00
Milanka Ringwald
7bbeb3ad8c
add missing default switch cases
2020-10-27 13:44:55 +01:00
Matthias Ringwald
24fd61d9d3
l2cap: streamline security level request for outgoing classic connections
2020-10-26 18:28:26 +01:00
Matthias Ringwald
d51536280e
a2dp: restore event/subevent id after executing callback
2020-10-23 15:49:40 +02:00
Matthias Ringwald
c3898ca4c0
hci: fix reject of LE remote connection param request via HCI
2020-10-21 15:28:41 +02:00
Matthias Ringwald
1e122704da
gap: add gap_bonded to check if bonding information is available for active connection
2020-10-21 14:34:35 +02:00
Matthias Ringwald
ea1519740b
hci: skip resolving list management if not supported by controller
2020-10-16 17:24:17 +02:00
Matthias Ringwald
57132f1279
sm: implement h7 ctkd
...
Set CT2 in AuthReq if Bonding+SC+CTKD
2020-10-16 17:24:08 +02:00
Matthias Ringwald
7ece0eaa04
sm: set LinkKey flag if CTKD and SC are active
2020-10-16 16:10:00 +02:00
Matthias Ringwald
edc1ac20b6
gap: skip Legacy Connection Downgrade detection if SC not active
2020-10-16 16:08:22 +02:00
Matthias Ringwald
c214d65b12
hci: track if secure connections have been enabled
2020-10-16 16:08:22 +02:00
Matthias Ringwald
9389122cc3
avdtp: fix compile
2020-10-16 14:32:34 +02:00
Matthias Ringwald
3338afc0d0
avdtp: only use avdtp_get_stream_endpoint_for_seid
2020-10-16 14:08:10 +02:00
Matthias Ringwald
d80ccd43b8
avdtp: streamline request to send for acceptor/initiator signaling connections
...
avoid stream endpoint lookup by remote seid
2020-10-16 14:07:42 +02:00
Matthias Ringwald
76b0318e1d
hci: fix compile
2020-10-14 14:16:13 +02:00
Matthias Ringwald
0a1a2d88e7
sm: only allow CTKD to overwrite existing link key if derived key has same or higher authentication
2020-10-14 11:12:22 +02:00
Matthias Ringwald
0b636a850b
sm: check requirements for ctkd sequentially
2020-10-14 10:49:30 +02:00
Matthias Ringwald
bdb14b0eaf
sm: fix unreachable code
2020-10-14 10:24:59 +02:00
Matthias Ringwald
55160b1c55
sm: store CTKD key with Public Identity Address
2020-10-13 22:24:24 +02:00
Matthias Ringwald
e8ad470ff8
gap: add gap_get_link_key_for_bd_addr
2020-10-13 18:06:17 +02:00
Matthias Ringwald
8276777316
a2dp source: fix crash on outgoing connection after previous incoming one
...
The pointer to the user media codec configuration buffer was stored in stream_endpoint.remote_configuration, which was set to zero in avdtp_reset_stream_endpoint. The user buffer is now stored separately and it is updateds when the configuration gets set/updated. The field media_codec_sbc_info is used by a2dp configure and reconfigure.
2020-10-13 13:25:33 +02:00
Matthias Ringwald
44e638f3c1
avdtp: improve log_debug output
2020-10-13 10:53:54 +02:00
Matthias Ringwald
f8cade38b7
a2dp_source: set media codec len
2020-10-12 18:30:23 +02:00
Matthias Ringwald
55c62cf557
sm: use h6 functions only with CTKD
2020-10-12 16:46:24 +02:00
Matthias Ringwald
1cc65c4fce
hfp_hf: extract hfp_hf_handle_suggested_codec, use flags to trigger commands
2020-10-12 16:28:00 +02:00
Matthias Ringwald
332ca98fda
hfp_hf: use trigger_codec_exchange instead of command field
2020-10-12 15:40:27 +02:00
Matthias Ringwald
47e6a58d45
hfp_hff: +BAC not sent by AG
2020-10-12 15:19:44 +02:00
Matthias Ringwald
eaf2b0a14e
hfp_hf: sending ATA must wait for ok
2020-10-12 12:31:01 +02:00
Matthias Ringwald
76cc152743
hfp: sort code, use assert
2020-10-12 12:09:29 +02:00
Matthias Ringwald
2e755e5da0
sm: fix compile, reduce compile time flag use
2020-10-12 11:59:50 +02:00
Matthias Ringwald
6857ad8fd2
sm: Cross-Transport Key Derivation requires ENABLE_CROSS_TRANSPORT_KEY_DERIVATION
2020-10-09 13:05:50 +02:00
Matthias Ringwald
1046568c8f
sm: only start CTKD if bonding enabled
2020-10-09 13:04:34 +02:00
Matthias Ringwald
a756d52b32
sm: skip calculation of h6 without classic
2020-10-09 11:55:03 +02:00
Matthias Ringwald
1159d23955
avdtp: remove local_seid from capabilities events
2020-10-09 11:53:16 +02:00
Matthias Ringwald
1c8795f6af
avdtp: improve debug output
2020-10-09 11:40:48 +02:00
Matthias Ringwald
3a69f723a4
avdtp_initiator: more log_debug
2020-10-08 12:13:31 +02:00
Matthias Ringwald
bdf09c5f4f
avdtp_initiator: prioritize set config over stream operations, additional log_debug
2020-10-07 13:52:42 +02:00
Milanka Ringwald
0b322400fd
avrcp: updated SDP record
2020-10-06 15:29:25 +02:00
Milanka Ringwald
163a4e3213
a2dp_source: improve log info
2020-10-02 15:00:55 +02:00
Milanka Ringwald
70487fd103
avrcp: update supported protocol version
2020-10-02 09:31:41 +02:00
Matthias Ringwald
a2489f29b6
gatt-services: use assert to check service found in att db
2020-10-01 17:51:13 +02:00
Matthias Ringwald
e86f2b509d
device_information_service_server: fix compile warning
2020-10-01 17:01:43 +02:00
Milanka Ringwald
00e061db23
avdtp_initiator: follow specification for stream endpoint states
2020-10-01 16:14:41 +02:00
Milanka Ringwald
7f162947d9
avdtp: reset configuration state on media channel closed
2020-10-01 16:14:41 +02:00