Dynamic wireless network control via stochastic approximation