It could be that your passing threw insolated walls. They usually kill the connection. Or maybe theres something causing interfearence that could be also in the walls/celing. The best thing is to start right beside the router then go for a walk and see what happens