mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
avrcp: store l2cap remote mtu
This commit is contained in:
parent
c19bc4949a
commit
86c0eebd9a
@ -635,6 +635,7 @@ void avrcp_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet
|
||||
psm = l2cap_event_channel_opened_get_psm(packet);
|
||||
if (psm == PSM_AVCTP){
|
||||
connection->l2cap_signaling_cid = local_cid;
|
||||
connection->l2cap_mtu = l2cap_event_channel_opened_get_remote_mtu(packet);
|
||||
connection->song_length_ms = 0xFFFFFFFF;
|
||||
connection->song_position_ms = 0xFFFFFFFF;
|
||||
connection->playback_status = AVRCP_PLAYBACK_STATUS_ERROR;
|
||||
|
@ -383,6 +383,7 @@ typedef struct {
|
||||
btstack_linked_item_t item;
|
||||
bd_addr_t remote_addr;
|
||||
uint16_t l2cap_signaling_cid;
|
||||
uint16_t l2cap_mtu;
|
||||
uint16_t avrcp_cid;
|
||||
|
||||
uint16_t avrcp_browsing_cid;
|
||||
@ -402,8 +403,10 @@ typedef struct {
|
||||
avrcp_subunit_id_t subunit_id;
|
||||
avrcp_packet_type_t packet_type;
|
||||
|
||||
// regular commands
|
||||
uint8_t cmd_operands[20];
|
||||
uint8_t cmd_operands_length;
|
||||
|
||||
btstack_timer_source_t press_and_hold_cmd_timer;
|
||||
uint8_t continuous_fast_forward_cmd;
|
||||
uint16_t notifications_enabled;
|
||||
@ -536,4 +539,4 @@ void avrcp_handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __AVRCP_H
|
||||
#endif // __AVRCP_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user