QoS provisioning using BER-based routing for ad hoc wireless networks