Here's information about your error:
Class for error 5xxyy: Network connection error. »yy« is interface-specific.
Device for error 5xx30: Interface WLAN1.
Error for error 520yy: Unable to connect to your network (likely DHCP failed).
Solution for error 520yy: Check your router for SSID and DHCP settings.
Note from RiiConnect24: Try changing your router's settings to use 802.11 b/g/n. If that doesn't work, try the suggestions found on Nintendo's site. https://bit.ly/2OoC0c2
All information is from Wiimmfi unless noted.