katyo / linux

Linux kernel source tree
Other
0 stars 3 forks source link

uwe5622: bluetooth support #3

Open katyo opened 2 years ago

katyo commented 2 years ago

hciattach (from here bluez#orangepi):

$ sudo hciattach -n ttyBT0 sprd
SPRD Bluetooth init uart with init speed:115200, final_speed:1500000, type:HCI UART H4
SPRD Bluetooth: Attempt to load conf from /run/current-system/firmware/bt_configure_pskey.ini
SPRD Bluetooth: device_class ->  0x001F00
SPRD Bluetooth: feature_set ->  0xBF, 0xFF, 0x8D, 0xFE, 0xDB, 0x3D, 0x7B, 0x87, 0xFF, 0xA7, 0xFF, 0x7F, 0x00, 0xE0, 0xF7, 0x3E
SPRD Bluetooth: comp_id ->  0x01EC
SPRD Bluetooth: g_sys_uart0_communication_supported ->  1
SPRD Bluetooth: cp2_log_mode ->  1
SPRD Bluetooth: LogLevel ->  0xFF
SPRD Bluetooth: g_central_or_perpheral ->  0
SPRD Bluetooth: Log_BitMask ->  0xFFFF
SPRD Bluetooth: super_ssp_enable ->  0
SPRD Bluetooth: common_rfu_b3 ->  0
SPRD Bluetooth: common_rfu_w ->  0x00000000, 0x00000000
SPRD Bluetooth: le_rfu_w ->  0x00000000, 0x000000000
SPRD Bluetooth: lmp_rfu_w ->  0x00000000, 0x000000000
SPRD Bluetooth: lc_rfu_w ->  0x00000000, 0x000000000
SPRD Bluetooth: g_wbs_nv_117 ->  0x004D
SPRD Bluetooth: g_wbs_nv_118 ->  0x0166
SPRD Bluetooth: g_nbv_nv_117 ->  0x004D
SPRD Bluetooth: g_nbv_nv_118 ->  0x0166
SPRD Bluetooth: g_sys_sco_transmit_mode ->  0
SPRD Bluetooth: audio_rfu_b1 ->  0
SPRD Bluetooth: audio_rfu_b2 ->  0
SPRD Bluetooth: audio_rfu_b3 ->  0
SPRD Bluetooth: audio_rfu_w ->  0x00000000, 0x00000000
SPRD Bluetooth: g_sys_sleep_in_standby_supported ->  1
SPRD Bluetooth: g_sys_sleep_master_supported ->  1
SPRD Bluetooth: g_sys_sleep_slave_supported ->  1
SPRD Bluetooth: power_rfu_b1 ->  0
SPRD Bluetooth: power_rfu_w ->  0x00000000, 0x00000000
SPRD Bluetooth: win_ext ->  40
SPRD Bluetooth: edr_tx_edr_delay ->  6
SPRD Bluetooth: edr_rx_edr_delay ->  8
SPRD Bluetooth: tx_delay ->  12
SPRD Bluetooth: rx_delay ->  34
SPRD Bluetooth: bb_rfu_w ->  0x00000000, 0x00000000
SPRD Bluetooth: agc_mode ->  0
SPRD Bluetooth: diff_or_eq ->  0xFF
SPRD Bluetooth: ramp_mode ->  0
SPRD Bluetooth: modem_rfu_b1 ->  0
SPRD Bluetooth: modem_rfu_w ->  0x00000000, 0x00000000
SPRD Bluetooth: BQB_BitMask_1 ->  0x00000000
SPRD Bluetooth: BQB_BitMask_2 ->  0x00000000
SPRD Bluetooth: bt_coex_threshold ->  0x04E2, 0x1F40, 0x0020, 0x00C8, 0x0006, 0x0000, 0x0000, 0x0000
SPRD Bluetooth: other_rfu_w ->  0x00000000, 0x00000000
SPRD Bluetooth: Attempt to load conf from /run/current-system/firmware/bt_configure_rf.ini
SPRD Bluetooth: g_GainValue_A ->  0xE000, 0xE000, 0xE000, 0xE000, 0xE000, 0xE000
SPRD Bluetooth: g_ClassicPowerValue_A ->  0x4115, 0x3A15, 0x3415, 0x2E15, 0x2715, 0x2115, 0x1715, 0x1115, 0x0B15, 0x0715
SPRD Bluetooth: g_LEPowerValue_A ->  0x3B15, 0x3715, 0x3315, 0x2F15, 0x2B15, 0x2715, 0x2315, 0x1F15, 0x1B15, 0x1715, 0x1315, 0x0F15, 0x0B15, 0x0815, 0x0415, 0x0015
SPRD Bluetooth: g_BRChannelpwrvalue_A ->  0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615
SPRD Bluetooth: g_EDRChannelpwrvalue_A ->  0x0615, 0x0615, 0x0615, 0x0715, 0x0715, 0x0715, 0x0715, 0x0715
SPRD Bluetooth: g_LEChannelpwrvalue_A ->  0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515
SPRD Bluetooth: g_GainValue_B ->  0xE000, 0xE000, 0xE000, 0xE000, 0xE000, 0xE000
SPRD Bluetooth: g_ClassicPowerValue_B ->  0x4915, 0x4315, 0x4115, 0x3915, 0x3115, 0x2A15, 0x2215, 0x1B15, 0x1415, 0x0E15
SPRD Bluetooth: g_LEPowerValue_B ->  0x4B15, 0x4B15, 0x4B15, 0x4B15, 0x4B15, 0x4615, 0x4015, 0x3B15, 0x3615, 0x3015, 0x2B15, 0x2615, 0x2015, 0x1A15, 0x1415, 0x0E15
SPRD Bluetooth: g_BRChannelpwrvalue_B ->  0x0815, 0x0915, 0x0C15, 0x0C15, 0x0C15, 0x0C15, 0x0C15, 0x0B15
SPRD Bluetooth: g_EDRChannelpwrvalue_B -> 0x0A15, 0x0B15, 0x0D15, 0x0E15, 0x0E15, 0x0E15, 0x0E15, 0x0D15
SPRD Bluetooth: g_LEChannelpwrvalue_B ->  0x0E15,0x0E15,0x1115,0x1115,0x1115,0x1115,0x1115,0x1015
SPRD Bluetooth: LE_fix_powerword ->  0x00
SPRD Bluetooth: Classic_pc_by_channel ->  0xFF
SPRD Bluetooth: LE_pc_by_channel ->  0xFF
SPRD Bluetooth: RF_switch_mode ->  0x02
SPRD Bluetooth: Data_Capture_Mode ->  0x00
SPRD Bluetooth: Analog_IQ_Debug_Mode ->  0x00
SPRD Bluetooth: RF_common_rfu_b3 ->  0x55
SPRD Bluetooth: RF_common_rfu_w ->  0x555F4334, 0x55555555, 0x55555555, 0x55555555, 0x55555555
SPRD Bluetooth: Set mac address from '/sys/class/addr_mgmt/addr_bt'
SPRD Bluetooth: marlin3_pskey_preload
SPRD Bluetooth: sprd_vnd_send_hci_vsc
SPRD Bluetooth: 160 252 176 00 31 00 00 191 255 141 254 219 61 123 135 255
SPRD Bluetooth: 167 255 127 00 224 247 62 154 120 245 121 36 37 236 01 01
SPRD Bluetooth: 01 255 00 255 255 00 00 00 00 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 77 00 102 01 77 00 102 01 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 00 00 00 01 01 01 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 40 00 00 00 06 08 12 34 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 255 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 00 00 00 226 04 64 31 32
SPRD Bluetooth: 00 200 00 06 00 00 00 00 00 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00
SPRD Bluetooth: Received event, len: 13
SPRD Bluetooth: 04 14 10 01 160 252 00 33 97 08 09 21 32
SPRD Bluetooth: Bluetooth Firmware Node: 6121 Date: 2015-09-08
SPRD Bluetooth: yujian.qin marlin3_rf_preload
SPRD Bluetooth: sprd_vnd_send_hci_vsc
SPRD Bluetooth: 162 252 252 00 224 00 224 00 224 00 224 00 224 00 224 21
SPRD Bluetooth: 65 21 58 21 52 21 46 21 39 21 33 21 23 21 17 21
SPRD Bluetooth: 11 21 07 21 59 21 55 21 51 21 47 21 43 21 39 21
SPRD Bluetooth: 35 21 31 21 27 21 23 21 19 21 15 21 11 21 08 21
SPRD Bluetooth: 04 21 00 21 06 21 06 21 06 21 06 21 06 21 06 21
SPRD Bluetooth: 06 21 06 21 06 21 06 21 06 21 07 21 07 21 07 21
SPRD Bluetooth: 07 21 07 21 21 21 21 21 21 21 21 21 21 21 21 21
SPRD Bluetooth: 21 21 21 00 224 00 224 00 224 00 224 00 224 00 224 21
SPRD Bluetooth: 73 21 67 21 65 21 57 21 49 21 42 21 34 21 27 21
SPRD Bluetooth: 20 21 14 21 75 21 75 21 75 21 75 21 75 21 70 21
SPRD Bluetooth: 64 21 59 21 54 21 48 21 43 21 38 21 32 21 26 21
SPRD Bluetooth: 20 21 14 21 08 21 09 21 12 21 12 21 12 21 12 21
SPRD Bluetooth: 12 21 11 21 10 21 11 21 13 21 14 21 14 21 14 21
SPRD Bluetooth: 14 21 13 21 14 21 14 21 17 21 17 21 17 21 17 21
SPRD Bluetooth: 17 21 16 00 00 255 255 02 00 00 85 52 67 95 85 85
SPRD Bluetooth: 85 85 85 85 85 85 85 85 85 85 85 85 85 85 85
SPRD Bluetooth: Received event, len: 7
SPRD Bluetooth: 04 14 04 01 162 252 00
SPRD Bluetooth: hw_rf_cback hw_rf_cback response: [0xFCA2, 0x0000, 0x00]
SPRD Bluetooth: sprd_vnd_send_hci_vsc
SPRD Bluetooth: 161 252 03 00 00 01
SPRD Bluetooth: Received event, len: 9
SPRD Bluetooth: 04 14 06 01 161 252 00 00 01
SPRD Bluetooth: hw_core_cback hw_core_cback response: [0xFCA1, 0x0000, 0x01]
Device setup complete

dmesg:

[  181.076195] mtty_open device success!
[  181.398581] Bluetooth: Core ver 2.22
[  181.402513] NET: Registered PF_BLUETOOTH protocol family
[  181.407961] Bluetooth: HCI device and connection manager initialized
[  181.414738] Bluetooth: HCI socket layer initialized
[  181.419995] Bluetooth: L2CAP socket layer initialized
[  181.425222] Bluetooth: SCO socket layer initialized
[  181.532854] Bluetooth: HCI UART driver ver 2.3
[  181.537412] Bluetooth: HCI UART protocol H4 registered
[  181.542653] Bluetooth: HCI UART protocol BCSP registered
[  181.548665] Bluetooth: HCI UART protocol LL registered
[  181.554012] Bluetooth: HCI UART protocol ATH3K registered
[  181.567198] Bluetooth: HCI UART protocol Intel registered
[  181.573675] Bluetooth: HCI UART protocol Broadcom registered
[  181.579671] Bluetooth: HCI UART protocol QCA registered
[  181.585291] Bluetooth: HCI UART protocol AG6XX registered
[  181.591095] Bluetooth: HCI UART protocol Marvell registered
[  181.666446] Bluetooth: hci0: Opcode 0x 80f failed: -22 <----------------- possible problem here
[  182.432703] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  182.438122] Bluetooth: BNEP filters: protocol multicast
[  182.443487] Bluetooth: BNEP socket layer initialized

