Text this: Cross-layer resource allocation in wireless communications