Skip to content

Commit

Permalink
IntelBTPatcher: Replace the magic HCI command code, and add the note.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Jul 25, 2022
1 parent 8b51dbd commit bbdde1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IntelBTPatcher/IntelBTPatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ static void asyncIOCompletion(void* owner, void* parameter, IOReturn status, uin
IOFree((void *)dump, bytesTransferred * 3 + 1);
}
HciResponse *resp = (HciResponse *)buffer;
if (resp->opcode == 0x200C && resp->data[0]) {
// This fake is not needed, after configured the Random Address, the firmware may not generate the error code 0x12 anymore. but we still leave it here
if (resp->opcode == HCI_OP_LE_SET_SCAN_ENABLE && resp->data[0]) {
SYSLOG(DRV_NAME, "[FAKE RESP]: done");
dataBuffer->writeBytes(0, fakeLEScanEnableResp, 6);
}
Expand Down

0 comments on commit bbdde1f

Please sign in to comment.