rfkill:

$ rfkill
ID TYPE      DEVICE         SOFT      HARD
 0 wlan      phy0      unblocked unblocked
 1 bluetooth bluetooth unblocked unblocked
 2 bluetooth hci0      unblocked unblocked

hciconfig:

$ sudo hciconfig
hci0:   Type: Primary  Bus: UART
    BD Address: 25:24:79:F5:78:9A  ACL MTU: 1021:8  SCO MTU: 240:3
    DOWN
    RX bytes:532 acl:0 sco:0 events:21 errors:0
    TX bytes:346 acl:0 sco:0 commands:21 errors:0

Unfortunately hci0 still stay down. I tried set it up:

$ sudo hciconfig hci0 up
Can't init device hci0: Invalid argument (22)
$ sudo hciconfig
hci0:   Type: Primary  Bus: UART
    BD Address: 25:24:79:F5:78:9A  ACL MTU: 1021:8  SCO MTU: 240:3
    DOWN
    RX bytes:1064 acl:0 sco:0 events:42 errors:0
    TX bytes:692 acl:0 sco:0 commands:42 errors:0

dmesg:

[  570.733703] Bluetooth: hci0: Opcode 0x 80f failed: -22 <-------- same problem as above
katyo commented 2 years ago

dmesg with debug:

