This is mostly governed by the hardware, and there is nothing much you can do about it.
Sometimes the software can get a little tweaked. In that case you can try going into Settings > General > Reset, and Reset all Network Settings (you will have to log into all you networks again). But this rarely makes a difference. In the end, you just have to move closer to the router, and/or try different spots in the room.