Rate Assignment in Wireless Networks: Stability Analysis and Controller Design