[ 9933.660752] sock 00000000b22dcc44 [ 9933.660890] cmd 800448d3 arg aaaac4c6d8b0 [ 9933.660943] channel 2 len 36 [ 9933.660976] 0 [ 9933.661003] cmd 400448c9 arg 0 [ 9933.661021] 0 [ 9933.661045] hci0 00000000b3940bb7 [ 9933.661063] hci0: [ 9933.661076] hci0 00000000b3940bb7 [ 9933.661093] hdev hci0 event 7 [ 9933.661109] hdev hci0 event 9 [ 9933.661126] hci0: [ 9933.661140] hci0: Opcode 0x1003 [ 9933.661156] hci0: opcode 0x1003 plen 0 [ 9933.661176] hci0: skb len 3 [ 9933.661192] hci0: length 1 [ 9933.661294] hci0 cmd_cnt 1 cmd queued 1 [ 9933.661328] hci0 type 1 len 3 [ 9933.661349] hci0: type 1 len 3 [ 9933.661368] hu 000000007c8511b3 skb 00000000b69ce611

[ 9933.665380] hci0 [ 9933.665422] hci0 Event packet [ 9933.665443] hci0: event 0x0e [ 9933.665464] hci0: opcode 0x1003 [ 9933.665483] hci0: status 0x00 [ 9933.665505] opcode 0x1003 status 0x00 [ 9933.665522] hci0 opcode 0x1003 [ 9933.665541] hci0: result 0x00 [ 9933.665842] hci0: end: err 0 [ 9933.665889] hci0: Opcode 0x1001 [ 9933.665906] hci0: opcode 0x1001 plen 0 [ 9933.665931] hci0: skb len 3 [ 9933.665947] hci0: length 1 [ 9933.666023] hci0 cmd_cnt 1 cmd queued 1 [ 9933.666054] hci0 type 1 len 3 [ 9933.666076] hci0: type 1 len 3 [ 9933.666095] hu 000000007c8511b3 skb 00000000a64ab2b0

