ad hoc networks automatically