Wireless mesh networks facilitate the provision of Intranet and Internet connectivity across diverse environments, catering to a wide range of applications. It is anticipated that there will be a significant volume of traffic on these networks. The selection and placement of gateway nodes is a significant research concern due to their responsibility for transmitting traffic load. This issue holds importance as it has the potential to optimize network capacity utilization and mitigate congestion effects. Furthermore, the implementation of a multi-radio multi-channel architecture is regarded as a highly promising approach to enhance performance and mitigate interference. Channel assignment is the process of determining the optimal associations between channels and radios for the purpose of transmitting and receiving data concurrently across multiple channels. In order to maximize throughput in multi-radio multi-channel wireless mesh networks, this research investigates the problem of gateway selection and location. Our solution is distinct from the many others described in the literature because it explicitly models the delay overhead associated with channel switching. In addition, we factor in the latency problem while developing our processes. In our research, a Garter Snake Optimization Algorithm (GSO) is used to strategically place gateways. Based on our research, we know that the suggested scheme performs within a constant factor of the best solution as measured by the achieved throughput. The simulation results show that compared to random deployment, fixed deployment, and grid-based techniques, our suggested mechanism makes better use of available resources and delivers much higher network performance.