First, need to find out the exact problem.
Does the wifi brick? Or the wifi still connected but no traffic?
Did you have any settings on the router that may cause this problem? If you clear all the settings and start over, will it solve the problem?