Line 2:
Line 2:
NCD is the Network Configuration Device. It handles stuff like reading the network configuration stored in /shared2/sys/net/02/config.dat or getting the Wii's MAC address.
NCD is the Network Configuration Device. It handles stuff like reading the network configuration stored in /shared2/sys/net/02/config.dat or getting the Wii's MAC address.
−
ios_ioctlv( fd, 1, 0, 1, vec); // NCDLockWirelessDriver
+
ios_ioctlv( fd, 1, 0, 1, vec); // NCDLockWirelessDriver out min 8
−
ios_ioctlv( fd, 2, 1, 1, vec); // NCDUnlockWirelessDriver
+
ios_ioctlv( fd, 2, 1, 1, vec); // NCDUnlockWirelessDriver in min 4 out min 4
ios_ioctlv( fd, 3, 0, 2, vec); // NCDReadConfig?, 7004 out, 32 out
ios_ioctlv( fd, 3, 0, 2, vec); // NCDReadConfig?, 7004 out, 32 out
ios_ioctlv( fd, 4, 1, 1, vec); // ?, 7004 in, 32 out
ios_ioctlv( fd, 4, 1, 1, vec); // ?, 7004 in, 32 out
ios_ioctlv( fd, 5, 0, 2, vec); // ?, 7004 out, 32 out
ios_ioctlv( fd, 5, 0, 2, vec); // ?, 7004 out, 32 out
+
ios_ioctlv( fd, 6, 1, 1, vec); // ?, 7004 in, 32 out
ios_ioctlv( fd, 7, 0, 1, vec); // NCDGetLinkStatus, 32 out
ios_ioctlv( fd, 7, 0, 1, vec); // NCDGetLinkStatus, 32 out
ios_ioctlv( fd, 8, 0, 2, vec); // NCDGetWirelessMacAddress, 32 out, 6 out
ios_ioctlv( fd, 8, 0, 2, vec); // NCDGetWirelessMacAddress, 32 out, 6 out