Skip to content

Commit

Permalink
bluetooth-mitm: fix incorrect data type in mitm of btm GetDeviceInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeadly committed Dec 7, 2020
1 parent 94b4860 commit e971110
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bluetooth-mitm/source/btm_mitm/btm/btm_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ namespace ams::mitm::btm {
BtmDeviceConditionV900 condition;
};

struct DeviceInfo : sf::LargeData {
BtmDeviceInfo info;
struct DeviceInfoList : sf::LargeData {
BtmDeviceInfoList info;
};

}
2 changes: 1 addition & 1 deletion bluetooth-mitm/source/btm_mitm/btm_mitm_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace ams::mitm::btm {
return ams::ResultSuccess();
}

Result BtmMitmService::GetDeviceInfo(sf::Out<btm::DeviceInfo> out) {
Result BtmMitmService::GetDeviceInfo(sf::Out<btm::DeviceInfoList> out) {
auto device_info = reinterpret_cast<BtmDeviceInfoList *>(out.GetPointer());
R_TRY(btmGetDeviceInfoFwd(this->forward_service.get(), device_info));

Expand Down
4 changes: 2 additions & 2 deletions bluetooth-mitm/source/btm_mitm/btm_mitm_service.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace ams::mitm::btm {
AMS_SF_METHOD_INFO(C, H, 3, Result, GetDeviceConditionDeprecated2, (sf::Out<DeviceConditionV510>), hos::Version_5_1_0, hos::Version_7_0_1) \
AMS_SF_METHOD_INFO(C, H, 3, Result, GetDeviceConditionDeprecated3, (sf::Out<DeviceConditionV800>), hos::Version_8_0_0, hos::Version_8_1_1) \
AMS_SF_METHOD_INFO(C, H, 3, Result, GetDeviceCondition, (sf::Out<DeviceCondition>), hos::Version_9_0_0) \
AMS_SF_METHOD_INFO(C, H, 9, Result, GetDeviceInfo, (sf::Out<DeviceInfo>)) \
AMS_SF_METHOD_INFO(C, H, 9, Result, GetDeviceInfo, (sf::Out<DeviceInfoList>)) \

AMS_SF_DEFINE_MITM_INTERFACE(IBtmMitmInterface, AMS_BTM_MITM_INTERFACE_INFO)

Expand All @@ -48,7 +48,7 @@ namespace ams::mitm::btm {
Result GetDeviceConditionDeprecated2(sf::Out<DeviceConditionV510> out);
Result GetDeviceConditionDeprecated3(sf::Out<DeviceConditionV800> out);
Result GetDeviceCondition(sf::Out<btm::DeviceCondition> out);
Result GetDeviceInfo(sf::Out<btm::DeviceInfo> out);
Result GetDeviceInfo(sf::Out<btm::DeviceInfoList> out);
};
static_assert(IsIBtmMitmInterface<BtmMitmService>);

Expand Down

0 comments on commit e971110

Please sign in to comment.