A month ago I got a Nexus 5. It's running Android 4.4.2 (kernel:3.4.0-gadb2201). I noticed after using it for a while that it constantly keeps forgetting all saved wifi passwords after a restart. In the beginning I thought it might have something to do with my router, but the device also forgot the password of my university's wifi network, so that can't be the problem. Before obtaining this device, I had a Samsung Galaxy Nexus running Android 4.3 which never had this issue. That's why I have a feeling the issue is specific to Android 4.4.2.
Google was my first stop to try to find a solution, but it seems that I'm one of a few people facing this problem generally, and none has it with their Nexus 5. It's not a major issue because I can mitigate it by not restarting my device, but rather an annoying tiny inconvenience I'd like to have fixed.
Does anyone have an idea why this is happening? Is there a solution for it?