The existing congestion control algorithms such as TCP Reno are not suitable for efficient utilisation of networks with a high bandwidth-delay product because it takes a very long time to achieve the full link utilisation. Furthermore, it is difficult to guarantee the fairness among the TCP connections with different round-trip times. To overcome these problems, a new window control algorithm using the buffer state and variable gains is proposed. The simulation results show that our algorithm improves the performance of TCP in the wireless networks.