[ 9933.670348] hci0 [ 9933.670387] hci0 Event packet [ 9933.670408] hci0: event 0x0e [ 9933.670428] hci0: opcode 0x1001 [ 9933.670446] hci0: status 0x00 [ 9933.670468] opcode 0x1001 status 0x00 [ 9933.670485] hci0 opcode 0x1001 [ 9933.670504] hci0: result 0x00 [ 9933.670573] hci0: end: err 0 [ 9933.670604] hci0: Opcode 0x1009 [ 9933.670622] hci0: opcode 0x1009 plen 0 [ 9933.670646] hci0: skb len 3 [ 9933.670661] hci0: length 1 [ 9933.670710] hci0 cmd_cnt 1 cmd queued 1 [ 9933.670742] hci0 type 1 len 3 [ 9933.670762] hci0: type 1 len 3 [ 9933.670781] hu 000000007c8511b3 skb 0000000036e7ce80

[ 9933.675386] hci0 [ 9933.675424] hci0 Event packet [ 9933.675443] hci0: event 0x0e [ 9933.675462] hci0: opcode 0x1009 [ 9933.675481] hci0: status 0x00 [ 9933.675501] opcode 0x1009 status 0x00 [ 9933.675518] hci0 opcode 0x1009 [ 9933.675535] hci0: result 0x00 [ 9933.675607] hci0: end: err 0 [ 9933.675634] hci0: [ 9933.675648] hci0: Opcode 0x1005 [ 9933.675664] hci0: opcode 0x1005 plen 0 [ 9933.675689] hci0: skb len 3 [ 9933.675704] hci0: length 1 [ 9933.675752] hci0 cmd_cnt 1 cmd queued 1 [ 9933.675783] hci0 type 1 len 3 [ 9933.675803] hci0: type 1 len 3 [ 9933.675821] hu 000000007c8511b3 skb 0000000043562e9f

