2014-10-30 01:38:33 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 05:38:14 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-30 01:38:33 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "common/log.h"
|
|
|
|
#include "core/hle/hle.h"
|
|
|
|
#include "core/hle/service/ac_u.h"
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Namespace AC_U
|
|
|
|
|
|
|
|
namespace AC_U {
|
|
|
|
|
2014-11-29 01:17:55 +00:00
|
|
|
/**
|
|
|
|
* AC_U::GetWifiStatus service function
|
|
|
|
* Outputs:
|
|
|
|
* 1 : Result of function, 0 on success, otherwise error code
|
|
|
|
* 2 : Output connection type, 0 = none, 1 = Old3DS Internet, 2 = New3DS Internet.
|
|
|
|
*/
|
|
|
|
void GetWifiStatus(Service::Interface* self) {
|
2014-12-14 05:30:11 +00:00
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
2014-11-29 01:17:55 +00:00
|
|
|
|
|
|
|
// TODO(purpasmart96): This function is only a stub,
|
|
|
|
// it returns a valid result without implementing full functionality.
|
|
|
|
|
|
|
|
cmd_buff[1] = 0; // No error
|
|
|
|
cmd_buff[2] = 0; // Connection type set to none
|
|
|
|
|
2014-12-06 01:53:49 +00:00
|
|
|
LOG_WARNING(Service_AC, "(STUBBED) called");
|
2014-11-29 01:17:55 +00:00
|
|
|
}
|
|
|
|
|
2014-10-30 01:38:33 +00:00
|
|
|
const Interface::FunctionInfo FunctionTable[] = {
|
|
|
|
{0x00010000, nullptr, "CreateDefaultConfig"},
|
|
|
|
{0x00040006, nullptr, "ConnectAsync"},
|
|
|
|
{0x00050002, nullptr, "GetConnectResult"},
|
|
|
|
{0x00080004, nullptr, "CloseAsync"},
|
|
|
|
{0x00090002, nullptr, "GetCloseResult"},
|
|
|
|
{0x000A0000, nullptr, "GetLastErrorCode"},
|
2014-11-29 01:17:55 +00:00
|
|
|
{0x000D0000, GetWifiStatus, "GetWifiStatus"},
|
2014-10-30 01:38:33 +00:00
|
|
|
{0x000E0042, nullptr, "GetCurrentAPInfo"},
|
|
|
|
{0x00100042, nullptr, "GetCurrentNZoneInfo"},
|
|
|
|
{0x00110042, nullptr, "GetNZoneApNumService"},
|
2014-11-12 21:13:08 +00:00
|
|
|
{0x00240042, nullptr, "AddDenyApType"},
|
|
|
|
{0x00270002, nullptr, "GetInfraPriority"},
|
2014-10-30 01:38:33 +00:00
|
|
|
{0x002D0082, nullptr, "SetRequestEulaVersion"},
|
|
|
|
{0x00300004, nullptr, "RegisterDisconnectEvent"},
|
|
|
|
{0x003C0042, nullptr, "GetAPSSIDList"},
|
2014-11-12 21:13:08 +00:00
|
|
|
{0x003E0042, nullptr, "IsConnected"},
|
2014-10-30 01:38:33 +00:00
|
|
|
{0x00400042, nullptr, "SetClientVersion"},
|
|
|
|
};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Interface class
|
|
|
|
|
|
|
|
Interface::Interface() {
|
2015-01-30 18:56:49 +00:00
|
|
|
Register(FunctionTable);
|
2014-10-30 01:38:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|