The minimum clearing time problem in wireless networks