Programing a WiFi mobile ad-hoc network