If you're phone is able to connect to other WiFi networks without a problem after the Nougat upgrade, it could just be some random corruption in a config file that's messing things up to prevent a stable connection to your home WiFi network (most likely in /data/misc/wifi/wpa_supplicant.conf if you've got a file manager app, but don't edit it directly unless you're prepared to). You might want to just try setting up a new SSID and password and see if that works. Yes your other devices are able to connect OK so you'll have to reconfigure them to the new WiFi network if there's some glitch when connecting you upgraded phone to that particular SSID than you might as well get it over with. Or if your wireless router supports adding a 'guest network' try setting one up and checking if your phone connects properly to that.
If on the other hand your phone is not able to connect to other WiFi networks, that could be a bigger problem. Doing a Factory Reset might solve the problem, but also keep in mind a FR will only wipe your general user data partition, it doesn't affect any of the operating system partitions so if the problem is tied to the OS you might need to restore the stock ROM (and then upgrade). But before doing a Factory Reset or flashing the ROM, I'd definitely try booting up in Recovery Mode and wiping the system cache partition first to see if that clears up your problem.