[ 9933.680355] hci0 [ 9933.680393] hci0 Event packet [ 9933.680415] hci0: event 0x0e [ 9933.680436] hci0: opcode 0x1005 [ 9933.680454] hci0: status 0x00 [ 9933.680469] hci0 acl mtu 1021:8 sco mtu 240:3 [ 9933.680496] opcode 0x1005 status 0x00 [ 9933.680513] hci0 opcode 0x1005 [ 9933.680531] hci0: result 0x00 [ 9933.680610] hci0: end: err 0 [ 9933.680645] hci0: Opcode 0x c23 [ 9933.680662] hci0: opcode 0x0c23 plen 0 [ 9933.680686] hci0: skb len 3 [ 9933.680702] hci0: length 1 [ 9933.680752] hci0 cmd_cnt 1 cmd queued 1 [ 9933.680783] hci0 type 1 len 3 [ 9933.680803] hci0: type 1 len 3 [ 9933.680822] hu 000000007c8511b3 skb 00000000a935c091

[ 9933.685390] hci0 [ 9933.685430] hci0 Event packet [ 9933.685449] hci0: event 0x0e [ 9933.685468] hci0: opcode 0x0c23 [ 9933.685487] hci0: status 0x00 [ 9933.685502] hci0: class 0x001f00 [ 9933.685525] opcode 0x0c23 status 0x00 [ 9933.685542] hci0 opcode 0x0c23 [ 9933.685561] hci0: result 0x00 [ 9933.685654] hci0: end: err 0 [ 9933.685686] hci0: Opcode 0x c14 [ 9933.685702] hci0: opcode 0x0c14 plen 0 [ 9933.685725] hci0: skb len 3 [ 9933.685742] hci0: length 1 [ 9933.685806] hci0 cmd_cnt 1 cmd queued 1 [ 9933.685836] hci0 type 1 len 3 [ 9933.685856] hci0: type 1 len 3 [ 9933.685874] hu 000000007c8511b3 skb 000000005ecbbb1b

[ 9933.690440] hci0 [ 9933.690478] hci0 Event packet [ 9933.690499] hci0: event 0x0e [ 9933.690519] hci0: opcode 0x0c14 [ 9933.690536] hci0: status 0x00 [ 9933.690559] opcode 0x0c14 status 0x00 [ 9933.690575] hci0 opcode 0x0c14 [ 9933.690593] hci0: result 0x00 [ 9933.690672] hci0: end: err 0 [ 9933.690706] hci0: Opcode 0x c25 [ 9933.690723] hci0: opcode 0x0c25 plen 0 [ 9933.690747] hci0: skb len 3 [ 9933.690763] hci0: length 1 [ 9933.690810] hci0 cmd_cnt 1 cmd queued 1 [ 9933.690841] hci0 type 1 len 3 [ 9933.690861] hci0: type 1 len 3 [ 9933.690878] hu 000000007c8511b3 skb 00000000c5fdf3cc

[ 9933.695318] hci0 [ 9933.695439] hci0 Event packet [ 9933.695463] hci0: event 0x0e [ 9933.695483] hci0: opcode 0x0c25 [ 9933.695500] hci0: status 0x00 [ 9933.695521] opcode 0x0c25 status 0x00 [ 9933.695538] hci0 opcode 0x0c25 [ 9933.695556] hci0: result 0x00 [ 9933.695632] hci0: end: err 0 [ 9933.695666] hci0: Opcode 0x c38 [ 9933.695684] hci0: opcode 0x0c38 plen 0 [ 9933.695708] hci0: skb len 3 [ 9933.695724] hci0: length 1 [ 9933.695770] hci0 cmd_cnt 1 cmd queued 1 [ 9933.695802] hci0 type 1 len 3 [ 9933.695822] hci0: type 1 len 3 [ 9933.695841] hu 000000007c8511b3 skb 000000004b9a0a1f

[ 9933.700325] hci0 [ 9933.700364] hci0 Event packet [ 9933.700386] hci0: event 0x0e [ 9933.700406] hci0: opcode 0x0c38 [ 9933.700424] hci0: status 0x00 [ 9933.700439] hci0: num iac 4 [ 9933.700458] opcode 0x0c38 status 0x00 [ 9933.700475] hci0 opcode 0x0c38 [ 9933.700494] hci0: result 0x00 [ 9933.700567] hci0: end: err 0 [ 9933.700598] hci0: Opcode 0x c39 [ 9933.700614] hci0: opcode 0x0c39 plen 0 [ 9933.700641] hci0: skb len 3 [ 9933.700656] hci0: length 1 [ 9933.700702] hci0 cmd_cnt 1 cmd queued 1 [ 9933.700733] hci0 type 1 len 3 [ 9933.700753] hci0: type 1 len 3 [ 9933.700771] hu 000000007c8511b3 skb 000000009398b55a

