Skip to content

Commit 3e4d401

Browse files
committed
call original fcr_chk_chan to set preferred mode to BASIC
1 parent 5cd7db5 commit 3e4d401

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/app/src/main/cpp/l2c_fcr_hook.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ static void (*original_l2cu_send_peer_info_req)(tL2C_LCB* p_lcb, uint16_t info_t
132132
static tBTA_STATUS (*original_BTA_DmSetLocalDiRecord)(tSDP_DI_RECORD* p_device_info, uint32_t* p_handle) = nullptr;
133133

134134
uint8_t fake_l2c_fcr_chk_chan_modes(void* p_ccb) {
135-
LOGI("l2c_fcr_chk_chan_modes hooked, returning true.");
135+
LOGI("l2c_fcr_chk_chan_modes hooked, calling original function.");
136+
uint8_t result = original_l2c_fcr_chk_chan_modes(p_ccb);
137+
LOGI("Original l2c_fcr_chk_chan_modes returned: %d; returning 1.", result);
136138
return 1;
137139
}
138140

0 commit comments

Comments
 (0)