A survey and qualitative analysis of MAC protocols for vehicular ad hoc networks