[ 9933.705419] hci0 [ 9933.705459] hci0 Event packet [ 9933.705479] hci0: event 0x0e [ 9933.705499] hci0: opcode 0x0c39 [ 9933.705523] opcode 0x0c39 status 0x00 [ 9933.705540] hci0 opcode 0x0c39 [ 9933.705768] hci0: result 0x00 [ 9933.705852] hci0: end: err 0 [ 9933.705887] hci0: Opcode 0x c16 [ 9933.705904] hci0: opcode 0x0c16 plen 2 [ 9933.705931] hci0: skb len 5 [ 9933.705947] hci0: length 1 [ 9933.706017] hci0 cmd_cnt 1 cmd queued 1 [ 9933.706054] hci0 type 1 len 5 [ 9933.706074] hci0: type 1 len 5 [ 9933.706092] hu 000000007c8511b3 skb 0000000075ffedf4

[ 9933.710364] hci0 [ 9933.710403] hci0 Event packet [ 9933.710426] hci0: event 0x0e [ 9933.710446] hci0: opcode 0x0c16 [ 9933.710471] opcode 0x0c16 status 0x00 [ 9933.710488] hci0 opcode 0x0c16 [ 9933.710506] hci0: result 0x00 [ 9933.710586] hci0: end: err 0 [ 9933.710619] hci0: Opcode 0x2002 [ 9933.710637] hci0: opcode 0x2002 plen 0 [ 9933.710660] hci0: skb len 3 [ 9933.710676] hci0: length 1 [ 9933.710723] hci0 cmd_cnt 1 cmd queued 1 [ 9933.710756] hci0 type 1 len 3 [ 9933.710776] hci0: type 1 len 3 [ 9933.710794] hu 000000007c8511b3 skb 000000008ce61b64

[ 9933.715362] hci0 [ 9933.715401] hci0 Event packet [ 9933.715425] hci0: event 0x0e [ 9933.715447] hci0: opcode 0x2002 [ 9933.715465] hci0: status 0x00 [ 9933.715480] hci0 le mtu 256:16 [ 9933.715503] opcode 0x2002 status 0x00 [ 9933.715520] hci0 opcode 0x2002 [ 9933.715537] hci0: result 0x00 [ 9933.715614] hci0: end: err 0 [ 9933.715648] hci0: Opcode 0x2003 [ 9933.715665] hci0: opcode 0x2003 plen 0 [ 9933.715689] hci0: skb len 3 [ 9933.715705] hci0: length 1 [ 9933.715756] hci0 cmd_cnt 1 cmd queued 1 [ 9933.715789] hci0 type 1 len 3 [ 9933.715809] hci0: type 1 len 3 [ 9933.715827] hu 000000007c8511b3 skb 00000000a82e5f1e

[ 9933.720366] hci0 [ 9933.720404] hci0 Event packet [ 9933.720426] hci0: event 0x0e [ 9933.720446] hci0: opcode 0x2003 [ 9933.720465] hci0 status 0x00 [ 9933.720485] opcode 0x2003 status 0x00 [ 9933.720503] hci0 opcode 0x2003 [ 9933.720520] hci0: result 0x00 [ 9933.720592] hci0: end: err 0 [ 9933.720624] hci0: Opcode 0x201c [ 9933.720642] hci0: opcode 0x201c plen 0 [ 9933.720668] hci0: skb len 3 [ 9933.720684] hci0: length 1 [ 9933.720729] hci0 cmd_cnt 1 cmd queued 1 [ 9933.720761] hci0 type 1 len 3 [ 9933.720779] hci0: type 1 len 3 [ 9933.720797] hu 000000007c8511b3 skb 00000000108ed9f3

