There are many ways to connect the printer wirelessly , if you dont have password.you can try to recover the password by following easy steps: .
Log in with your router default username and password.
Click Wireless Security, select WPA2 as the Wireless Security Mode value on dlink .
Enter a password in the Pre-Shared Key on computer screen .
Re-enter the password , then click apply changes .