Dynamic and efficient tuning of IEEE 802.11 for multimedia applications