Coordinated control of mobile antennas for ad hoc networks