Source and channel aware resource allocation for wireless networks