Idk if it helps or not but anyways,i used to have the same flickering problem with my wifi router.Whenever there was like a sandstorm or extreme heat issues outside,the power would be cut off and the UPS would kicked in.Whenever that happened,the wifi router would turn OFF and then ON.I moved the router to the other room(was on a different circuit than the first one) and it fixed the issue.