[ 9933.725356] hci0 [ 9933.725394] hci0 Event packet [ 9933.725414] hci0: event 0x0e [ 9933.725432] hci0: opcode 0x201c [ 9933.725452] hci0: status 0x00 [ 9933.725473] opcode 0x201c status 0x00 [ 9933.725491] hci0 opcode 0x201c [ 9933.725508] hci0: result 0x00 [ 9933.725593] hci0: end: err 0 [ 9933.725631] hci0: Opcode 0x1002 [ 9933.725649] hci0: opcode 0x1002 plen 0 [ 9933.725671] hci0: skb len 3 [ 9933.725687] hci0: length 1 [ 9933.725760] hci0 cmd_cnt 1 cmd queued 1 [ 9933.725797] hci0 type 1 len 3 [ 9933.725817] hci0: type 1 len 3 [ 9933.725836] hu 000000007c8511b3 skb 000000008ce61b64

[ 9933.730357] hci0 [ 9933.730394] hci0 Event packet [ 9933.730416] hci0: event 0x0e [ 9933.730436] hci0: opcode 0x1002 [ 9933.730453] hci0: status 0x00 [ 9933.730473] opcode 0x1002 status 0x00 [ 9933.730490] hci0 opcode 0x1002 [ 9933.730507] hci0: result 0x00 [ 9933.730577] hci0: end: err 0 [ 9933.730612] hci0: Opcode 0x c52 [ 9933.730629] hci0: opcode 0x0c52 plen 241 [ 9933.730654] hci0: skb len 244 [ 9933.730670] hci0: length 1 [ 9933.730718] hci0 cmd_cnt 1 cmd queued 1 [ 9933.730749] hci0 type 1 len 244 [ 9933.730768] hci0: type 1 len 244 [ 9933.730787] hu 000000007c8511b3 skb 0000000054f1da72

[ 9933.735322] hci0 [ 9933.735360] hci0 Event packet [ 9933.735383] hci0: event 0x0e [ 9933.735403] hci0: opcode 0x0c52 [ 9933.735427] opcode 0x0c52 status 0x00 [ 9933.735443] hci0 opcode 0x0c52 // HCI_OP_WRITE_EIR [ 9933.735461] hci0: result 0x00 [ 9933.735535] hci0: end: err 0 [ 9933.735566] hci0: Opcode 0x c45 [ 9933.735584] hci0: opcode 0x0c45 plen 1 [ 9933.735608] hci0: skb len 4 [ 9933.735623] hci0: length 1 [ 9933.735672] hci0 cmd_cnt 1 cmd queued 1 [ 9933.735704] hci0 type 1 len 4 [ 9933.735723] hci0: type 1 len 4 [ 9933.735740] hu 000000007c8511b3 skb 00000000c474c2fd

[ 9933.740314] hci0 [ 9933.740352] hci0 Event packet [ 9933.740373] hci0: event 0x0e [ 9933.740392] hci0: opcode 0x0c45 [ 9933.740415] opcode 0x0c45 status 0x00 [ 9933.740432] hci0 opcode 0x0c45 // HCI_OP_WRITE_INQUIRY_MODE [ 9933.740449] hci0: result 0x00 [ 9933.740522] hci0: end: err 0 [ 9933.740555] hci0: Opcode 0x c58 [ 9933.740572] hci0: opcode 0x0c58 plen 0 [ 9933.740599] hci0: skb len 3 [ 9933.740615] hci0: length 1 [ 9933.740661] hci0 cmd_cnt 1 cmd queued 1 [ 9933.740693] hci0 type 1 len 3 [ 9933.740712] hci0: type 1 len 3 [ 9933.740729] hu 000000007c8511b3 skb 000000006a7d33ad

[ 9933.745319] hci0 [ 9933.745359] hci0 Event packet [ 9933.745379] hci0: event 0x0e [ 9933.745399] hci0: opcode 0x0c58 [ 9933.745418] hci0: status 0x00 [ 9933.745440] opcode 0x0c58 status 0x00 [ 9933.745458] hci0 opcode 0x0c58 // HCI_OP_READ_INQ_RSP_TX_POWER [ 9933.745476] hci0: result 0x00 [ 9933.745555] hci0: end: err 0 [ 9933.745589] hci0: Opcode 0x1004 [ 9933.745606] hci0: opcode 0x1004 plen 1 [ 9933.745629] hci0: skb len 4 [ 9933.745645] hci0: length 1 [ 9933.745712] hci0 cmd_cnt 1 cmd queued 1 [ 9933.745746] hci0 type 1 len 4 [ 9933.745767] hci0: type 1 len 4 [ 9933.745785] hu 000000007c8511b3 skb 000000006446962e

