Resource allocation and scheduling in wireless mesh networks