From 7fe4a6e4f374a1b109e6cf97a7c289e7b828931d Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 17 Jun 2025 22:57:01 -0500 Subject: [PATCH] LibUSBBluetoothAdapter: Change the request type of our generated HCI commands from LIBUSB_RECIPIENT_INTERFACE to LIBUSB_RECIPIENT_DEVICE. This changes the value from 0x21 to 0x20 which now matches the value that Wii software generates. --- Source/Core/Core/IOS/USB/Bluetooth/LibUSBBluetoothAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IOS/USB/Bluetooth/LibUSBBluetoothAdapter.cpp b/Source/Core/Core/IOS/USB/Bluetooth/LibUSBBluetoothAdapter.cpp index 87ce4d8235..2264d4d956 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/LibUSBBluetoothAdapter.cpp +++ b/Source/Core/Core/IOS/USB/Bluetooth/LibUSBBluetoothAdapter.cpp @@ -28,7 +28,7 @@ constexpr std::size_t BUFFER_SIZE = 1024; constexpr auto HCI_COMMAND_TIMEOUT = std::chrono::milliseconds{1000}; constexpr u8 REQUEST_TYPE = - u8(u8(LIBUSB_ENDPOINT_OUT) | u8(LIBUSB_REQUEST_TYPE_CLASS)) | u8(LIBUSB_RECIPIENT_INTERFACE); + u8(u8(LIBUSB_ENDPOINT_OUT) | u8(LIBUSB_REQUEST_TYPE_CLASS)) | u8(LIBUSB_RECIPIENT_DEVICE); constexpr u8 HCI_EVENT = 0x81; constexpr u8 ACL_DATA_IN = 0x82;