ldn: Fixed using various cmds with ldn:u.

This commit is contained in:
yellows8 2025-11-18 11:09:46 -05:00
parent 48cd083ed8
commit 4a07b079f2
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -566,7 +566,7 @@ Result ldnSetOperationMode(LdnOperationMode mode) {
} }
Result ldnEnableActionFrame(const LdnActionFrameSettings *settings) { Result ldnEnableActionFrame(const LdnActionFrameSettings *settings) {
if (!serviceIsActive(&g_ldnSrv) || g_ldnServiceType != LdnServiceType_System) if (!serviceIsActive(&g_ldnSrv))
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
if (hosversionBefore(18,0,0)) if (hosversionBefore(18,0,0))
@ -576,7 +576,7 @@ Result ldnEnableActionFrame(const LdnActionFrameSettings *settings) {
} }
Result ldnDisableActionFrame(void) { Result ldnDisableActionFrame(void) {
if (!serviceIsActive(&g_ldnSrv) || g_ldnServiceType != LdnServiceType_System) if (!serviceIsActive(&g_ldnSrv))
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
if (hosversionBefore(18,0,0)) if (hosversionBefore(18,0,0))
@ -586,7 +586,7 @@ Result ldnDisableActionFrame(void) {
} }
Result ldnSendActionFrame(const void* data, size_t size, LdnMacAddress destination, LdnMacAddress bssid, s16 channel, u32 flags) { Result ldnSendActionFrame(const void* data, size_t size, LdnMacAddress destination, LdnMacAddress bssid, s16 channel, u32 flags) {
if (!serviceIsActive(&g_ldnSrv) || g_ldnServiceType != LdnServiceType_System) if (!serviceIsActive(&g_ldnSrv))
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
if (hosversionBefore(18,0,0)) if (hosversionBefore(18,0,0))
@ -615,7 +615,7 @@ Result ldnSendActionFrame(const void* data, size_t size, LdnMacAddress destinati
} }
Result ldnRecvActionFrame(void* data, size_t size, LdnMacAddress *addr0, LdnMacAddress *addr1, s16 *channel, u32 *out_size, s32 *link_level, u32 flags) { Result ldnRecvActionFrame(void* data, size_t size, LdnMacAddress *addr0, LdnMacAddress *addr1, s16 *channel, u32 *out_size, s32 *link_level, u32 flags) {
if (!serviceIsActive(&g_ldnSrv) || g_ldnServiceType != LdnServiceType_System) if (!serviceIsActive(&g_ldnSrv))
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
if (hosversionBefore(18,0,0)) if (hosversionBefore(18,0,0))
@ -650,7 +650,7 @@ Result ldnRecvActionFrame(void* data, size_t size, LdnMacAddress *addr0, LdnMacA
} }
Result ldnSetHomeChannel(s16 channel) { Result ldnSetHomeChannel(s16 channel) {
if (!serviceIsActive(&g_ldnSrv) || g_ldnServiceType != LdnServiceType_System) if (!serviceIsActive(&g_ldnSrv))
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
if (hosversionBefore(18,0,0)) if (hosversionBefore(18,0,0))
@ -675,7 +675,7 @@ Result ldnSetHomeChannel(s16 channel) {
} }
Result ldnSetTxPower(s16 power) { Result ldnSetTxPower(s16 power) {
if (!serviceIsActive(&g_ldnSrv) || g_ldnServiceType != LdnServiceType_System) if (!serviceIsActive(&g_ldnSrv))
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
if (hosversionBefore(18,0,0)) if (hosversionBefore(18,0,0))
@ -685,7 +685,7 @@ Result ldnSetTxPower(s16 power) {
} }
Result ldnResetTxPower(void) { Result ldnResetTxPower(void) {
if (!serviceIsActive(&g_ldnSrv) || g_ldnServiceType != LdnServiceType_System) if (!serviceIsActive(&g_ldnSrv))
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
if (hosversionBefore(18,0,0)) if (hosversionBefore(18,0,0))