I have had my D'link DCS-5020L for almost a year now, and it has been turned on all the time.
Last month I figured out that it would just automatically turn off by itself after a couple minutes after I've turned it off and on.
I have set up my camera to send me notification whenever it recognizes a motion, but it doesn't send me notification anymore - beacause my camera just turns off all the time.
I'm gonna travel very far soon, and I need a solution to fix my Dlink camera within next month.
Wifi is not a problem, it works excellent.