Skip to content

Instantly share code, notes, and snippets.

View Vudentz's full-sized avatar

Luiz Augusto von Dentz Vudentz

View GitHub Profile
diff --git a/profiles/audio/sink.c b/profiles/audio/sink.c
index 77f195436032..7e02bcca1a01 100644
--- a/profiles/audio/sink.c
+++ b/profiles/audio/sink.c
@@ -110,6 +110,7 @@ static void avdtp_state_callback(struct btd_device *dev,
switch (new_state) {
case AVDTP_SESSION_STATE_DISCONNECTED:
sink_set_state(sink, SINK_STATE_DISCONNECTED);
+ btd_service_disconnecting_complete(sink->service, 0);
break;
diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 4175f9de814c..b529a2db6c7c 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -438,10 +438,6 @@ static struct apparam_field *parse_aparam(const uint8_t *buffer, uint32_t hlen)
GObexApparam *apparam;
struct apparam_field *param;
- apparam = g_obex_apparam_decode(buffer, hlen);
- if (apparam == NULL)
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 170
model name : Intel(R) Core(TM) Ultra 7 155H
stepping : 4
microcode : 0x1f
cpu MHz : 1443.951
cache size : 24576 KB
physical id : 0
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index 40ccdef168d7..de6ab999890e 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -2411,8 +2411,9 @@ static int hci_le_add_accept_list_sync(struct hci_dev *hdev,
struct hci_cp_le_add_to_accept_list cp;
int err;
- /* During suspend, only wakeable devices can be in acceptlist */
+ /* During system-suspend, only wakeable devices can be in acceptlist */
bluetoothd[3991772]: profiles/audio/avrcp.c:avrcp_list_items_rsp() start 0 end 4294967295 items 3395 total 4294967296
bluetoothd[3991772]: profiles/audio/player.c:media_folder_create_item() Over the Horizon type audio uid 3396
bluetoothd[3991772]: profiles/audio/player.c:media_folder_create_item() /org/bluez/hci0/dev_80_39_8C_93_7C_E5/player5/NowPlaying/item3396
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() Title: Over the Horizon
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() Artist: Samsung
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() Album: Brand Music 2023
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() TrackNumber: 1
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() Duration: 198560
bluetoothd[3991772]: profiles/audio/avrcp.c:avrcp_list_items_rsp() start 0 end 4294967295 items 3396 total 4294967296
bluetoothd[3991772]: profiles/audio/player.c:media_folder_create_item() Over the
@Vudentz
Vudentz / .diff
Created September 19, 2024 14:52
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 1c82dcdf6e8f..6f6547772ec8 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -3393,23 +3393,30 @@ static void hci_disconn_complete_evt(struct hci_dev *hdev, void *data,
hci_update_scan(hdev);
}
- params = hci_conn_params_lookup(hdev, &conn->dst, conn->dst_type);
- if (params) {
< ACL Data TX: Handle 2048 flags 0x00 dlen 75 #331 [hci0] 24.130629
ATT: Write Command (0x52) len 70
Handle: 0x4e02 Type: ASE Control Point (0x2bc6)
Data[68]: 010303010206000000000703e8000002e90004030206000000001002010602020003043c0005030200000001010206000000001002010802020003044b00050301000000
Opcode: Codec Configuration (0x01)
Number of ASE(s): 3
ASE: #0
ASE ID: 0x03
Target Latency: Low Latency (0x01)
PHY: 0x02
#Register LC3 Source capabilities
#Auto Accept (yes/no): y
#Max Transports (auto/value): a
#Locations: a
#Supported Context (value): 0
#Context (value): 0
#CIG (auto/value): 0
#CIS (auto/value): a
endpoint.register 00002bcb-0000-1000-8000-00805f9b34fb 0x06
y
memcheck-amd64-[3855]: < ACL Data TX: Handle 2048 flags 0x00 dlen 85 #8646 [hci0] 148.750148
ATT: Write Command (0x52) len 80
Handle: 0x4e02 Type: ASE Control Point (0x2bc6)
Data[78]: 010403020206000000000a02010602020003043c0004020206000000000a02010602020003043c0001010206000000000a02010802020003044b0002010206000000000a02010802020003044b00
Opcode: Codec Configuration (0x01)
Number of ASE(s): 4
ASE: #0
ASE ID: 0x03
Target Latency: Balance Latency/Reliability (0x02)
PHY: 0x02
@Vudentz
Vudentz / .diff
Created September 11, 2024 15:45
@@ -5330,13 +5330,12 @@ static void hci_user_confirm_request_evt(struct hci_dev *hdev, void *data,
/* If we're not the initiators request authorization to
* proceed from user space (mgmt_user_confirm with
- * confirm_hint set to 1). The exception is if neither
- * side had MITM or if the local IO capability is
- * NoInputNoOutput, in which case we do auto-accept
+ * confirm_hint set to 1). The exception is if the local IO
+ * capability is NoInputNoOutput, in which case we do
+ * auto-accept.