In multi-room homes, it may be impossible to place the router where it can avoid passing through walls, but in general, you should find a spot for the device with few physical obstacles between it and where you intend to use the Wi-Fi. Try to place your router in the center of everything, and even on the second floor, if possible.