You could try to make a guest wifi like me cuz my router (NetGear WNR2000v3) doesn't supprt WEP. So instead I use my guest wifi with its settings unsecured and it works just fine.
If you tell me which type of D-link router you have I'm more helpful to helping you resolve this problem.