[ 9933.750336] hci0 [ 9933.750372] hci0 Event packet [ 9933.750394] hci0: event 0x0e [ 9933.750413] hci0: opcode 0x1004 [ 9933.750431] hci0: status 0x00 [ 9933.750451] opcode 0x1004 status 0x00 [ 9933.750469] hci0 opcode 0x1004 // HCI_OP_READ_LOCAL_EXT_FEATURES [ 9933.750486] hci0: result 0x00 [ 9933.750560] hci0: end: err 0 [ 9933.750593] hci0: [ 9933.750608] hci0: Opcode 0x c01 [ 9933.750624] hci0: opcode 0x0c01 plen 8 [ 9933.750649] hci0: skb len 11 [ 9933.750665] hci0: length 1 [ 9933.750713] hci0 cmd_cnt 1 cmd queued 1 [ 9933.750745] hci0 type 1 len 11 [ 9933.750764] hci0: type 1 len 11 [ 9933.750782] hu 000000007c8511b3 skb 00000000a935c091

[ 9933.755317] hci0 [ 9933.755353] hci0 Event packet [ 9933.755373] hci0: event 0x0e [ 9933.755392] hci0: opcode 0x0c01 [ 9933.755415] opcode 0x0c01 status 0x00 [ 9933.755432] hci0 opcode 0x0c01 // HCI_OP_SET_EVENT_MASK [ 9933.755449] hci0: result 0x00 [ 9933.755518] hci0: end: err 0 [ 9933.755549] hci0: Opcode 0x c0d [ 9933.755566] hci0: opcode 0x0c0d plen 7 [ 9933.755589] hci0: skb len 10 [ 9933.755605] hci0: length 1 [ 9933.755651] hci0 cmd_cnt 1 cmd queued 1 [ 9933.755683] hci0 type 1 len 10 [ 9933.755703] hci0: type 1 len 10 [ 9933.755720] hu 000000007c8511b3 skb 0000000043562e9f

[ 9933.760325] hci0 [ 9933.760362] hci0 Event packet [ 9933.760384] hci0: event 0x0e [ 9933.760404] hci0: opcode 0x0c0d [ 9933.760422] hci0: status 0x00 [ 9933.760437] hci0 opcode 0x0c0d [ 9933.760457] opcode 0x0c0d status 0x00 [ 9933.760473] hci0 opcode 0x0c0d // HCI_OP_READ_STORED_LINK_KEY [ 9933.760491] hci0: result 0x00 [ 9933.760556] hci0: end: err 0 [ 9933.760586] hci0: Opcode 0x 80f [ 9933.760603] hci0: opcode 0x080f plen 2 [ 9933.760629] hci0: skb len 5 [ 9933.760644] hci0: length 1 [ 9933.760689] hci0 cmd_cnt 1 cmd queued 1 [ 9933.760722] hci0 type 1 len 5 [ 9933.760740] hci0: type 1 len 5 [ 9933.760757] hu 000000007c8511b3 skb 0000000036e7ce80

[ 9933.765327] hci0 [ 9933.765363] hci0 Event packet [ 9933.765384] hci0: event 0x0e [ 9933.765403] hci0: opcode 0x080f [ 9933.765420] hci0: status 0x12 [ 9933.765442] opcode 0x080f status 0x12 [ 9933.765459] hci0 opcode 0x080f // HCI_OP_WRITE_DEF_LINK_POLICY [ 9933.765476] hci0: result 0x12 [ 9933.765559] hci0: end: err -22 [ 9933.765593] Bluetooth: hci0: Opcode 0x 80f failed: -22 [ 9933.770882] hdev 00000000b3940bb7 tty 0000000067bcc457 [ 9933.770923] hu 000000007c8511b3 [ 9933.770950] hdev hci0 event 8 [ 9933.770967] hdev 00000000b3940bb7 [ 9933.770981] hdev 00000000b3940bb7 tty 0000000067bcc457 [ 9933.770999] hu 000000007c8511b3 [ 9933.772066] sock 00000000b22dcc44 sk 0000000080383e10 [ 9933.772235] channel 2 len 10

afaulkner420 commented 2 years ago

IMG-20220410-WA0001 I'll be uploading my changes soon. I'll link you to the specific commits... see if it helps