Performance study on MAC protocols for wireless networks