Improving QoS and Throughput in Single- and Multihop WLANs through Dynamic Traffic Prioritization